This boundary condition provides a supersonic free-stream condition. More...
Public Member Functions | |
TypeName ("supersonicFreestream") | |
Runtime type information. More... | |
supersonicFreestreamFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
supersonicFreestreamFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
supersonicFreestreamFvPatchVectorField (const supersonicFreestreamFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given supersonicFreestreamFvPatchVectorField. More... | |
supersonicFreestreamFvPatchVectorField (const supersonicFreestreamFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
supersonicFreestreamFvPatchVectorField (const supersonicFreestreamFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
const vector & | UInf () const |
Return the velocity at infinity. More... | |
vector & | UInf () |
Return reference to the velocity at infinity to allow adjustment. More... | |
scalar | pInf () const |
Return the pressure at infinity. More... | |
scalar & | pInf () |
Return reference to the pressure at infinity to allow adjustment. More... | |
scalar | TInf () const |
Return the temperature at infinity. More... | |
scalar & | TInf () |
Return reference to the temperature at infinity. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Private Attributes | |
word | TName_ |
Name of temperature field, default = "T". More... | |
word | pName_ |
Name of pressure field, default = "p". More... | |
word | psiName_ |
Name of compressibility field field, default = "thermo:psi". More... | |
vector | UInf_ |
Velocity of the free stream. More... | |
scalar | pInf_ |
Pressure of the free stream. More... | |
scalar | TInf_ |
Temperature of the free stream. More... | |
scalar | gamma_ |
Heat capacity ratio. More... | |
This boundary condition provides a supersonic free-stream condition.
- supersonic outflow is vented according to ???
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
TName | Temperature field name | no | T |
pName | Pressure field name | no | p |
psiName | Compressibility field name | no | thermo:psi |
UInf | free-stream velocity | yes | |
pInf | free-stream pressure | yes | |
TInf | free-stream temperature | yes | |
gamma | heat capacity ratio (cp/Cv) | yes |
Example of the boundary condition specification:
myPatch { type supersonicFreestream; UInf 500; pInf 1e4; TInf 265; gamma 1.4; }
Definition at line 127 of file supersonicFreestreamFvPatchVectorField.H.
supersonicFreestreamFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 35 of file supersonicFreestreamFvPatchVectorField.C.
Referenced by supersonicFreestreamFvPatchVectorField::clone().
supersonicFreestreamFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 77 of file supersonicFreestreamFvPatchVectorField.C.
References dict, dimensionedInternalField(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, p, and vectorField().
supersonicFreestreamFvPatchVectorField | ( | const supersonicFreestreamFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given supersonicFreestreamFvPatchVectorField.
onto a new patch
Definition at line 57 of file supersonicFreestreamFvPatchVectorField.C.
supersonicFreestreamFvPatchVectorField | ( | const supersonicFreestreamFvPatchVectorField & | sfspvf | ) |
Construct as copy.
Definition at line 124 of file supersonicFreestreamFvPatchVectorField.C.
supersonicFreestreamFvPatchVectorField | ( | const supersonicFreestreamFvPatchVectorField & | sfspvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 141 of file supersonicFreestreamFvPatchVectorField.C.
TypeName | ( | "supersonicFreestream" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 195 of file supersonicFreestreamFvPatchVectorField.H.
References supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 212 of file supersonicFreestreamFvPatchVectorField.H.
References supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField().
|
inline |
Return the velocity at infinity.
Definition at line 228 of file supersonicFreestreamFvPatchVectorField.H.
References supersonicFreestreamFvPatchVectorField::UInf_.
|
inline |
Return reference to the velocity at infinity to allow adjustment.
Definition at line 234 of file supersonicFreestreamFvPatchVectorField.H.
References supersonicFreestreamFvPatchVectorField::UInf_.
|
inline |
Return the pressure at infinity.
Definition at line 240 of file supersonicFreestreamFvPatchVectorField.H.
References supersonicFreestreamFvPatchVectorField::pInf_.
|
inline |
Return reference to the pressure at infinity to allow adjustment.
Definition at line 246 of file supersonicFreestreamFvPatchVectorField.H.
References supersonicFreestreamFvPatchVectorField::pInf_.
|
inline |
Return the temperature at infinity.
Definition at line 252 of file supersonicFreestreamFvPatchVectorField.H.
References supersonicFreestreamFvPatchVectorField::TInf_.
|
inline |
Return reference to the temperature at infinity.
to allow adjustment
Definition at line 259 of file supersonicFreestreamFvPatchVectorField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 159 of file supersonicFreestreamFvPatchVectorField.C.
References Foam::atan(), dimensionedInternalField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, supersonicFreestreamFvPatchVectorField::gamma_, Foam::log(), Foam::mag(), supersonicFreestreamFvPatchVectorField::pInf_, supersonicFreestreamFvPatchVectorField::pName_, Foam::pow(), supersonicFreestreamFvPatchVectorField::psiName_, R, Foam::sqr(), Foam::sqrt(), supersonicFreestreamFvPatchVectorField::TInf_, supersonicFreestreamFvPatchVectorField::TName_, U, and supersonicFreestreamFvPatchVectorField::UInf_.
|
virtual |
Write.
Definition at line 295 of file supersonicFreestreamFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().
|
private |
Name of temperature field, default = "T".
Definition at line 134 of file supersonicFreestreamFvPatchVectorField.H.
Referenced by supersonicFreestreamFvPatchVectorField::updateCoeffs().
|
private |
Name of pressure field, default = "p".
Definition at line 137 of file supersonicFreestreamFvPatchVectorField.H.
Referenced by supersonicFreestreamFvPatchVectorField::updateCoeffs().
|
private |
Name of compressibility field field, default = "thermo:psi".
Definition at line 140 of file supersonicFreestreamFvPatchVectorField.H.
Referenced by supersonicFreestreamFvPatchVectorField::updateCoeffs().
|
private |
Velocity of the free stream.
Definition at line 143 of file supersonicFreestreamFvPatchVectorField.H.
Referenced by supersonicFreestreamFvPatchVectorField::UInf(), and supersonicFreestreamFvPatchVectorField::updateCoeffs().
|
private |
Pressure of the free stream.
Definition at line 146 of file supersonicFreestreamFvPatchVectorField.H.
Referenced by supersonicFreestreamFvPatchVectorField::pInf(), and supersonicFreestreamFvPatchVectorField::updateCoeffs().
|
private |
Temperature of the free stream.
Definition at line 149 of file supersonicFreestreamFvPatchVectorField.H.
Referenced by supersonicFreestreamFvPatchVectorField::TInf(), and supersonicFreestreamFvPatchVectorField::updateCoeffs().
|
private |
Heat capacity ratio.
Definition at line 152 of file supersonicFreestreamFvPatchVectorField.H.
Referenced by supersonicFreestreamFvPatchVectorField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.