42 #ifndef Foam_SurfaceFilmModel_H 43 #define Foam_SurfaceFilmModel_H 60 namespace regionModels
62 namespace surfaceFilmModels
64 class surfaceFilmRegionModel;
66 namespace areaSurfaceFilmModels
77 template<
class CloudType>
78 class SurfaceFilmModel
80 public CloudSubModelBase<CloudType>
153 const label filmPatchi,
154 const label primaryPatchi,
162 template<
class TrackCloudType>
165 const label primaryPatchi,
167 TrackCloudType&
cloud 171 template<
class TrackCloudType>
175 TrackCloudType&
cloud 182 const label filmFacei
286 template<class TrackCloudType>
303 #define makeSurfaceFilmModel(CloudType) \ 305 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 306 defineNamedTemplateTypeNameAndDebug \ 308 Foam::SurfaceFilmModel<kinematicCloudType>, \ 313 defineTemplateRunTimeSelectionTable \ 315 SurfaceFilmModel<kinematicCloudType>, \ 321 #define makeSurfaceFilmModelType(SS, CloudType) \ 323 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 324 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \ 326 Foam::SurfaceFilmModel<kinematicCloudType>:: \ 327 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \ 328 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.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
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.
static UPtrList< const areaFilm > csorted_areaFilms(const polyMesh &)
Registry.
regionModels::areaSurfaceFilmModels::liquidFilmBase areaFilm
static UPtrList< areaFilm > sorted_areaFilms(const polyMesh &)
Return a sorted list of area-film objects that are registered on the faMeshesRegistry.
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...
Mesh consisting of general polyhedral cells.
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.