Go to the documentation of this file.
36 #ifndef SurfaceFilmModel_H
37 #define SurfaceFilmModel_H
50 namespace regionModels
52 namespace surfaceFilmModels
62 template<
class CloudType>
115 const label filmPatchI,
116 const label primaryPatchI,
124 const label filmFaceI
215 template<
class TrackData>
216 void inject(TrackData& td);
232 #define makeSurfaceFilmModel(CloudType) \
234 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
235 defineNamedTemplateTypeNameAndDebug \
237 Foam::SurfaceFilmModel<kinematicCloudType>, \
242 defineTemplateRunTimeSelectionTable \
244 SurfaceFilmModel<kinematicCloudType>, \
250 #define makeSurfaceFilmModelType(SS, CloudType) \
252 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
253 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
255 Foam::SurfaceFilmModel<kinematicCloudType>:: \
256 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType> > \
257 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
A class for handling words, derived from 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.
void inject(TrackData &td)
Inject parcels into the cloud.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Templated wall surface film model class.
A patch is a list of labels that address the faces in the global face list.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
scalarList diameterParcelPatch_
Parcel diameter / patch face.
Generic dimensioned Type class.
label nParcelsTransferred() const
Return const access to the number of parcels transferred to the.
const dimensionedVector & g() const
Return gravitational acceleration constant.
scalarList rhoFilmPatch_
Film density / patch face.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void cacheFilmFields(const label filmPatchI, const label primaryPatchI, const regionModels::surfaceFilmModels::surfaceFilmModel &filmModel)
Cache the film fields in preparation for injection.
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.
Base class for surface film models.
virtual void setParcelProperties(parcelType &p, const label filmFaceI) const
Set the individual parcel properties.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
SurfaceFilmModel(CloudType &owner)
Construct null from owner.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
static autoPtr< SurfaceFilmModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual autoPtr< SurfaceFilmModel< CloudType > > clone() const =0
Construct and return a clone.