OpenFoamのサンプル確認(パラメータやキーワードの覚書)です。
バージョン : OpenFoam10(WSL(ubuntu)にて)
ベース
引用元
<チュートリアルフォルダ>\incompressible\simpleFoam\mixerVessel2D
結果図
作業
基本的な流れはT703 OpenFoam tipsと同じです。(または作業)
このモデルはwslにて行っていますので、ubuntuのターミナル上で作業になります。
//チュートリアルからサンプルをコピーしておきます。// //0.origから0へ(.org削除) //m4マクロプロセッサ実行 m4 system/blockMeshDict.m4 > system/blockMeshDict //コマンド:メッシュ作成 blockMesh //計算実行// simpleFoam //ParaView用foamファイル作成(名称は任意)// touch t721_201.foam
全体構造
mixerVessel2D ├ 0.orig │ ├ epsilon │ ├ k │ ├ nut │ ├ p │ └ U ├ constant │ ├ MRFProperties │ ├ transportProperties │ └ turbulenceProperties ├ system │ ├ blockMeshDict.m4 │ ├ controlDict │ ├ fvSchemes │ └ fvSolution ├ Allclean └ Allrun
0.orig
epsilon
dimensions [0 2 -3 0 0 0 0];
internalField uniform 20;
boundaryField
{
rotor
{
type epsilonWallFunction;
value $internalField;
}
stator
{
type epsilonWallFunction;
value $internalField;
}
front
{
type empty;
}
back
{
type empty;
}
}
k
dimensions [0 2 -2 0 0 0 0];
internalField uniform 1;
boundaryField
{
rotor
{
type kqRWallFunction;
value uniform 0;
}
stator
{
type kqRWallFunction;
value uniform 0;
}
front
{
type empty;
}
back
{
type empty;
}
}
nut
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
rotor
{
type nutkWallFunction;
value uniform 0;
}
stator
{
type nutkWallFunction;
value uniform 0;
}
front
{
type empty;
}
back
{
type empty;
}
}
p
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
rotor
{
type zeroGradient;
}
stator
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;
}
}
U
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
rotor
{
type noSlip;
}
stator
{
type noSlip;
}
front
{
type empty;
}
back
{
type empty;
}
}
constant
MRFProperties
MRF1
{
cellZone rotor;
active yes;
// Fixed patches (by default they 'move' with the MRF zone)
nonRotatingPatches ();
origin (0 0 0);
axis (0 0 1);
omega 104.72;
}
transportProperties
transportModel Newtonian; nu 1e-05;
turbulenceProperties
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
system
blockMeshDict.m4
省略
controlDict
application simpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 500; deltaT 1; writeControl timeStep; writeInterval 50; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true;
fvSchemes
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) bounded Gauss limitedLinearV 1;
turbulence bounded Gauss limitedLinear 1;
div(phi,k) $turbulence;
div(phi,epsilon) $turbulence;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fvSolution
solvers
{
p
{
solver GAMG;
tolerance 1e-08;
relTol 0.05;
smoother GaussSeidel;
nCellsInCoarsestLevel 20;
}
U
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-07;
relTol 0.1;
}
k
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-07;
relTol 0.1;
}
epsilon
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-07;
relTol 0.1;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
relaxationFactors
{
fields
{
p 0.3;
}
equations
{
U 0.5;
k 0.5;
epsilon 0.5;
}
}
コメント