Go to the documentation of this file.
45 #ifndef KinematicSurfaceFilm_H
46 #define KinematicSurfaceFilm_H
58 namespace regionModels
60 namespace surfaceFilmModels
66 namespace regionModels
68 namespace areaSurfaceFilmModels
78 template<
class CloudType>
196 void init(
bool binitThermo);
207 const label primaryPatchi,
214 const label filmPatchi,
215 const label primaryPatchi,
223 const label filmFacei
241 bool initThermo =
true
248 bool initThermo =
true
270 template<
class filmType>
291 template<
class filmType>
304 template<
class filmType>
317 template<
class filmType>
void wetSplashInteraction(filmType &, const scalar sigma, const scalar mu, parcelType &p, const polyPatch &pp, const label facei, bool &keepParticle)
Parcel interaction with wetted surface.
regionModels::surfaceFilmModels::surfaceFilmRegionModel regionFilm
A class for handling words, derived from Foam::string.
label nParcelsSplashed_
Counter for number of new splash parcels.
const dimensionedScalar mu
Atomic mass unit.
label splashParcelType_
Splash parcel type label - id assigned to identify parcel for.
scalar Adry_
Dry surface roughness coefficient.
scalar Cf_
Skin friction typically in the range 0.6 < Cf < 0.8.
word interactionTypeStr(const interactionType &it) const
Return word from interaction type enum.
KinematicSurfaceFilm(const dictionary &dict, CloudType &owner, const word &type=typeName, bool initThermo=true)
Construct from components.
void splashInteraction(filmType &, 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.
virtual void setParcelProperties(parcelType &p, const label filmFacei) const
Set the individual parcel properties.
virtual ~KinematicSurfaceFilm()=default
Destructor.
void bounceInteraction(parcelType &p, const polyPatch &pp, const label facei, bool &keepParticle) const
Bounce parcel (flip parcel normal velocity)
regionModels::areaSurfaceFilmModels::liquidFilmBase areaFilm
void init(bool binitThermo)
Initialise thermo.
Base class for surface film models.
Templated wall surface film model class.
A patch is a list of labels that address the faces in the global face list.
liquidMixtureProperties * thermo_
Region Film liquid thermo.
virtual bool transferParcel(parcelType &p, const polyPatch &pp, bool &keepParticle)
Transfer parcel from cloud to surface film.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
vector tangentVector(const vector &v) const
Return a vector tangential to input vector, v.
scalar deltaWet_
Film thickness beyond which patch is assumed to be wet.
Templated base class for dsmc cloud.
scalar Awet_
Wet surface roughness coefficient.
vector splashDirection(const vector &tanVec1, const vector &tanVec2, const vector &nf) const
Return splashed parcel direction.
scalar TRef_
Region Film reference temperature.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Kinematic parcel surface film model.
regionFilm * filmModel_
Pointer to filmModel.
void absorbInteraction(filmType &, const parcelType &p, const polyPatch &pp, const label facei, const scalar mass, bool &keepParticle)
Absorb parcel into film.
TypeName("kinematicSurfaceFilm")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Random & rndGen_
Reference to the cloud random number generator.
virtual void cacheFilmFields(const label primaryPatchi, const areaFilm &)
Cache the film fields in preparation for injection.
virtual autoPtr< SurfaceFilmModel< CloudType > > clone() const
Construct and return a clone using supplied owner cloud.
void initFilmModels()
Initialise pointers of films.
label parcelsPerSplash_
Number of new parcels resulting from splash event.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void drySplashInteraction(filmType &, const scalar sigma, const scalar mu, const parcelType &p, const polyPatch &pp, const label facei, bool &keepParticle)
Parcel interaction with dry surface.
UPtrList< areaFilm > areaFilms_
UPointers to area films.
scalar pRef_
Region Film reference pressure.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
static wordList interactionTypeNames_
Names for interactionType.
interactionType
Options for the interaction types.
interactionType interactionType_
Interaction type enumeration.
interactionType interactionTypeEnum(const word &it) const
Return interaction type enum from word.
virtual void info(Ostream &os)
Write surface film info to stream.