mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
more tutorial updates
This commit is contained in:
@ -30,7 +30,7 @@ divSchemes
|
||||
div(rho*phi,U) Gauss upwind;
|
||||
div(phi,alpha) Gauss vanLeer;
|
||||
div(phirb,alpha) Gauss interfaceCompression 1;
|
||||
div(phi,pd) Gauss upwind;
|
||||
div(phi,p) Gauss upwind;
|
||||
div(phi,k) Gauss vanLeer;
|
||||
div((nuEff*dev(grad(U).T()))) Gauss linear;
|
||||
}
|
||||
@ -53,9 +53,9 @@ snGradSchemes
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
pd ;
|
||||
pcorr ;
|
||||
gamma ;
|
||||
p;
|
||||
pcorr;
|
||||
gamma;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ solvers
|
||||
solver diagonal;
|
||||
}
|
||||
|
||||
pd
|
||||
p
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-07;
|
||||
@ -60,7 +60,7 @@ solvers
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pdFinal
|
||||
pFinal
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner
|
||||
|
||||
@ -15,9 +15,33 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
defaultFieldValues ( volScalarFieldValue alpha1 1 volScalarFieldValue pd 100000 );
|
||||
defaultFieldValues
|
||||
(
|
||||
volScalarFieldValue alpha1 1
|
||||
volScalarFieldValue p 100000
|
||||
);
|
||||
|
||||
regions ( sphereToCell { centre ( 0.5 0.5 0 ) ; radius 0.1 ; fieldValues ( volScalarFieldValue alpha1 0 volScalarFieldValue pd 1000000 ) ; } boxToCell { box ( -10 1 -1 ) ( 10 10 1 ) ; fieldValues ( volScalarFieldValue alpha1 0 ) ; } );
|
||||
regions
|
||||
(
|
||||
sphereToCell
|
||||
{
|
||||
centre ( 0.5 0.5 0 );
|
||||
radius 0.1;
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha1 0
|
||||
volScalarFieldValue p 1000000
|
||||
);
|
||||
}
|
||||
boxToCell
|
||||
{
|
||||
box ( -10 1 -1 ) ( 10 10 1 );
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha1 0
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user