87#ifndef Foam_functionObjects_surfaceCourantNumber_H
88#define Foam_functionObjects_surfaceCourantNumber_H
110 public functionObjects::fvMeshFunctionObject,
125 const faMesh* faMeshPtr_;
131 virtual void writeFileHeader(Ostream&
os);
170 virtual bool write();
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
const word & name() const noexcept
Return the name of this functionObject.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Computes the surface Courant number field at finite-area face centres.
TypeName("surfaceCourantNumber")
Runtime type information.
surfaceCourantNumber(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
surfaceCourantNumber(const surfaceCourantNumber &)=delete
No copy construct.
virtual ~surfaceCourantNumber()=default
Destructor.
void operator=(const surfaceCourantNumber &)=delete
No copy assignment.
virtual bool execute()
Calculate the Courant number field and return true if successful.
virtual bool write()
Write the result field.
virtual bool read(const dictionary &)
Read the surfaceCourantNumber data.
Base class for writing single files from the function objects.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.