39 #ifndef InflowBoundaryModel_H 40 #define InflowBoundaryModel_H 55 template<
class CloudType>
56 class InflowBoundaryModel
61 const dictionary& dict_;
67 const dictionary coeffDict_;
82 const dictionary&
dict,
97 const dictionary&
dict,
108 static autoPtr<InflowBoundaryModel<CloudType>>
New 110 const dictionary&
dict,
124 inline const dictionary&
dict()
const;
127 inline const dictionary&
coeffDict()
const;
132 virtual void autoMap(
const mapPolyMesh&)
136 virtual void inflow() = 0;
146 #define makeInflowBoundaryModel(CloudType) \ 148 defineNamedTemplateTypeNameAndDebug(InflowBoundaryModel<CloudType>, 0); \ 150 defineTemplateRunTimeSelectionTable \ 152 InflowBoundaryModel<CloudType>, \ 157 #define makeInflowBoundaryModelType(SS, CloudType) \ 159 defineNamedTemplateTypeNameAndDebug(SS<CloudType>, 0); \ 161 InflowBoundaryModel<CloudType>:: \ 162 adddictionaryConstructorToTable<SS<CloudType>> \ 163 add##SS##CloudType##ConstructorToTable_; DSMCCloud< dsmcParcel > CloudType
const CloudType & owner() const
Return const access the owner cloud object.
const dictionary & coeffDict() const
Return the coefficients dictionary.
declareRunTimeSelectionTable(autoPtr, InflowBoundaryModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual ~InflowBoundaryModel()
Destructor.
InflowBoundaryModel(CloudType &owner)
Construct null from owner.
virtual void autoMap(const mapPolyMesh &)
Remap the particles to the correct cells following mesh change.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual void inflow()=0
Introduce particles.
const dictionary & dict() const
Return the owner cloud dictionary.
static autoPtr< InflowBoundaryModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
Macros to ease declaration of run-time selection tables.
TypeName("InflowBoundaryModel")
Runtime type information.