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


C++ Ostream::writeKeyword方法代码示例

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


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

示例1: write

void mutUSpaldingBlowingWallFunctionFvPatchScalarField::write(Ostream& os) const
{
    fvPatchField<scalar>::write(os);
    writeLocalEntries(os);
    os.writeKeyword("hOCp") << hOCp_ << token::END_STATEMENT << nl;
    os.writeKeyword("rPhi") << rPhi_ << token::END_STATEMENT << nl;
    writeEntry("value", os);
}
开发者ID:ashishvinayak,项目名称:fireFoam-2.4.x,代码行数:8,代码来源:mutUSpaldingBlowingWallFunctionFvPatchScalarField.C

示例2:

void oscillatingFixedValueFvPatchField<Type>::write(Ostream& os) const
{
    fixedValueFvPatchField<Type>::write(os);
    refValue_.writeEntry("refValue", os);
    os.writeKeyword("offset") << offset_ << token::END_STATEMENT << nl;
    amplitude_->writeData(os);
    frequency_->writeData(os);
}
开发者ID:ADGlassby,项目名称:OpenFOAM-2.2.x,代码行数:8,代码来源:oscillatingFixedValueFvPatchField.C

示例3:

void Foam::sixDoFRigidBodyMotionConstraints::point::write
(
    Ostream& os
) const
{
    os.writeKeyword("centreOfRotation")
        << centreOfRotation_ << token::END_STATEMENT << nl;
}
开发者ID:BijanZarif,项目名称:OpenFOAM-2.4.0-MNF,代码行数:8,代码来源:sixDoFRigidBodyMotionPointConstraint.C

示例4: write

// Write
void solidTractionFreeFvPatchVectorField::write(Ostream& os) const
{
    fvPatchVectorField::write(os);
    os.writeKeyword("nonLinear")
        << nonLinearGeometry::nonLinearNames_[nonLinear_]
    << token::END_STATEMENT << nl;
    writeEntry("value", os);
}
开发者ID:Unofficial-Extend-Project-Mirror,项目名称:openfoam-extend-foam-extend-3.0,代码行数:9,代码来源:solidTractionFreeFvPatchVectorField.C

示例5: writeEntry

void Foam::fixedShearStressFvPatchVectorField::write(Ostream& os) const
{
    fixedValueFvPatchVectorField::write(os);
    writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
    writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);
    os.writeKeyword("tau") << tau0_ << token::END_STATEMENT << nl;
    writeEntry("value", os);
}
开发者ID:ADGlassby,项目名称:OpenFOAM-2.2.x,代码行数:8,代码来源:fixedShearStressFvPatchVectorField.C

示例6:

void Foam::patchIdentifier::write(Ostream& os) const
{
    if (physicalType_.size())
    {
        os.writeKeyword("physicalType") << physicalType_
            << token::END_STATEMENT << nl;
    }
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:8,代码来源:patchIdentifier.C

示例7:

void Foam::SubModelBase<CloudType>::write(Ostream& os) const
{
    os.writeKeyword("owner") << owner_.name() << token::END_STATEMENT << nl;

    // not writing complete cloud dictionary, only coeffs
//    os  << dict_;
    os  << coeffDict_;
}
开发者ID:OpenFOAM,项目名称:OpenFOAM-2.0.x,代码行数:8,代码来源:SubModelBase.C

示例8: writeEntry

void Foam::syringePressureFvPatchScalarField::write(Ostream& os) const
{
    fvPatchScalarField::write(os);

    os.writeKeyword("Ap") << Ap_ << token::END_STATEMENT << nl;
    os.writeKeyword("Sp") << Sp_ << token::END_STATEMENT << nl;
    os.writeKeyword("VsI") << VsI_ << token::END_STATEMENT << nl;
    os.writeKeyword("tas") << tas_ << token::END_STATEMENT << nl;
    os.writeKeyword("tae") << tae_ << token::END_STATEMENT << nl;
    os.writeKeyword("tds") << tds_ << token::END_STATEMENT << nl;
    os.writeKeyword("tde") << tde_ << token::END_STATEMENT << nl;
    os.writeKeyword("psI") << psI_ << token::END_STATEMENT << nl;
    os.writeKeyword("psi") << psi_ << token::END_STATEMENT << nl;
    os.writeKeyword("ams") << ams_ << token::END_STATEMENT << nl;

    writeEntry("value", os);
}
开发者ID:CDAC-CFD,项目名称:OpenFOAM-2.4.x,代码行数:17,代码来源:syringePressureFvPatchScalarField.C

示例9:

void
UniformFixedValuePointPatchField
<PatchField, Mesh, PointPatch, MatrixType, Type>::write(Ostream& os) const
{
    PatchField<Type>::write(os);
    os.writeKeyword("uniformValue")
        << uniformValue_ << token::END_STATEMENT << nl;
}
开发者ID:CFMS,项目名称:foam-extend-foam-extend-3.2,代码行数:8,代码来源:UniformFixedValuePointPatchField.C

示例10:

void waveTransmissiveFvPatchField<Type>::write(Ostream& os) const
{
    advectiveFvPatchField<Type>::write(os);
    if (this->phiName_ != "phi")
    {
        os.writeKeyword("phi") << this->phiName_ << token::END_STATEMENT << nl;
    }
    if (this->rhoName_ != "rho")
    {
        os.writeKeyword("rho") << this->rhoName_ << token::END_STATEMENT << nl;
    }
    if (this->UName_ != "U")
    {
        os.writeKeyword("U") << this->UName_ << token::END_STATEMENT << nl;
    }
    if (psiName_ != "psi")
    {
        os.writeKeyword("psi") << psiName_ << token::END_STATEMENT << nl;
    }

    os.writeKeyword("gamma") << gamma_ << token::END_STATEMENT << nl;

    if (this->lInf_ > SMALL)
    {
        os.writeKeyword("fieldInf") << this->fieldInf_
            << token::END_STATEMENT << nl;
        os.writeKeyword("lInf") << this->lInf_
            << token::END_STATEMENT << nl;
    }

    this->writeEntry("value", os);
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:32,代码来源:waveTransmissiveFvPatchField.C

示例11:

void Foam::semiTransSurfaceCoupledFvPatchScalarField::write
(
    Ostream& os
) const
{
    mixedFvPatchScalarField::write(os);
    os.writeKeyword("neighbourFieldName")<< neighbourFieldName_
        << token::END_STATEMENT << nl;
        }
开发者ID:kongdebo,项目名称:lightModel,代码行数:9,代码来源:semiTransSurfaceCoupledFvPatchScalarField.C

示例12: word

void waveTransmissiveFvPatchField<Type>::write(Ostream& os) const
{
    advectiveFvPatchField<Type>::write(os);

    this->writeEntryIfDifferent(os, "U", word("U"), UName_);
    this->writeEntryIfDifferent(os, "psi", word("psi"), psiName_);

    os.writeKeyword("gamma") << gamma_ << token::END_STATEMENT << nl;
}
开发者ID:CFMS,项目名称:foam-extend-foam-extend-3.2,代码行数:9,代码来源:waveTransmissiveFvPatchField.C

示例13: gradient

void Foam::fixedFluxPressureFvPatchScalarField::write(Ostream& os) const
{
    fvPatchScalarField::write(os);
    writeEntryIfDifferent<word>(os, "U", "U", UName_);
    writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
    writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);
    os.writeKeyword("adjoint") << adjoint_ << token::END_STATEMENT << nl;
    gradient().writeEntry("gradient", os);
}
开发者ID:TatuP,项目名称:applications,代码行数:9,代码来源:fixedFluxPressureFvPatchScalarField.C

示例14:

void Foam::fixedEnthalpyFluxTemperatureFvPatchScalarField::
write(Ostream& os) const
{
    fvPatchField<scalar>::write(os);
    os.writeKeyword("phi") << phiName_ << token::END_STATEMENT << nl;
    os.writeKeyword("rho") << rhoName_ << token::END_STATEMENT << nl;
    Tinf_.writeEntry("Tinf", os);
    this->writeEntry("value", os);
}
开发者ID:ashishvinayak,项目名称:fireFoam-2.4.x,代码行数:9,代码来源:fixedEnthalpyFluxTemperatureFvPatchScalarField.C

示例15:

void Foam::alphaContactAngleFvPatchScalarField::write
(
    Ostream& os
) const
{
    fixedGradientFvPatchScalarField::write(os);
    os.writeKeyword("limit")
            << limitControlNames_[limit_] << token::END_STATEMENT << nl;
}
开发者ID:Cescfangs,项目名称:OpenFOAM-1.7.x,代码行数:9,代码来源:alphaContactAngleFvPatchScalarField.C


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