38 namespace functionObjects
51 writeHeader(
file(),
"Wall shear stress");
52 writeCommented(
file(),
"Time");
53 writeTabbed(
file(),
"patch");
54 writeTabbed(
file(),
"min");
55 writeTabbed(
file(),
"max");
76 volVectorField::Boundary& wallShearStressBf =
77 twallShearStress.
ref().boundaryFieldRef();
87 wallShearStressBf[
patchi] = (-Sfp/magSfp) & Reffp;
90 return twallShearStress;
110 resetLocalObjectName(typeName);
137 if (patchSet_.empty())
141 if (isA<wallPolyPatch>(pbm[
patchi]))
143 patchSet_.insert(patchi);
147 Info<<
" processing all wall patches" << nl <<
endl;
151 Info<<
" processing wall patches: " <<
nl;
156 if (isA<wallPolyPatch>(pbm[patchi]))
158 filteredPatchSet.
insert(patchi);
164 <<
"Requested wall shear stress on non-wall boundary " 171 patchSet_ = filteredPatchSet;
186 const cmpModel& model =
189 Reff = model.devRhoReff();
193 const icoModel& model =
196 Reff = model.devReff();
201 <<
"Unable to find turbulence model in the " 207 return store(name, calcShearStress(Reff));
236 file() << mesh_.time().value()
243 Log <<
" min/max(" << pp.
name() <<
") = " 244 << minSsp <<
", " << maxSsp <<
endl;
virtual bool write()
Write function.
Calculates the natural logarithm of the specified scalar field.
#define forAll(list, i)
Loop across all elements in list.
virtual bool write()
Write function.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool read(const dictionary &)
Read the wallShearStress data.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type gMin(const FieldField< Field, Type > &f)
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static bool master(const label communicator=0)
Am I the master process.
wallShearStress(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
bool insert(const Key &key)
Insert a new entry.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch IDs corresponding to the given names.
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
static tmp< GeometricField< vector, fvPatchField, volMesh > > New(const word &name, const Mesh &, const dimensionSet &, const word &patchFieldType=fvPatchField< vector >::calculatedType())
Return a temporary field constructed from name, mesh, dimensionSet.
virtual bool execute()
Calculate the wall shear-stress.
Templated abstract base class for single-phase incompressible turbulence models.
const dimensionSet & dimensions() const
Return dimensions.
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
virtual void writeFileHeader(const label i)
File header information.
virtual ~wallShearStress()
Destructor.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
Calculates and write the shear-stress at wall patches as the volVectorField field 'wallShearStress'...
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Type gMax(const FieldField< Field, Type > &f)
word name(const complex &)
Return a string representation of a complex.
defineTypeNameAndDebug(Qdot, 0)
virtual bool write()
Write the wall shear-stress.
tmp< volVectorField > calcShearStress(const volSymmTensorField &Reff)
Calculate the shear-stress.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define WarningInFunction
Report a warning using Foam::Warning.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
FunctionObject base class for managing a list of objects on behalf of the inheriting function object...
virtual bool read(const dictionary &)
Read the list of objects to be written.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
#define Log
Report write to Foam::Info if the local log switch is true.
virtual const word & name() const
Return name.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
List< wordRe > wordReList
A List of wordRe (word or regular expression)
A class for managing temporary objects.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...