Write wallShearStress field. More...
Public Member Functions | |
TypeName ("wallShearStressWriter") | |
Runtime type information. More... | |
wallShearStressWriter (const dictionary &dict) | |
virtual void | write (const objectRegistry &obr) |
Write derived field. More... | |
![]() | |
virtual | ~derivedFieldWriter () |
Static Public Attributes | |
static const word | FIELD_NAME |
Field file name. More... | |
Private Member Functions | |
tmp< volSymmTensorField > | devRhoReff (const objectRegistry &obr, bool &foundField) const |
Return the effective viscous stress (laminar + turbulent). More... | |
tmp< Foam::volScalarField > | rho (const objectRegistry &obr) const |
Return rho field if it exists or rhoRef_ for incompressible rho. More... | |
Private Attributes | |
word | UName_ |
Name of velocity field. More... | |
word | rhoName_ |
Name of density field (optional) More... | |
scalar | rhoRef_ |
Reference density needed for incompressible calculations. More... | |
Additional Inherited Members | |
![]() | |
template<class T > | |
static T * | read (const dictionary &dict) |
Create obj if requested. More... | |
![]() | |
derivedFieldWriter (const dictionary &dict) | |
template<class T_Field > | |
void | writeStatistics (const T_Field &fieldp, const word &patchName, const word &fieldName) |
Write min/max/average. More... | |
wallShearStressWriter | ( | const dictionary & | dict | ) |
Definition at line 101 of file wallShearStressWriter.C.
References dict, dictionary::readIfPresent(), wallShearStressWriter::rhoName_, and wallShearStressWriter::rhoRef_.
|
private |
Return the effective viscous stress (laminar + turbulent).
Definition at line 73 of file wallShearStressWriter.C.
References objectRegistry::foundObject(), objectRegistry::lookupObject(), GeometricField::null(), turbulenceModel::propertiesName, and rho.
|
private |
Return rho field if it exists or rhoRef_ for incompressible rho.
Definition at line 44 of file wallShearStressWriter.C.
References Foam::dimDensity, objectRegistry::lookupObject(), mesh, wallShearStressWriter::rhoName_, wallShearStressWriter::rhoRef_, fvMesh::time(), and Time::timeName().
TypeName | ( | "wallShearStressWriter" | ) |
Runtime type information.
|
virtual |
Write derived field.
Implements derivedFieldWriter.
Definition at line 116 of file wallShearStressWriter.C.
References fvMesh::boundary(), GeometricField::boundaryField(), Foam::dimLength, Foam::dimTime, forAll, fvMesh::magSf(), mesh, fvPatch::name(), IOobject::NO_READ, IOobject::NO_WRITE, patches, patchi, fvMesh::Sf(), Foam::sqr(), objectRegistry::time(), Time::timeName(), wallShearStress::write(), and Vector< scalar >::zero.
|
private |
Name of velocity field.
Definition at line 54 of file wallShearStressWriter.H.
|
private |
Name of density field (optional)
Definition at line 57 of file wallShearStressWriter.H.
Referenced by wallShearStressWriter::rho(), and wallShearStressWriter::wallShearStressWriter().
|
private |
Reference density needed for incompressible calculations.
Definition at line 60 of file wallShearStressWriter.H.
Referenced by wallShearStressWriter::rho(), and wallShearStressWriter::wallShearStressWriter().
|
static |
Field file name.
Definition at line 76 of file wallShearStressWriter.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.