35 #ifndef LagrangianFieldSource_H
36 #define LagrangianFieldSource_H
47 class LagrangianFieldSource;
149 const word& fieldSourceType,
229 friend Ostream& operator<< <Type>
248 #define addToLagrangianFieldSourceRunTimeSelection( \
249 TypeFieldSource, typeTypeFieldSource) \
250 addToRunTimeSelectionTable \
253 typeTypeFieldSource, \
258 #define addNullConstructableToLagrangianFieldSourceRunTimeSelection( \
259 TypeFieldSource, typeTypeFieldSource) \
260 addToRunTimeSelectionTable \
263 typeTypeFieldSource, \
266 addToLagrangianFieldSourceRunTimeSelection \
269 typeTypeFieldSource \
273 #define makeLagrangianTypeFieldSource( \
274 TypeFieldSource, typeTypeFieldSource) \
275 defineTypeNameAndDebug(typeTypeFieldSource, 0); \
276 addToLagrangianFieldSourceRunTimeSelection \
279 typeTypeFieldSource \
283 #define makeNullConstructableLagrangianTypeFieldSource( \
284 TypeFieldSource, typeTypeFieldSource) \
285 defineTypeNameAndDebug(typeTypeFieldSource, 0); \
286 addNullConstructableToLagrangianFieldSourceRunTimeSelection \
289 typeTypeFieldSource \
293 #define makeTemplateLagrangianTypeFieldSource(fieldType, type) \
294 defineNamedTemplateTypeNameAndDebug \
296 CAT4(type, Lagrangian, CAPITALIZE(fieldType), FieldSource), \
299 addToLagrangianFieldSourceRunTimeSelection \
301 CAT3(Lagrangian, CAPITALIZE(fieldType), FieldSource), \
302 CAT4(type, Lagrangian, CAPITALIZE(fieldType), FieldSource) \
306 #define makeNullConstructableTemplateLagrangianTypeFieldSource(fieldType, type)\
307 defineNamedTemplateTypeNameAndDebug \
309 CAT4(type, Lagrangian, CAPITALIZE(fieldType), FieldSource), \
312 addNullConstructableToLagrangianFieldSourceRunTimeSelection \
314 CAT3(Lagrangian, CAPITALIZE(fieldType), FieldSource), \
315 CAT4(type, Lagrangian, CAPITALIZE(fieldType), FieldSource) \
319 #define makeLagrangianFieldSources(type) \
320 FOR_ALL_FIELD_TYPES \
322 makeTemplateLagrangianTypeFieldSource, \
327 #define makeNullConstructableLagrangianFieldSources(type) \
328 FOR_ALL_FIELD_TYPES \
330 makeNullConstructableTemplateLagrangianTypeFieldSource, \
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Base class for Lagrangian source conditions.
Base class for Lagrangian source conditions.
virtual const dimensionSet & internalDimensions() const
Return internal dimensions reference.
virtual void write(Ostream &) const
Write.
static autoPtr< LagrangianFieldSource< Type > > New(const word &fieldSourceType, const regIOobject &)
Return a pointer to a new field source.
tmp< LagrangianSubField< Type > > value(const LagrangianSource &, const LagrangianSubMesh &) const
Return the value for a continuous source.
TypeName("LagrangianFieldSource")
Runtime type information.
static int disallowGenericLagrangianFieldSource
Debug switch to disallow the use of genericLagrangianFieldSource.
tmp< LagrangianSubField< Type > > sourceCoeff(const LagrangianSource &, const LagrangianSubMesh &) const
Return the source coefficient.
virtual tmp< LagrangianSubField< Type > > sourceValue(const LagrangianSource &, const LagrangianSubMesh &) const
Return the source value.
virtual ~LagrangianFieldSource()
Destructor.
virtual tmp< LagrangianSubScalarField > internalCoeff(const LagrangianSource &, const LagrangianSubMesh &) const
Return the internal coefficient.
autoPtr< LagrangianFieldSource< Type > > clone() const
Disallow clone without setting the internal field reference.
LagrangianFieldSource(const regIOobject &)
Construct from internal field.
const LagrangianInternalDynamicField< Type > & internalField() const
Return internal field reference.
declareRunTimeSelectionTable(autoPtr, LagrangianFieldSource, null,(const regIOobject &iIo),(iIo))
Select given internal field.
Base class for Lagrangian injections. Minimal wrapper over LagrangianSource. Implements some utility ...
Base class for Lagrangian sources. Minimal wrapper over LagrangianModel that provides an interface to...
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Dimension set for the base types.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A class for managing temporary objects.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)