55template<
class CloudType>
159#define makeWallModel(CloudType) \
161 defineNamedTemplateTypeNameAndDebug(Foam::WallModel<Foam::CloudType>, 0); \
165 defineTemplateRunTimeSelectionTable \
167 WallModel<Foam::CloudType>, \
173#define makeWallModelType(SS, CloudType) \
175 defineNamedTemplateTypeNameAndDebug(Foam::SS<Foam::CloudType>, 0); \
177 Foam::WallModel<Foam::CloudType>:: \
178 adddictionaryConstructorToTable<Foam::SS<Foam::CloudType>> \
179 add##SS##CloudType##ConstructorToTable_;
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Templated wall interaction class.
virtual scalar pREff(const typename CloudType::parcelType &p) const =0
Return the effective radius for a particle for the model.
virtual label nSubCycles() const =0
For WallModels that control the timestep, calculate the.
const dictionary & coeffDict() const
Return the coefficients dictionary.
virtual void evaluateWall(typename CloudType::parcelType &p, const List< point > &flatSitePoints, const List< WallSiteData< vector > > &flatSiteData, const List< point > &sharpSitePoints, const List< WallSiteData< vector > > &sharpSiteData) const =0
Calculate the wall interaction for a parcel.
virtual ~WallModel()
Destructor.
virtual bool controlsTimestep() const =0
Whether the WallModel has a timestep limit that will.
const dictionary & dict() const
Return the dictionary.
const CloudType & owner() const
Return the owner cloud object.
TypeName("wallModel")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, WallModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
static autoPtr< WallModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
Stores the patch ID and templated data to represent a collision with a wall to be passed to the wall ...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.