Go to the documentation of this file.
39 namespace functionObjects
49 Foam::functionObjects::thermoCoupleProbes::thermoCoupleProbes
54 const bool loadFromFiles,
60 UName_(
dict.getOrDefault<
word>(
"U",
"U")),
61 radiationFieldName_(
dict.get<
word>(
"radiationField")),
74 if (getDict(typeName, probeDict))
116 if (radiationFieldName_ !=
"none")
125 rhoc = this->
sample(thermo_.rho()());
126 kappac = this->
sample(thermo_.kappa()());
127 muc = this->
sample(thermo_.mu()());
128 Cpc = this->
sample(thermo_.Cp()());
155 derivatives(
x,
y, dfdt);
157 const label
n = nEqns();
159 for (label i=0; i<
n; i++)
161 for (label j=0; j<
n; j++)
173 sampleAndWrite<scalar>(thermo_.T());
176 probeDict.
add(
"Tc", Ttc_);
177 setProperty(typeName, probeDict);
189 scalar dt = mesh_.time().deltaTValue();
190 scalar t = mesh_.time().value();
191 odeSolver_->solve(t, t+dt, Ttc_, dt);
203 dict.readEntry(
"rho", rho_);
204 dict.readEntry(
"Cp", Cp_);
205 dict.readEntry(
"d", d_);
206 dict.readEntry(
"epsilon", epsilon_);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual void derivatives(const scalar x, const scalarField &y, scalarField &dydx) const
Calculate the derivatives in dydx.
const dimensionedScalar G
Newtonian constant of gravitation.
static constexpr const zero Zero
Global zero (0)
Different types of constants.
bool read(const char *buf, int32_t &val)
Same as readInt32.
static autoPtr< ODESolver > New(const ODESystem &ode, const dictionary &dict)
Select null constructed.
Fundamental fluid thermodynamic properties.
virtual label nEqns() const
Number of ODE's to solve.
const wordList volume
Standard volume field types (scalar, vector, tensor, etc)
const Type & value() const
Return const reference to value.
virtual bool execute()
Execute, currently does nothing.
tmp< Field< Type > > sample(const GeometricField< Type, fvPatchField, volMesh > &) const
Sample a volume field at all locations.
dimensionedScalar pow4(const dimensionedScalar &ds)
virtual bool read(const dictionary &)
Read the probes.
dimensionedScalar pow3(const dimensionedScalar &ds)
virtual ~thermoCoupleProbes()
Destructor.
dimensionedScalar Pr("Pr", dimless, laminarTransport)
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
virtual bool write()
Sample and write.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Set of locations to sample.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Sample probe for temperature using a thermocouple.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr scalar pi(M_PI)
Abstract base class for the systems of ordinary differential equations.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
scalarField Re(const UList< complex > &cf)
Extract real component.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
const wordList area
Standard area field types (scalar, vector, tensor, etc)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
virtual void jacobian(const scalar t, const scalarField &y, scalarField &dfdt, scalarSquareMatrix &dfdy) const
Calculate the Jacobian of the system.
virtual bool read(const dictionary &)
Read.
defineTypeNameAndDebug(combustionModel, 0)
Minimal example by using system/controlDict.functions:
word dictName() const
The local dictionary name (final part of scoped name)