The Phi field is read if available otherwise created automatically with boundary conditions obtained automatically from the pressure field if available (with optional name) otherwise inferred from the velocity field. Phi Laplacian scheme and solver specification are required. See tutorials for examples.
71 lines
1.6 KiB
C++
71 lines
1.6 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSchemes;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
ddtSchemes
|
|
{
|
|
default Euler;
|
|
}
|
|
|
|
gradSchemes
|
|
{
|
|
default Gauss linear;
|
|
}
|
|
|
|
divSchemes
|
|
{
|
|
default none;
|
|
div(phi,U) Gauss upwind;
|
|
div(phid,p) Gauss upwind;
|
|
div(phi,K) Gauss upwind;
|
|
div(phi,h) Gauss upwind;
|
|
div(phi,k) Gauss upwind;
|
|
div(phi,epsilon) Gauss upwind;
|
|
div(phi,omega) Gauss upwind;
|
|
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
|
div(phi,Yi_h) Gauss upwind;
|
|
}
|
|
|
|
laplacianSchemes
|
|
{
|
|
default Gauss linear uncorrected;
|
|
}
|
|
|
|
interpolationSchemes
|
|
{
|
|
default linear;
|
|
}
|
|
|
|
snGradSchemes
|
|
{
|
|
default uncorrected;
|
|
}
|
|
|
|
fluxRequired
|
|
{
|
|
default no;
|
|
p;
|
|
Phi;
|
|
}
|
|
|
|
wallDist
|
|
{
|
|
method meshWave;
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|