本文整理汇总了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;
}
}
示例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);
}
示例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_);
}
示例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);
}
示例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;
}
}
示例6:
void Foam::fanPressureFvPatchScalarField::write(Ostream& os) const
{
totalPressureFvPatchScalarField::write(os);
fanCurve_.write(os);
os.writeKeyword("direction")
<< fanFlowDirectionNames_[direction_] << token::END_STATEMENT << nl;
}
示例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();
}
示例8: write
void uniformFixedValuePointPatchField<Type>::
write(Ostream& os) const
{
pointPatchField<Type>::write(os);
os.writeKeyword("uniformValue")
<< uniformValue_ << token::END_STATEMENT << nl;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
}