44 psiName_(
"thermo:psi"),
59 psiName_(ptf.psiName_),
85 psiName_(ptpsf.psiName_),
98 psiName_(ptpsf.psiName_),
111 this->patch().template
112 lookupPatchField<volScalarField, scalar>(psiName_);
115 this->db().template lookupObject<surfaceScalarField>(this->phiName_);
118 this->patch().template
119 lookupPatchField<surfaceScalarField, scalar>(this->phiName_);
124 this->patch().template
125 lookupPatchField<volScalarField, scalar>(this->rhoName_);
133 return phip/this->patch().magSf() +
sqrt(gamma_/psip);
143 writeEntryIfDifferent<word>(os,
"phi",
"phi", this->phiName_);
145 writeEntryIfDifferent<word>(os,
"rho",
"rho", this->rhoName_);
147 writeEntryIfDifferent<word>(os,
"psi",
"thermo:psi", psiName_);
149 os.writeKeyword(
"gamma") << gamma_ << token::END_STATEMENT <<
nl;
151 if (this->lInf_ > SMALL)
153 os.writeKeyword(
"fieldInf") << this->fieldInf_
154 << token::END_STATEMENT <<
nl;
155 os.writeKeyword(
"lInf") << this->lInf_
156 << token::END_STATEMENT <<
nl;
159 this->writeEntry(
"value", os);
dimensionedScalar sqrt(const dimensionedScalar &ds)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< scalarField > advectionSpeed() const
Calculate and return the advection speed at the boundary.
const dimensionSet dimArea(sqr(dimLength))
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
const dimensionSet dimDensity
A list of keyword definitions, which are a keyword followed by any number of values (e...
This boundary condition provides an advective outflow condition, based on solving DDt(psi...
Macros for easy insertion into run-time selection tables.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a wave transmissive outflow condition, based onsolving DDt(psi...
const dimensionSet dimVelocity
A class for managing temporary objects.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
waveTransmissiveFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.