Go to the documentation of this file.
54 #ifndef ThermoSurfaceFilm_H
55 #define ThermoSurfaceFilm_H
68 template<
class CloudType>
233 const label filmPatchi,
234 const label primaryPatchi,
243 const label filmFacei
virtual void cacheFilmFields(const label filmPatchi, const label primaryPatchi, const regionModels::surfaceFilmModels::surfaceFilmRegionModel &filmModel)
Cache the film fields in preparation for injection.
interactionType interactionType_
Interaction type enumeration.
scalarList TFilmPatch_
Film temperature / patch face.
A class for handling words, derived from Foam::string.
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
ThermoSurfaceFilm(const dictionary &dict, CloudType &owner)
Construct from components.
scalar Adry_
Dry surface roughness coefficient.
scalar deltaWet_
Film thickness beyond which patch is assumed to be wet.
TypeName("thermoSurfaceFilm")
Runtime type information.
label splashParcelType_
Splash parcel type label - id assigned to identify parcel for.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
Thermo parcel surface film model.
void wetSplashInteraction(regionModels::surfaceFilmModels::surfaceFilmRegionModel &, parcelType &p, const polyPatch &pp, const label facei, bool &keepParticle)
Parcel interaction with wetted surface.
scalar Cf_
Skin friction typically in the range 0.6 < Cf < 0.8.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
Base class for surface film models.
void bounceInteraction(parcelType &p, const polyPatch &pp, const label facei, bool &keepParticle) const
Bounce parcel (flip parcel normal velocity)
Templated wall surface film model class.
A patch is a list of labels that address the faces in the global face list.
void absorbInteraction(regionModels::surfaceFilmModels::surfaceFilmRegionModel &, const parcelType &p, const polyPatch &pp, const label facei, const scalar mass, bool &keepParticle)
Absorb parcel into film.
label parcelsPerSplash_
Number of new parcels resulting from splash event.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar Awet_
Wet surface roughness coefficient.
interactionType interactionTypeEnum(const word &it) const
virtual autoPtr< SurfaceFilmModel< CloudType > > clone() const
Construct and return a clone using supplied owner cloud.
virtual void info(Ostream &os)
Write surface film info to stream.
scalarList CpFilmPatch_
Film specific heat capacity / patch face.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const SLGThermo & thermo_
Reference to the cloud thermo package.
label nParcelsSplashed_
Counter for number of new splash parcels.
Random & rndGen_
Reference to the cloud random number generator.
virtual void setParcelProperties(parcelType &p, const label filmFacei) const
Set the individual parcel properties.
void splashInteraction(regionModels::surfaceFilmModels::surfaceFilmRegionModel &, const parcelType &p, const polyPatch &pp, const label facei, const scalar mRatio, const scalar We, const scalar Wec, const scalar sigma, bool &keepParticle)
Bai parcel splash interaction model.
vector tangentVector(const vector &v) const
Return a vector tangential to input vector, v.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
vector splashDirection(const vector &tanVec1, const vector &tanVec2, const vector &nf) const
Return splashed parcel direction.
word interactionTypeStr(const interactionType &it) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
void drySplashInteraction(regionModels::surfaceFilmModels::surfaceFilmRegionModel &, const parcelType &p, const polyPatch &pp, const label facei, bool &keepParticle)
Parcel interaction with dry surface.
virtual bool transferParcel(parcelType &p, const polyPatch &pp, bool &keepParticle)
Transfer parcel from cloud to surface film.
static wordList interactionTypeNames_
Word descriptions of interaction type names.
virtual ~ThermoSurfaceFilm()
Destructor.