本文整理汇总了C++中fvPatch类的典型用法代码示例。如果您正苦于以下问题:C++ fvPatch类的具体用法?C++ fvPatch怎么用?C++ fvPatch使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了fvPatch类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mixedFvPatchVectorField
pressureDirectedInletOutletVelocityFvPatchVectorField::
pressureDirectedInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
const dictionary& dict
)
:
mixedFvPatchVectorField(p, iF),
phiName_(dict.lookupOrDefault<word>("phi", "phi")),
rhoName_(dict.lookupOrDefault<word>("rho", "rho")),
inletDir_("inletDirection", dict, p.size())
{
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
refValue() = *this;
refGrad() = vector::zero;
valueFraction() = 0.0;
}
开发者ID:TsukasaHori,项目名称:openfoam-extend-foam-extend-3.1,代码行数:18,代码来源:pressureDirectedInletOutletVelocityFvPatchVectorField.C
示例2: fixedValueFvPatchVectorField
Foam::myHeatFluxFvPatchVectorField::
myHeatFluxFvPatchVectorField
(
const fvPatch& Theta,
const DimensionedField<vector, volMesh>& iF,
const dictionary& dict
)
:
fixedValueFvPatchVectorField(Theta, iF),
alpha("alpha", dict, Theta.size()),
Theta_wall("Theta_wall", dict, Theta.size()),
gamma("gamma", dict, Theta.size()),
g0("g0", dict, Theta.size()),
_normalNeighbours(Theta)
{
// Info << "myHeatFlux-Konstructor 3" << endl;
// fvPatchVectorField::operator=(alpha*patch().nf());
}
示例3:
calculatedFvsPatchField<Type>::calculatedFvsPatchField
(
const fvPatch& p,
const DimensionedField<Type, surfaceMesh>& iF,
const dictionary& dict
)
:
fvsPatchField<Type>(p, iF, Field<Type>("value", dict, p.size()))
{}
示例4:
fixedGradientCorrectedFvPatchField<Type>::fixedGradientCorrectedFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
)
:
correctedFvPatchField<Type>(p, iF),
gradient_(p.size(), pTraits<Type>::zero)
{}
示例5: mappedPatchBase
thermalBaffle1DFvPatchScalarField<solidType>::
thermalBaffle1DFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
)
:
mappedPatchBase(p.patch()),
mixedFvPatchScalarField(p, iF),
TName_("T"),
baffleActivated_(true),
thickness_(p.size()),
Qs_(p.size()),
solidDict_(),
solidPtr_(NULL),
QrPrevious_(p.size()),
QrRelaxation_(0),
QrName_("undefined-Qr")
{}
示例6:
Foam::partialSlipFvPatchField<Type>::partialSlipFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
)
:
transformFvPatchField<Type>(p, iF),
valueFraction_(p.size(), 1.0)
{}
示例7:
fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
)
:
transformFvPatchField<Type>(p, iF),
fixedValue_(p.size(), pTraits<Type>::zero)
{}
示例8: procPatch_
processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
//coupledFvPatchField<Type>(p, iF, dict),
processorFvPatchField<Type>(p, iF, dict),
procPatch_(refCast<const processorCyclicFvPatch>(p))
{
if (!isType<processorCyclicFvPatch>(p))
{
FatalIOErrorIn
(
"processorCyclicFvPatchField<Type>::processorCyclicFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const Field<Type>& field,\n"
" const dictionary& dict\n"
")\n",
dict
) << "\n patch type '" << p.type()
<< "' not constraint type '" << typeName << "'"
<< "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath()
<< exit(FatalIOError);
}
if (Pstream::defaultCommsType == Pstream::scheduled)
{
WarningIn
(
"processorCyclicFvPatchField<Type>::processorCyclicFvPatchField\n"
"(\n"
" const fvPatch& p,\n"
" const DimensionedField<Type, volMesh>& iF,\n"
" const dictionary& dict\n"
")\n"
) << "Scheduled communication with split cyclics not supported."
<< endl;
}
}
示例9: fixedValueFvPatchVectorField
Foam::myHeatFluxFvPatchVectorField::
myHeatFluxFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
)
:
fixedValueFvPatchVectorField(p, iF),
alpha(p.size())
{}
示例10:
fvsPatchField<Type>::fvsPatchField
(
const fvPatch& p,
const DimensionedField<Type, surfaceMesh>& iF
)
:
Field<Type>(p.size()),
patch_(p),
internalField_(iF)
{}
示例11: mixedFvPatchVectorField
Foam::temperatureDirectedInletOutletVelocityFvPatchVectorField::
temperatureDirectedInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
)
:
mixedFvPatchVectorField(p, iF),
phiName_("phi"),
TName_("T"),
T0_(p.size(), 0.0),
inletDir_(p.size()),
cylindricalCCS_(0),
omega_(vector::zero)
{
refValue() = *this;
refGrad() = vector::zero;
valueFraction() = 0.0;
}
开发者ID:Unofficial-Extend-Project-Mirror,项目名称:foam-extend-foam-extend-3.2,代码行数:19,代码来源:temperatureDirectedInletOutletVelocityFvPatchVectorField.C
示例12: secondNormalCellIsOwner
implicitExtrapolationFvPatchField<Type>::implicitExtrapolationFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
fvPatchField<Type>(p, iF, dict),
secondNormalCellIsOwner(p.size()),
secondDeltas(p.size()),
secondFacesIDs(p.size()),
internalCoeffsUpper(p.size()),
internalCoeffsLower(p.size()),
internalCoeffsDiag(p.size())
{
//Info << "constructor 3" << endl;
setExtraData(p);
fvPatchField<Type>::operator=(this->patchInternalField());
}
示例13: externalRadiationSource
ersConstantFlux::ersConstantFlux
(
const word& name,
const dictionary& dict,
const fvPatch& p
)
:
externalRadiationSource(name),
q_("q", dict, p.size())
{}
示例14:
Foam::fixedInternalValueFvPatchField<Type>::fixedInternalValueFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
zeroGradientFvPatchField<Type>(p, iF, dict),
refValue_(p.size())
{
if (dict.found("refValue"))
{
refValue_ = Field<Type>("refValue", dict, p.size());
}
else
{
refValue_ = this->patchInternalField();
}
}
示例15: nutkWallFunctionFvPatchScalarField
nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
)
:
nutkWallFunctionFvPatchScalarField(p, iF),
Ks_(p.size(), 0.0),
Cs_(p.size(), 0.0)
{}