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


C++ Ostream类代码示例

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


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

示例1:

void Foam::timeVaryingMappedFixedValuePointPatchField<Type>::write
(
    Ostream& os
) const
{
    fixedValuePointPatchField<Type>::write(os);
    os.writeKeyword("setAverage") << setAverage_ << token::END_STATEMENT << nl;
    os.writeKeyword("perturb") << perturb_ << token::END_STATEMENT << nl;

    if (fieldTableName_ != this->dimensionedInternalField().name())
    {
        os.writeKeyword("fieldTableName") << fieldTableName_
            << token::END_STATEMENT << nl;
    }
}
开发者ID:000861,项目名称:OpenFOAM-2.1.x,代码行数:15,代码来源:timeVaryingMappedFixedValuePointPatchField.C

示例2: write

void atmBoundaryLayerInletEpsilonFvPatchScalarField::write(Ostream& os) const
{
    fvPatchScalarField::write(os);
    os.writeKeyword("z")
        << z_ << token::END_STATEMENT << nl;
    os.writeKeyword("kappa")
        << kappa_ << token::END_STATEMENT << nl;
    os.writeKeyword("Uref")
        << Uref_ << token::END_STATEMENT << nl;
    os.writeKeyword("Href")
        << Href_ << token::END_STATEMENT << nl;
    z0_.writeEntry("z0", os);
    zGround_.writeEntry("zGround", os);
    writeEntry("value", os);
}
开发者ID:CFD-worker,项目名称:OpenFOAM-2.3.x,代码行数:15,代码来源:atmBoundaryLayerInletEpsilonFvPatchScalarField.C

示例3:

void Foam::codedFixedValuePointPatchField<Type>::write(Ostream& os) const
{
    fixedValuePointPatchField<Type>::write(os);
    os.writeKeyword("name") << name_ << token::END_STATEMENT << nl;

    context_.write(os, dict_);
}
开发者ID:mattijsjanssens,项目名称:mattijs-extensions,代码行数:7,代码来源:codedFixedValuePointPatchField.C

示例4: writeEntry

void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::write(Ostream& os) const
{
    fvPatchScalarField::write(os);
    Trad_.writeEntry("Trad", os);
    os.writeKeyword("emissivity") << emissivity_ << token::END_STATEMENT << nl;
    writeEntry("value", os);
}
开发者ID:Cescfangs,项目名称:OpenFOAM-1.7.x,代码行数:7,代码来源:MarshakRadiationFixedTMixedFvPatchScalarField.C

示例5:

void Foam::codedFixedValueFvPatchField<Type>::write(Ostream& os) const
{
    fixedValueFvPatchField<Type>::write(os);
    os.writeKeyword("redirectType") << redirectType_
        << token::END_STATEMENT << nl;

    if (dict_.found("code"))
    {
        os.writeKeyword("code")
            << token::HASH << token::BEGIN_BLOCK;

        os.writeQuoted(string(dict_["code"]), false)
            << token::HASH << token::END_BLOCK
            << token::END_STATEMENT << nl;
    }
}
开发者ID:AmaneShino,项目名称:OpenFOAM-2.0.x,代码行数:16,代码来源:codedFixedValueFvPatchField.C

示例6:

void Foam::fanPressureFvPatchScalarField::write(Ostream& os) const
{
    totalPressureFvPatchScalarField::write(os);
    fanCurve_.write(os);
    os.writeKeyword("direction")
        << fanFlowDirectionNames_[direction_] << token::END_STATEMENT << nl;
}
开发者ID:EricAlex,项目名称:OpenFOAM-dev,代码行数:7,代码来源:fanPressureFvPatchScalarField.C

示例7: baseFld

bool Foam::volFieldStreamReconstructor<Type>::decompose
(
    const parUnallocatedFvFieldReconstructor& reconstructor,
    const unallocatedFvMesh& baseMesh,
    const IOobject& baseIO,

    const unallocatedFvMesh& thisMesh,
    const IOobject& thisIO,
    const bool,
    Ostream& os
) const
{
    typedef GeometricField<Type, unallocatedFvPatchField, unallocatedVolMesh>
        GeoField;

    // Read base field
    Info<< "Reading " << baseIO.objectPath() << endl;
    const GeoField baseFld(baseIO, baseMesh);

    // Decompose
    tmp<GeoField> tfld(reconstructor.decomposeFvVolumeField(baseFld));

    // Stream
    Pout<< incrIndent;
    os << tfld();
    Pout<< decrIndent;

    return os.good();
}
开发者ID:mattijsjanssens,项目名称:mattijs-extensions,代码行数:29,代码来源:volFieldStreamReconstructor.C

示例8: write

void uniformFixedValuePointPatchField<Type>::
write(Ostream& os) const
{
    pointPatchField<Type>::write(os);
    os.writeKeyword("uniformValue")
        << uniformValue_ << token::END_STATEMENT << nl;
}
开发者ID:Mat-moran,项目名称:OpenFOAM-2.0.x,代码行数:7,代码来源:uniformFixedValuePointPatchField.C

示例9: write

void inviscidWallPFvPatchScalarField::write(Ostream& os) const
{
    fixedGradientFvPatchScalarField::write(os);
    os.writeKeyword("fluxFraction")
        << fluxFraction_ << token::END_STATEMENT << nl;
    writeEntry("value", os);
}
开发者ID:GoldenMan123,项目名称:openfoam-extend-foam-extend-3.1,代码行数:7,代码来源:inviscidWallPFvPatchScalarField.C

示例10:

void regionCouplingFvsPatchField<Type>::write(Ostream& os) const
{
    fvsPatchField<Type>::write(os);
    os.writeKeyword("remoteField")
        << remoteFieldName_ << token::END_STATEMENT << nl;
    this->writeEntry("value", os);
}
开发者ID:CFMS,项目名称:foam-extend-foam-extend-3.2,代码行数:7,代码来源:regionCouplingFvsPatchField.C

示例11: writeEntry

void Foam::SRFVelocityFvPatchVectorField::write(Ostream& os) const
{
    fvPatchVectorField::write(os);
    os.writeKeyword("relative") << relative_ << token::END_STATEMENT << nl;
    inletValue_.writeEntry("inletValue", os);
    writeEntry("value", os);
}
开发者ID:EricAlex,项目名称:OpenFOAM-dev,代码行数:7,代码来源:SRFVelocityFvPatchVectorField.C

示例12: writeEntry

// Write
void Foam::smoluchowskiJumpTFvPatchScalarField::write(Ostream& os) const
{
    fvPatchScalarField::write(os);

    writeEntryIfDifferent<word>(os, "U", "U", UName_);
    writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);
    writeEntryIfDifferent<word>(os, "psi", "thermo:psi", psiName_);
    writeEntryIfDifferent<word>(os, "mu", "thermo:mu", muName_);

    os.writeKeyword("accommodationCoeff")
        << accommodationCoeff_ << token::END_STATEMENT << nl;
    Twall_.writeEntry("Twall", os);
    os.writeKeyword("gamma")
        << gamma_ << token::END_STATEMENT << nl;
    writeEntry("value", os);
}
开发者ID:BarisCumhur,项目名称:OpenFOAM-2.3.x,代码行数:17,代码来源:smoluchowskiJumpTFvPatchScalarField.C

示例13:

void fixedIncidentRadiationCoupledMixedFvPatchScalarField::write
(
    Ostream& os
) const
{
    mixedFvPatchScalarField::write(os);
    os.writeKeyword("neighbourFieldName")<< neighbourFieldName_
        << token::END_STATEMENT << nl;
    os.writeKeyword("neighbourFieldRadiativeName")<<
        neighbourFieldRadiativeName_ << token::END_STATEMENT << nl;
    os.writeKeyword("fieldRadiativeName")<< fieldRadiativeName_
        << token::END_STATEMENT << nl;
    os.writeKeyword("QrIncident")<< QrIncident_
        << token::END_STATEMENT << nl;
    os.writeKeyword("K") << KName_ << token::END_STATEMENT << nl;
}
开发者ID:ashishvinayak,项目名称:fireFoam-2.4.x,代码行数:16,代码来源:fixedIncidentRadiationCoupledMixedFvPatchScalarField.C

示例14:

void surfaceChargeCoupledFvPatchScalarField::write
(
    Ostream& os
) const
{
    mixedFvPatchScalarField::write(os);
    os.writeKeyword("neighbourFieldName")<< neighbourFieldName_
        << token::END_STATEMENT << nl;
    os.writeKeyword("surfaceCharge")<< surfCharge_
	<< token::END_STATEMENT << nl;
    os.writeKeyword("myEpr")<< myEpr_
	<< token::END_STATEMENT << nl;
    os.writeKeyword("nbrEpr")<< nbrEpr_
	<< token::END_STATEMENT << nl;
    temperatureCoupledBase::write(os);
}
开发者ID:maoyanren,项目名称:surfaceChargeCoupledBoundaryCondition,代码行数:16,代码来源:surfaceChargeCoupledFvPatchScalarField.C

示例15: name

void Foam::coupleGroupIdentifier::write(Ostream& os) const
{
    if (valid())
    {
        os.writeKeyword("coupleGroup") << name() << token::END_STATEMENT << nl;
    }
}
开发者ID:Kiiree,项目名称:CONSELFcae-dev,代码行数:7,代码来源:coupleGroupIdentifier.C


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