Go to the documentation of this file.
41 #ifndef SurfaceFilmModel_H
42 #define SurfaceFilmModel_H
55 namespace regionModels
57 namespace surfaceFilmModels
67 template<
class CloudType>
120 const label filmPatchi,
121 const label primaryPatchi,
129 const label filmFacei
220 template<
class TrackCloudType>
237 #define makeSurfaceFilmModel(CloudType) \
239 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
240 defineNamedTemplateTypeNameAndDebug \
242 Foam::SurfaceFilmModel<kinematicCloudType>, \
247 defineTemplateRunTimeSelectionTable \
249 SurfaceFilmModel<kinematicCloudType>, \
255 #define makeSurfaceFilmModelType(SS, CloudType) \
257 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
258 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
260 Foam::SurfaceFilmModel<kinematicCloudType>:: \
261 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \
262 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
virtual void cacheFilmFields(const label filmPatchi, const label primaryPatchi, const regionModels::surfaceFilmModels::surfaceFilmRegionModel &)
Cache the film fields in preparation for injection.
A class for handling words, derived from Foam::string.
const dimensionedVector & g_
Gravitational acceleration constant.
scalarListList deltaFilmPatch_
Film height of all film patches / patch face.
scalarList massParcelPatch_
Parcel mass / patch face.
Base class for cloud sub-models.
label nParcelsTransferred_
Number of parcels transferred to the film model.
TypeName("surfaceFilmModel")
Runtime type information.
virtual ~SurfaceFilmModel()
Destructor.
label nParcelsInjected_
Number of parcels injected from the film model.
declareRunTimeSelectionTable(autoPtr, SurfaceFilmModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual bool transferParcel(parcelType &p, const polyPatch &pp, bool &keepParticle)=0
Transfer parcel from cloud to surface film.
label nParcelsInjected() const
Return const access to the number of parcels injected from the.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
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.
void inject(TrackCloudType &cloud)
Inject parcels into the cloud.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalarList diameterParcelPatch_
Parcel diameter / patch face.
label nParcelsTransferred() const
Return const access to the number of parcels transferred to the.
const dimensionedVector & g() const
Return gravitational acceleration constant.
virtual void setParcelProperties(parcelType &p, const label filmFacei) const
Set the individual parcel properties.
scalarList rhoFilmPatch_
Film density / patch face.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A cloud is a registry collection of lagrangian particles.
Macros to ease declaration of run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual void info(Ostream &os)
Write surface film info to stream.
label ejectedParcelType_
Ejected parcel type label - id assigned to identify parcel for.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
List< vector > UFilmPatch_
Film velocity / patch face.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
SurfaceFilmModel(CloudType &owner)
Construct null from owner.
static autoPtr< SurfaceFilmModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual autoPtr< SurfaceFilmModel< CloudType > > clone() const =0
Construct and return a clone.