本文整理汇总了C++中phaseModel::mesh方法的典型用法代码示例。如果您正苦于以下问题:C++ phaseModel::mesh方法的具体用法?C++ phaseModel::mesh怎么用?C++ phaseModel::mesh使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类phaseModel
的用法示例。
在下文中一共展示了phaseModel::mesh方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dimensionedScalar
Foam::tmp<Foam::volScalarField>
Foam::kineticTheoryModels::granularPressureModels::SyamlalRogersOBrien::
granularPressureCoeff
(
const phaseModel& phase1,
const phaseModel& phase2,
const volScalarField& Theta1,
const volScalarField& Theta2,
const volScalarField& g0,
const dimensionedScalar& e
) const
{
if (&phase1 != &phase2)
{
return tmp<volScalarField>
(
new volScalarField
(
IOobject
(
"granularPressureCoeff",
phase1.time().timeName(),
phase1.mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
),
phase1.mesh(),
dimensionedScalar("0", dimDensity*sqr(dimVelocity), 0.0)
)
);
}
return 2.0*phase1.rho()*Theta1*(1.0 + e)*sqr(phase1)*g0;
}
示例2: mesh
Foam::tmp<Foam::volScalarField> Foam::blendingMethods::noBlending::f2
(
const phaseModel& phase1,
const phaseModel& phase2
) const
{
const fvMesh& mesh(phase1.mesh());
return
tmp<volScalarField>
(
new volScalarField
(
IOobject
(
"f",
mesh.time().timeName(),
mesh
),
mesh,
dimensionedScalar
(
"f",
dimless,
phase1.name() == continuousPhase_
)
)
);
}
示例3: phasePairKey
Foam::phasePair::phasePair
(
const phaseModel& phase1,
const phaseModel& phase2,
const bool ordered
)
:
phasePairKey(phase1.name(), phase2.name(), ordered),
phase1_(phase1),
phase2_(phase2),
g_(phase1.mesh().lookupObject<uniformDimensionedVectorField>("g"))
{}
示例4: mesh
Foam::tmp<Foam::volScalarField> Foam::blendingMethods::noBlending::f2
(
const phaseModel& phase1,
const phaseModel& phase2
) const
{
const fvMesh& mesh(phase1.mesh());
return volScalarField::New
(
"f",
mesh,
dimensionedScalar(dimless, phase1.name() == continuousPhase_)
);
}