当前位置: 首页>>代码示例>>C++>>正文


C++ fvPatch::size方法代码示例

本文整理汇总了C++中fvPatch::size方法的典型用法代码示例。如果您正苦于以下问题:C++ fvPatch::size方法的具体用法?C++ fvPatch::size怎么用?C++ fvPatch::size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在fvPatch的用法示例。


在下文中一共展示了fvPatch::size方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: nutkWallFunctionFvPatchScalarField

nutkAtmRoughWallFunctionFvPatchScalarField::
nutkAtmRoughWallFunctionFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF
)
:
    nutkWallFunctionFvPatchScalarField(p, iF),
    z0_(p.size(), 0.0)
{}
开发者ID:BarisCumhur,项目名称:OpenFOAM-dev,代码行数:10,代码来源:nutkAtmRoughWallFunctionFvPatchScalarField.C

示例2: 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

示例3: 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());
}
开发者ID:JonasBuenger,项目名称:myFoamStuff,代码行数:19,代码来源:implicitExtrapolationFvPatchField.C

示例4:

Foam::fvsPatchField<Type>::fvsPatchField
(
    const fvPatch& p,
    const DimensionedField<Type, surfaceMesh>& iF
)
:
    Field<Type>(p.size()),
    patch_(p),
    internalField_(iF)
{}
开发者ID:mattijsjanssens,项目名称:mattijs-extensions,代码行数:10,代码来源:fvsPatchField.C

示例5: fixedValueFvPatchVectorField

Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
(
    const fvPatch& p,
    const DimensionedField<vector, volMesh>& iF
)
:
    fixedValueFvPatchVectorField(p, iF),
    relative_(0),
    inletValue_(p.size(), Zero)
{}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:10,代码来源:SRFVelocityFvPatchVectorField.C

示例6: mixedFvPatchScalarField

greyDiffusiveRadiationMixedFvPatchScalarField::
greyDiffusiveRadiationMixedFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF,
    const dictionary& dict
)
:
    mixedFvPatchScalarField(p, iF),
    TName_(dict.lookup("T")),
    emissivity_(readScalar(dict.lookup("emissivity"))),
    sumOutgoingAnglesPtr_(NULL)
{
    if (dict.found("refValue"))
    {
        refValue() = scalarField("value", dict, p.size());

        fvPatchScalarField::operator=
        (
            refValue()
        );

        refGrad() = scalarField("refGradient", dict, p.size());
        valueFraction() = scalarField("valueFraction", dict, p.size());
    }
    else
    {
        // No value given. Restart as fixedValue b.c.

        // Bugfix: Do not initialize from temperautre because it is unavailable
        // when running, e.g. decomposePar and loading radiation as
        // shared library. Initialize to zero instead.
        // 26 Mar 2014 - DC

        refValue() = 0;

        refGrad() = 0;
        valueFraction() = 1;

        fvPatchScalarField::operator=(refValue());
    }
}
开发者ID:Unofficial-Extend-Project-Mirror,项目名称:foam-extend-foam-extend-3.2,代码行数:42,代码来源:greyDiffusiveRadiationMixedFvPatchScalarField.C

示例7: fixedValueFvPatchScalarField

Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
greyDiffusiveViewFactorFixedValueFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF
)
:
    fixedValueFvPatchScalarField(p, iF),
    radiationCoupledBase(patch(), "undefined", scalarField::null()),
    Qro_(p.size(), 0.0)
{}
开发者ID:AmaneShino,项目名称:OpenFOAM-2.0.x,代码行数:11,代码来源:greyDiffusiveViewFactorFixedValueFvPatchScalarField.C

示例8: fixedValueFvPatchScalarField

Foam::prghPressureFvPatchScalarField::
prghPressureFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF
)
:
    fixedValueFvPatchScalarField(p, iF),
    rhoName_("rho"),
    p_(p.size(), 0.0)
{}
开发者ID:BarisCumhur,项目名称:OpenFOAM-dev,代码行数:11,代码来源:prghPressureFvPatchScalarField.C

示例9: fixedGradientFvPatchScalarField

Foam::solidWallHeatFluxTemperatureFvPatchScalarField::
solidWallHeatFluxTemperatureFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF
)
:
    fixedGradientFvPatchScalarField(p, iF),
    q_(p.size(), 0.0),
    KName_("undefined-K")
{}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:11,代码来源:solidWallHeatFluxTemperatureFvPatchScalarField.C

示例10: fixedValueFvPatchVectorField

Foam::SRFWallVelocityFvPatchVectorField::SRFWallVelocityFvPatchVectorField
(
    const fvPatch& p,
    const DimensionedField<vector, volMesh>& iF,
    const dictionary& dict
)
:
    fixedValueFvPatchVectorField(p, iF)
{
    fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
}
开发者ID:BarisCumhur,项目名称:OpenFOAM-dev,代码行数:11,代码来源:SRFWallVelocityFvPatchVectorField.C

示例11: fixedValueFvPatchVectorField

Foam::interstitialInletVelocityFvPatchVectorField::
interstitialInletVelocityFvPatchVectorField
(
    const fvPatch& p,
    const DimensionedField<vector, volMesh>& iF
)
:
    fixedValueFvPatchVectorField(p, iF),
    inletVelocity_(p.size(), Zero),
    alphaName_("alpha")
{}
开发者ID:mattijsjanssens,项目名称:mattijs-extensions,代码行数:11,代码来源:interstitialInletVelocityFvPatchVectorField.C

示例12: fixedValueFvPatchScalarField

Foam::varyingGammaTotalTemperatureFvPatchScalarField::varyingGammaTotalTemperatureFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF
)
:
    fixedValueFvPatchScalarField(p, iF),
    UName_("U"),
    phiName_("phi"),
    T0_(p.size(), 0.0)
{}
开发者ID:unicfdlab,项目名称:libcompressibleTools,代码行数:11,代码来源:varyingGammaTotalTemperatureFvPatchScalarField.C

示例13: fixedValueFvPatchScalarField

Foam::isentropicTotalTemperatureFvPatchScalarField::
isentropicTotalTemperatureFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF
)
:
    fixedValueFvPatchScalarField(p, iF),
    pName_("p"),
    T0_(p.size(), 0.0)
{}
开发者ID:Unofficial-Extend-Project-Mirror,项目名称:foam-extend-foam-extend-3.2,代码行数:11,代码来源:isentropicTotalTemperatureFvPatchScalarField.C

示例14: nutkWallFunctionFvPatchScalarField

nutkAtmRoughWallFunctionFvPatchScalarField::
nutkAtmRoughWallFunctionFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF,
    const dictionary& dict
)
:
    nutkWallFunctionFvPatchScalarField(p, iF, dict),
    z0_("z0", dict, p.size())
{}
开发者ID:BijanZarif,项目名称:OpenFOAM-2.4.0-MNF,代码行数:11,代码来源:nutkAtmRoughWallFunctionFvPatchScalarField.C

示例15: nutkWallFunctionFvPatchScalarField

nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField
(
    const fvPatch& p,
    const DimensionedField<scalar, volMesh>& iF,
    const dictionary& dict
)
    :
    nutkWallFunctionFvPatchScalarField(p, iF, dict),
    Ks_("Ks", dict, p.size()),
    Cs_("Cs", dict, p.size())
{}
开发者ID:rmaries,项目名称:OpenFOAM-2.3.x,代码行数:11,代码来源:nutkRoughWallFunctionFvPatchScalarField.C


注:本文中的fvPatch::size方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。