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))
76 probeDict.readEntry(
"Tc",
Ttc_);
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());
175 dictionary probeDict;
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
const dimensionedScalar G
static constexpr const zero Zero
static const word dictName
Different types of constants.
bool read(const char *buf, int32_t &val)
const word dictName("faMeshDefinition")
virtual const volScalarField & T() const
static autoPtr< ODESolver > New(const ODESystem &ode, const dictionary &dict)
Fundamental fluid thermodynamic properties.
virtual label nEqns() const
Abstract base-class for fluid and solid thermodynamic properties.
const Type & value() const
tmp< Field< Type > > sample(const GeometricField< Type, fvPatchField, volMesh > &) const
dimensionedScalar pow4(const dimensionedScalar &ds)
virtual bool read(const dictionary &)
Generic templated field type.
dimensionedScalar pow3(const dimensionedScalar &ds)
virtual ~thermoCoupleProbes()
dimensionedScalar Pr("Pr", dimless, laminarTransport)
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
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.
bool getDict(const word &entryName, dictionary &dict) const
Sample probe for temperature using a thermocouple.
const fluidThermo & thermo_
autoPtr< ODESolver > odeSolver_
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)
Reads fields from the time directories and adds them to the mesh database for further post-processing...
const dimensionedScalar sigma
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
word name(const expressions::valueTypeCode typeCode)
entry * add(entry *entryPtr, bool mergeEntry=false)
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
virtual void jacobian(const scalar t, const scalarField &y, scalarField &dfdt, scalarSquareMatrix &dfdy) const
virtual bool read(const dictionary &)
Generic GeometricField class.
defineTypeNameAndDebug(combustionModel, 0)
Minimal example by using system/controlDict.functions: