Go to the documentation of this file.
30 alphaPorosity_(const_cast<volScalarField&>(
31 mesh_.thisDb().lookupObject<volScalarField>(
"alphaPorosity"))),
32 fvSource_(const_cast<volVectorField&>(
33 mesh_.thisDb().lookupObject<volVectorField>(
"fvSource"))),
34 fvOptions_(fv::options::New(
mesh)),
37 simple_(const_cast<fvMesh&>(
mesh)),
43 if (
allOptions.subDict(
"fvSource").toc().size() != 0)
91 word divUScheme =
"div(phi,U)";
93 label isPC = options.getLabel(
"isPC");
97 divUScheme =
"div(pc)";
107 tmp<fvVectorMatrix>
tUEqn(
108 fvm::div(
phi_,
U_, divUScheme)
129 volScalarField
rAU(1.0 /
UEqn.A());
136 volVectorField
HbyA(
"HbyA",
U_);
139 surfaceScalarField
phiHbyA(
"phiHbyA", fvc::flux(
HbyA));
160 fvm::laplacian(
rAtU(),
p_)
192 U_.correctBoundaryConditions();
193 p_.correctBoundaryConditions();
tmp< volVectorField > DDt(const volVectorField &U) const
virtual void calcResiduals(const dictionary &options)
compute residual
volScalarField & alphaPorosity_
alpha porosity term
tmp< fvVectorMatrix > tUEqn(fvm::ddt(U)+fvm::div(phi, U)+MRF.DDt(U)+turbulence->divDevReff(U)==fvOptions(U))
const dictionary & allOptions
virtual void updateIntermediateVariables()
update any intermediate variables that are dependent on state variables and are used in calcResiduals
const fvMesh & mesh_
fvMesh
tmp< fvVectorMatrix > divDevReff(volVectorField &U)
divDev terms
virtual void correctBoundaryConditions()
update the boundary condition for all the states in the selected solver
label hasFvSource_
whether to have fvSource term
DAOption daOption(mesh, pyOptions_)
constrainPressure(p, U, phiHbyA, rAtU(), MRF)
virtual void calcFvSource(volVectorField &fvSource)
compute the FvSource term
volVectorField & fvSource_
fvSource term
#define normalizeResiduals(resName)
simpleControl simple_
simpleControl object which will be initialized in this class
#define setResidualClassMemberPhi(stateName)
#define setResidualClassMemberVector(stateName, stateUnit)
DAResidualSimpleFoam(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
IOMRFZoneListDF & MRF_
Multiple Reference Frame.
tmp< volScalarField > rAtU(rAU)
void makeRelative(volVectorField &U) const
defineTypeNameAndDebug(DAFvSource, 0)
addToRunTimeSelectionTable(DAFvSource, DAFvSourceActuatorDisk, dictionary)
volScalarField rAU(1.0/UEqn.A())
void correctBoundaryVelocity(volVectorField &U) const
DAModel daModel(mesh, daOption)
virtual void clear()
clear the members
DATurbulenceModel & daTurb_
DATurbulenceModel object.
DAIndex daIndex(mesh, daOption, daModel)
surfaceScalarField phiRes_
#define setResidualClassMemberScalar(stateName, stateUnit)
fv::options & fvOptions_
fvOptions term
#define normalizePhiResiduals(resName)
surfaceScalarField & phi_