34 template<
class CloudType>
39 ejectedParcelType_(0),
41 diameterParcelPatch_(0),
45 nParcelsTransferred_(0),
50 template<
class CloudType>
74 template<
class CloudType>
95 template<
class CloudType>
102 template<
class CloudType>
103 template<
class TrackData>
113 this->
owner().
mesh().
time().objectRegistry::template lookupObject
116 "surfaceFilmProperties" 132 const label filmPatchi = filmPatches[i];
133 const label primaryPatchi = primaryPatches[i];
135 const labelList& injectorCellsPatch = pbm[primaryPatchi].faceCells();
143 forAll(injectorCellsPatch, j)
147 const label celli = injectorCellsPatch[j];
155 const label tetPtI = 1;
159 const scalar offset =
165 const point pos = Cf[j] - 1.1*offset*Sf[j]/magSf[j];
171 this->
owner().pMesh(),
179 td.cloud().setParcelThermoProperties(*pPtr, 0.0);
183 if (pPtr->nParticle() > 0.001)
187 td.cloud().checkParcelProperties(*pPtr, 0.0,
false);
190 td.cloud().addParticle(pPtr);
205 template<
class CloudType>
208 const label filmPatchi,
209 const label primaryPatchi,
232 template<
class CloudType>
236 const label filmFacei
254 template<
class CloudType>
258 this->
template getModelProperty<label>(
"nParcelsTransferred");
261 this->
template getModelProperty<label>(
"nParcelsInjected");
269 os <<
" Parcels absorbed into film = " << nTransTotal <<
nl 270 <<
" New film detached parcels = " << nInjectTotal <<
endl;
virtual void info(Ostream &os)
Write surface film info to stream.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const surfaceVectorField & Sf() const
Return cell face area vectors.
const dictionary & dict() const
Return const access to the cloud dictionary.
const Switch & active() const
Return the active flag.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
label nParcelsInjected_
Number of parcels injected from the film model.
Base class for cloud sub-models.
const volVectorField & C() const
Return cell centres as volVectorField.
const cellList & cells() const
virtual void cacheFilmFields(const label filmPatchi, const label primaryPatchi, const regionModels::surfaceFilmModels::surfaceFilmModel &filmModel)
Cache the film fields in preparation for injection.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual bool writeTime() const
Flag to indicate when to write a property.
dimensionedScalar pos(const dimensionedScalar &ds)
scalarListList deltaFilmPatch_
Film height of all film patches / patch face.
void setModelProperty(const word &entryName, const Type &value)
Add generic property to the sub-model.
void inject(TrackData &td)
Inject parcels into the cloud.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A class for handling words, derived from string.
virtual void setParcelProperties(parcelType &p, const label filmFacei) const
Set the individual parcel properties.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
virtual const volScalarField & cloudMassTrans() const =0
Return the film mass available for transfer.
virtual const volScalarField & delta() const =0
Return the film thickness [m].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
List< vector > UFilmPatch_
Film velocity / patch face.
const dimensionedVector & g
const labelList & primaryPatchIDs() const
Return the list of patch IDs on the primary region coupled.
virtual const volVectorField & Us() const =0
Return the film surface velocity [m/s].
Templated wall surface film model class.
virtual ~SurfaceFilmModel()
Destructor.
dimensionedScalar pow3(const dimensionedScalar &ds)
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
void toPrimary(const label regionPatchi, List< Type > ®ionField) const
Convert a local region field to the primary region.
const fvMesh & mesh() const
Return refernce to the mesh.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
Mesh data needed to do the Finite Volume discretisation.
Base class for surface film models.
virtual const volScalarField & cloudDiameterTrans() const =0
Return the parcel diameters originating from film.
scalarList diameterParcelPatch_
Parcel diameter / patch face.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
label nParcelsTransferred_
Number of parcels transferred to the film model.
const CloudType & owner() const
Return const access to the owner cloud.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
scalarList rhoFilmPatch_
Film density / patch face.
SurfaceFilmModel(CloudType &owner)
Construct null from owner.
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
virtual bool active() const
Return the model 'active' status - default active = true.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Templated base class for dsmc cloud.
label ejectedParcelType_
Ejected parcel type label - id assigned to identify parcel for.
const dimensionedVector & g_
Gravitational acceleration constant.
const Time & time() const
Return the top-level database.
scalarList massParcelPatch_
Parcel mass / patch face.
virtual const volScalarField & rho() const =0
Return the film density [kg/m3].