42 #ifndef Foam_SurfaceFilmModel_H 43 #define Foam_SurfaceFilmModel_H 57 namespace regionModels
59 namespace surfaceFilmModels
61 class surfaceFilmRegionModel;
63 namespace areaSurfaceFilmModels
74 template<
class CloudType>
75 class SurfaceFilmModel
77 public CloudSubModelBase<CloudType>
150 const label filmPatchi,
151 const label primaryPatchi,
159 template<
class TrackCloudType>
162 const label primaryPatchi,
164 TrackCloudType&
cloud 168 template<
class TrackCloudType>
172 TrackCloudType&
cloud 179 const label filmFacei
272 template<class TrackCloudType>
289 #define makeSurfaceFilmModel(CloudType) \ 291 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 292 defineNamedTemplateTypeNameAndDebug \ 294 Foam::SurfaceFilmModel<kinematicCloudType>, \ 299 defineTemplateRunTimeSelectionTable \ 301 SurfaceFilmModel<kinematicCloudType>, \ 307 #define makeSurfaceFilmModelType(SS, CloudType) \ 309 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 310 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \ 312 Foam::SurfaceFilmModel<kinematicCloudType>:: \ 313 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \ 314 add##SS##CloudType##kinematicCloudType##ConstructorToTable_; const dimensionedVector & g() const noexcept
Return gravitational acceleration constant.
TypeName("surfaceFilmModel")
Runtime type information.
void injectParticles(const label primaryPatchi, const labelUList &injectorCells, TrackCloudType &cloud)
Inject particles in cloud.
Base class for surface film models.
scalarField rhoFilmPatch_
Film density / patch face.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar minDiameter_
Minimum diameter particle injection.
scalarField massParcelPatch_
Parcel mass / patch face.
Field< scalarField > deltaFilmPatch_
Film height of all film patches / patch face.
label nParcelsInjected_
Number of parcels injected from the film model.
const dictionary & dict() const
Return const access to the cloud dictionary.
const CloudType & owner() const
Return const access to the owner cloud.
static autoPtr< SurfaceFilmModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual autoPtr< SurfaceFilmModel< CloudType > > clone() const =0
Construct and return a clone.
A class for handling words, derived from Foam::string.
A cloud is a registry collection of lagrangian particles.
label nParcelsTransferred() const noexcept
The number of parcels transferred to the film model.
void inject(TrackCloudType &cloud)
Inject parcels into the cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
virtual void info()
Write surface film info.
scalarField diameterParcelPatch_
Parcel diameter / patch face.
Field< vector > UFilmPatch_
Film velocity / patch face.
Templated wall surface film model class.
virtual void setParcelProperties(parcelType &p, const label filmFacei) const
Set the individual parcel properties.
regionModels::areaSurfaceFilmModels::liquidFilmBase areaFilm
virtual void cacheFilmFields(const label filmPatchi, const label primaryPatchi, const regionFilm &)
Cache the film fields in preparation for injection.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
virtual bool transferParcel(parcelType &p, const polyPatch &pp, bool &keepParticle)=0
Transfer parcel from cloud to surface film.
label nParcelsTransferred_
Number of parcels transferred to the film model.
SurfaceFilmModel(CloudType &owner)
Construct null from owner.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
regionModels::surfaceFilmModels::surfaceFilmRegionModel regionFilm
A patch is a list of labels that address the faces in the global face list.
Templated base class for dsmc cloud.
virtual ~SurfaceFilmModel()=default
Destructor.
scalar totalMassTransferred_
Total mass transferred to the film.
scalar totalMassTransferred() const noexcept
The total mass transferred.
label ejectedParcelType_
Ejected parcel type label - id assigned to identify parcel for post-processing. If not specified...
const dimensionedVector & g_
Gravitational acceleration constant.
declareRunTimeSelectionTable(autoPtr, SurfaceFilmModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
scalar injectionOffset_
Injection offset position.
label nParcelsInjected() const noexcept
The number of parcels injected from the film model.