Go to the documentation of this file.
64 label patchI = iter.key();
72 ssp = (-Sfp/magSfp) & Reffp;
84 <<
" min/max(" << pp.
name() <<
") = "
85 << minSsp <<
", " << maxSsp <<
endl;
97 const bool loadFromFiles
109 if (!isA<fvMesh>(obr_))
113 <<
"No fvMesh available, deactivating " << name_ <<
nl
121 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
145 mesh.objectRegistry::store(wallShearStressPtr);
147 writeFileHeader(file());
166 log_.readIfPresent(
"log",
dict);
169 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
178 if (log_)
Info <<
type() <<
" " << name_ <<
" output:" <<
nl;
180 if (patchSet_.empty())
184 if (isA<wallPolyPatch>(pbm[patchI]))
186 patchSet_.insert(patchI);
190 if (log_)
Info <<
" processing all wall patches" <<
nl <<
endl;
194 if (log_)
Info <<
" processing wall patches: " <<
nl;
198 label patchI = iter.key();
199 if (isA<wallPolyPatch>(pbm[patchI]))
201 filteredPatchSet.
insert(patchI);
207 <<
"Requested wall shear stress on non-wall boundary "
208 <<
"type patch: " << pbm[patchI].
name() <<
endl;
214 patchSet_ = filteredPatchSet;
227 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
235 if (log_)
Info <<
type() <<
" " << name_ <<
" output:" <<
nl;
241 const cmpModel& model =
244 Reff = model.devRhoReff();
248 const icoModel& model =
251 Reff = model.devReff();
256 <<
"Unable to find turbulence model in the "
287 <<
type() <<
" " << name_ <<
" output:" <<
nl
virtual const word & name() const
Return name of the set of wallShearStress.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
bool read(const char *, int32_t &)
virtual void write()
Calculate the wallShearStress and write.
void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
List< wordRe > wordReList
A List of wordRe (word or regular expression)
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual ~wallShearStress()
Destructor.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
void read(const dictionary &dict)
Read.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
Registry of regIOobjects.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
void calcShearStress(const fvMesh &mesh, const volSymmTensorField &Reff, volVectorField &shearStress)
Calculate the shear stress.
A patch is a list of labels that address the faces in the global face list.
virtual void writeFileHeader(Ostream &os) const
File header information.
wallShearStress(const wallShearStress &)
Disallow default bitwise copy construct.
const word & name() const
Return name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
Generic dimensioned Type class.
const surfaceVectorField & Sf() const
Return cell face area vectors.
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool foundObject(const word &name) const
Is the named Type found?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Base class for output file data handling.
virtual void end()
Execute at the final time-loop, currently does nothing.
bool insert(const Key &key)
Insert a new entry.
const Time & time() const
Return the top-level database.
Templated abstract base class for single-phase incompressible turbulence models.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Type gMin(const FieldField< Field, Type > &f)
virtual void read(const dictionary &)
Read the wallShearStress data.
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.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Generic GeometricField class.
void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
virtual void execute()
Execute, currently does nothing.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return name.
#define WarningInFunction
Report a warning using Foam::Warning.
Type gMax(const FieldField< Field, Type > &f)
word name(const complex &)
Return a string representation of a complex.
This function object evaluates and outputs the shear stress at wall patches. The result is written as...