Go to the documentation of this file.
50 const bool loadFromFiles
59 if (!isA<fvMesh>(obr_))
63 <<
"No fvMesh available, deactivating " << name_ <<
nl
83 log_.readIfPresent(
"log",
dict);
110 word rhoNMeanName =
"rhoNMean";
111 word rhoMMeanName =
"rhoMMean";
112 word momentumMeanName =
"momentumMean";
113 word linearKEMeanName =
"linearKEMean";
114 word internalEMeanName =
"internalEMean";
115 word iDofMeanName =
"iDofMean";
116 word fDMeanName =
"fDMean";
139 if (
min(
mag(rhoNMean)).value() > VSMALL)
141 if (log_)
Info<<
type() <<
" " << name_ <<
" output:" <<
endl;
143 if (log_)
Info<<
" Calculating UMean field" <<
endl;
149 obr_.time().timeName(),
153 momentumMean/rhoMMean
156 if (log_)
Info<<
" Calculating translationalT field" <<
endl;
162 obr_.time().timeName(),
168 *(linearKEMean - 0.5*rhoMMean*(
UMean &
UMean))
171 if (log_)
Info<<
" Calculating internalT field" <<
endl;
177 obr_.time().timeName(),
184 if (log_)
Info<<
" Calculating overallT field" <<
endl;
190 obr_.time().timeName(),
195 *(linearKEMean - 0.5*rhoMMean*(
UMean &
UMean) + internalEMean)
198 if (log_)
Info<<
" Calculating pressure field" <<
endl;
204 obr_.time().timeName(),
217 if (isA<wallPolyPatch>(patch))
219 p.boundaryField()[i] =
220 fDMean.boundaryField()[i]
227 Info<<
" mag(UMean) max/min: "
231 Info<<
" translationalT max/min: "
232 <<
max(translationalT).
value() <<
" "
235 Info<<
" internalT max/min: "
239 Info<<
" overallT max/min: "
243 Info<<
" p max/min: "
250 translationalT.write();
263 <<
"Small value (" <<
min(
mag(rhoNMean))
264 <<
") found in rhoNMean field. "
265 <<
"Not calculating " <<
type() <<
" to avoid division by zero."
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual void end()
Execute at the final time-loop, currently does nothing.
A class for handling words, derived from string.
const dimensionedScalar k
Boltzmann constant.
#define forAll(list, i)
Loop across all elements in list.
bool read(const char *, int32_t &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
dimensioned< scalar > mag(const dimensioned< Type > &)
Registry of regIOobjects.
A patch is a list of labels that address the faces in the global face list.
virtual void read(const dictionary &)
Read the dsmcFields data.
virtual ~dsmcFields()
Destructor.
dsmcFields(const dsmcFields &)
Disallow default bitwise copy construct.
virtual void execute()
Execute, currently does nothing.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
const vectorField::subField faceAreas() const
Return face normals.
virtual void write()
Calculate the dsmcFields and write.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Generic GeometricField class.
volVectorField UMean(UMeanHeader, mesh)
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.