本文整理汇总了C++中surfaceScalarField::mesh方法的典型用法代码示例。如果您正苦于以下问题:C++ surfaceScalarField::mesh方法的具体用法?C++ surfaceScalarField::mesh怎么用?C++ surfaceScalarField::mesh使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类surfaceScalarField
的用法示例。
在下文中一共展示了surfaceScalarField::mesh方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: word
Foam::combustionModel::combustionModel
(
const dictionary& combustionProperties,
const hsCombustionThermo& thermo,
const compressible::turbulenceModel& turbulence,
const surfaceScalarField& phi,
const volScalarField& rho
)
:
combustionModelCoeffs_
(
combustionProperties.subDict
(
word(combustionProperties.lookup("combustionModel")) + "Coeffs"
)
),
thermo_(thermo),
turbulence_(turbulence),
mesh_(phi.mesh()),
phi_(phi),
rho_(rho),
stoicRatio_(thermo.lookup("stoichiometricAirFuelMassRatio")),
s_(thermo.lookup("stoichiometricOxygenFuelMassRatio")),
qFuel_(thermo_.lookup("qFuel")),
composition_(thermo.composition())
{}
示例2:
tmp<GeometricField<Type, fvPatchField, volMesh> >
DDt
(
const surfaceScalarField& phi,
const GeometricField<Type, fvPatchField, volMesh>& psi
)
{
tmp<GeometricField<Type, fvPatchField, volMesh> > ddtDivPhiPsi
= fvc::ddt(psi) + fvc::div(phi, psi);
if (phi.mesh().moving())
{
return ddtDivPhiPsi - fvc::div(phi + phi.mesh().phi())*psi;
}
else
{
return ddtDivPhiPsi - fvc::div(phi)*psi;
}
}
示例3:
Foam::combustionModel::combustionModel
(
const dictionary& combustionProps,
hsCombustionThermo& thermo,
const compressible::turbulenceModel& turbulence,
const surfaceScalarField& phi,
const volScalarField& rho
)
:
coeffs_(dictionary::null),
thermo_(thermo),
turbulence_(turbulence),
mesh_(phi.mesh()),
phi_(phi),
rho_(rho)
{}