Backport limited schemes format from vanilla 3.0.1
This commit is contained in:
parent
ef3edbe2ba
commit
05e63d5084
2 changed files with 11 additions and 9 deletions
|
@ -55,6 +55,10 @@ class linearUpwind
|
|||
{
|
||||
// Private Data
|
||||
|
||||
//- Name of gradient scheme
|
||||
word gradSchemeName_;
|
||||
|
||||
//- Gradient scheme
|
||||
tmp<fv::gradScheme<Type> > gradScheme_;
|
||||
|
||||
|
||||
|
@ -83,6 +87,7 @@ public:
|
|||
)
|
||||
:
|
||||
upwind<Type>(mesh, faceFlux),
|
||||
gradSchemeName_("grad"),
|
||||
gradScheme_
|
||||
(
|
||||
new fv::gaussGrad<Type>(mesh)
|
||||
|
@ -99,12 +104,13 @@ public:
|
|||
)
|
||||
:
|
||||
upwind<Type>(mesh, schemeData),
|
||||
gradSchemeName_(schemeData),
|
||||
gradScheme_
|
||||
(
|
||||
fv::gradScheme<Type>::New
|
||||
(
|
||||
mesh,
|
||||
schemeData
|
||||
mesh.schemesDict().gradScheme(gradSchemeName_)
|
||||
)
|
||||
)
|
||||
{}
|
||||
|
@ -118,12 +124,13 @@ public:
|
|||
)
|
||||
:
|
||||
upwind<Type>(mesh, faceFlux, schemeData),
|
||||
gradSchemeName_(schemeData),
|
||||
gradScheme_
|
||||
(
|
||||
fv::gradScheme<Type>::New
|
||||
(
|
||||
mesh,
|
||||
schemeData
|
||||
mesh.schemesDict.gradScheme(gradSchemeName_)
|
||||
)
|
||||
)
|
||||
{}
|
||||
|
|
|
@ -35,7 +35,8 @@ divSchemes
|
|||
div(phi,R) Gauss upwind;
|
||||
div(R) Gauss linear;
|
||||
div(phi,nuTilda) Gauss upwind;
|
||||
div((nuEff*dev(grad(U).T()))) Gauss linear;
|
||||
div((nuEff*dev2(T(grad(U))))) Gauss linear;
|
||||
div(nonlinearStress) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
|
@ -62,10 +63,4 @@ snGradSchemes
|
|||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
Reference in a new issue