Go to the documentation of this file.
33 template<
class CloudType>
36 heatTransferModel_.reset
40 this->subModelProperties(),
50 this->
solution().integrationSchemes()
54 this->subModelProperties().lookup(
"radiation") >> radiation_;
64 this->
name() +
":radAreaP",
67 IOobject::READ_IF_PRESENT,
81 this->
name() +
":radT4",
84 IOobject::READ_IF_PRESENT,
98 this->
name() +
":radAreaPT4",
101 IOobject::READ_IF_PRESENT,
117 template<
class CloudType>
120 CloudType::cloudReset(
c);
122 heatTransferModel_.reset(
c.heatTransferModel_.ptr());
123 TIntegrator_.reset(
c.TIntegrator_.ptr());
125 radiation_ =
c.radiation_;
131 template<
class CloudType>
153 constProps_(this->particleProperties()),
157 heatTransferModel_(NULL),
169 this->
name() +
":hsTrans",
172 IOobject::READ_IF_PRESENT,
185 this->
name() +
":hsCoeff",
188 IOobject::READ_IF_PRESENT,
206 if (this->
solution().resetSourcesOnStartup())
213 template<
class CloudType>
223 constProps_(
c.constProps_),
227 heatTransferModel_(
c.heatTransferModel_->clone()),
228 TIntegrator_(
c.TIntegrator_->clone()),
229 radiation_(
c.radiation_),
239 this->
name() +
":hsTrans",
255 this->
name() +
":hsCoeff",
274 this->
name() +
":radAreaP",
291 this->
name() +
":radT4",
308 this->
name() +
":radAreaPT4",
322 template<
class CloudType>
337 heatTransferModel_(NULL),
350 template<
class CloudType>
357 template<
class CloudType>
361 const scalar lagrangianDt
364 CloudType::setParcelThermoProperties(parcel, lagrangianDt);
366 parcel.T() = constProps_.T0();
367 parcel.Cp() = constProps_.Cp0();
371 template<
class CloudType>
375 const scalar lagrangianDt,
376 const bool fullyDescribed
379 CloudType::checkParcelProperties(parcel, lagrangianDt, fullyDescribed);
383 template<
class CloudType>
390 clone(this->
name() +
"Copy").ptr()
396 template<
class CloudType>
399 cloudReset(cloudCopyPtr_());
400 cloudCopyPtr_.clear();
404 template<
class CloudType>
407 CloudType::resetSourceTerms();
408 hsTrans_->field() = 0.0;
409 hsCoeff_->field() = 0.0;
413 radAreaP_->field() = 0.0;
414 radT4_->field() = 0.0;
415 radAreaPT4_->field() = 0.0;
420 template<
class CloudType>
426 CloudType::relaxSources(cloudOldTime);
433 this->
relax(radAreaP_(), cloudOldTime.
radAreaP(),
"radiation");
434 this->
relax(radT4_(), cloudOldTime.
radT4(),
"radiation");
440 template<
class CloudType>
443 CloudType::scaleSources();
445 this->scale(hsTrans_(),
"h");
446 this->scale(hsCoeff_(),
"h");
450 this->scale(radAreaP_(),
"radiation");
451 this->scale(radT4_(),
"radiation");
452 this->scale(radAreaPT4_(),
"radiation");
457 template<
class CloudType>
460 CloudType::preEvolve();
462 this->pAmbient() = thermo_.thermo().p().average().value();
466 template<
class CloudType>
471 typename parcelType::template
472 TrackingData<ThermoCloud<CloudType> > td(*
this);
479 template<
class CloudType>
492 template<
class CloudType>
497 Info<<
" Temperature min/max = " << Tmin() <<
", " << Tmax()
void evolve()
Evolve the cloud.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Virtual abstract base class for templated ThermoCloud.
Selector class for relaxation factors, solver type and solution.
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
dimensioned< Type > T() const
Return transpose.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
const dimensionSet dimEnergy
void scaleSources()
Apply scaling to (transient) cloud sources.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
const dimensionedVector & g
Ostream & endl(Ostream &os)
Add newline and flush stream.
This function object reads fields from the time directories and adds them to the mesh database for fu...
Templated heat transfer model class.
virtual ~ThermoCloud()
Destructor.
void restoreState()
Reset the current cloud to the previously stored state.
dimensionedScalar pow4(const dimensionedScalar &ds)
const dimensionSet dimArea(sqr(dimLength))
DimensionedField< scalar, volMesh > & radAreaP()
Radiation sum of parcel projected areas [m2].
void cloudReset(ThermoCloud< CloudType > &c)
Reset state of cloud.
DimensionedField< scalar, volMesh > & hsTrans()
Sensible enthalpy transfer [J/kg].
DimensionedField< scalar, volMesh > & radT4()
Radiation sum of parcel temperature^4 [K4].
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
void resetSourceTerms()
Reset the cloud source terms.
void setParcelThermoProperties(parcelType &parcel, const scalar lagrangianDt)
Set parcel thermo properties.
DSMCCloud< dsmcParcel > CloudType
DimensionedField< scalar, volMesh > & radAreaPT4()
Radiation sum of parcel projected area*temperature^4 [m2K4].
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
virtual void autoMap(const mapPolyMesh &)
Remap the cells of particles corresponding to the.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void checkParcelProperties(parcelType &parcel, const scalar lagrangianDt, const bool fullyDescribed)
Check parcel properties.
void setModels()
Set cloud sub-models.
ThermoCloud(const ThermoCloud &)
Disallow default bitwise copy construct.
void info()
Print cloud information.
Templated base class for thermodynamic cloud.
void readFields(const boolList &haveMesh, const fvMesh &mesh, const autoPtr< fvMeshSubset > &subsetterPtr, IOobjectList &allObjects, PtrList< GeoField > &fields)
Base cloud calls templated on particle type.
const word cloudName(propsDict.lookup("cloudName"))
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const dimensionedScalar c
Speed of light in a vacuum.
void relaxSources(const ThermoCloud< CloudType > &cloudOldTime)
Apply relaxation to (steady state) cloud sources.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
DimensionedField< scalar, volMesh > & hsCoeff()
Return coefficient for carrier phase hs equation.
Generic GeometricField class.
void storeState()
Store the current cloud state.
void preEvolve()
Pre-evolve.
word name(const complex &)
Return a string representation of a complex.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...