Base class for Lagrangian source conditions. More...


Public Member Functions | |
| TypeName ("LagrangianFieldSource") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, LagrangianFieldSource, null,(const regIOobject &iIo),(iIo)) | |
| Select given internal field. More... | |
| declareRunTimeSelectionTable (autoPtr, LagrangianFieldSource, dictionary,(const regIOobject &iIo, const dictionary &dict),(iIo, dict)) | |
| Select given internal field and dictionary. More... | |
| LagrangianFieldSource (const regIOobject &) | |
| Construct from internal field. More... | |
| LagrangianFieldSource (const regIOobject &, const dictionary &) | |
| Construct from internal field and dictionary. More... | |
| LagrangianFieldSource (const LagrangianFieldSource< Type > &)=delete | |
| Disallow copy without setting the internal field reference. More... | |
| autoPtr< LagrangianFieldSource< Type > > | clone () const |
| Disallow clone without setting the internal field reference. More... | |
| LagrangianFieldSource (const LagrangianFieldSource< Type > &, const regIOobject &) | |
| Construct as copy setting the internal field reference. More... | |
| virtual autoPtr< LagrangianFieldSource< Type > > | clone (const regIOobject &) const =0 |
| Construct and return a clone setting the internal field reference. More... | |
| virtual | ~LagrangianFieldSource () |
| Destructor. More... | |
| virtual const dimensionSet & | internalDimensions () const |
| Return internal dimensions reference. More... | |
| const LagrangianInternalDynamicField< Type > & | internalField () const |
| Return internal field reference. More... | |
| virtual tmp< LagrangianSubField< Type > > | sourceValue (const LagrangianSource &, const LagrangianSubMesh &) const |
| Return the source value. More... | |
| virtual tmp< LagrangianSubScalarField > | internalCoeff (const LagrangianSource &, const LagrangianSubMesh &) const |
| Return the internal coefficient. More... | |
| tmp< LagrangianSubField< Type > > | sourceCoeff (const LagrangianSource &, const LagrangianSubMesh &) const |
| Return the source coefficient. More... | |
| tmp< LagrangianSubField< Type > > | value (const LagrangianSource &, const LagrangianSubMesh &) const |
| Return the value for a continuous source. More... | |
| virtual tmp< LagrangianSubField< Type > > | value (const LagrangianInjection &, const LagrangianSubMesh &) const |
| Return the value for an instantaneous injection. More... | |
| virtual tmp< LagrangianSubField< Type > > | value (const LagrangianSubMesh &) const |
| Return the value without a model. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Public Member Functions inherited from LagrangianFieldSourceBase | |
| TypeName ("LagrangianFieldSourceBase") | |
| Runtime type information. More... | |
| LagrangianFieldSourceBase (const regIOobject &) | |
| Construct from internal field. More... | |
| virtual | ~LagrangianFieldSourceBase () |
| Destructor. More... | |
| const objectRegistry & | db () const |
| Return local objectRegistry. More... | |
| const Time & | time () const |
| Return time. More... | |
| const word & | internalName () const |
| Return internal field name. More... | |
| word | internalGroup () const |
| Return internal field group. More... | |
| template<class OtherFieldSourceType > | |
| const OtherFieldSourceType & | fieldSourceCast (const LagrangianModel &) const |
| Cast a to the specified type. Handle errors. More... | |
| template<class OtherType > | |
| const LagrangianFieldSource< OtherType > & | fieldSource (const word &name, const LagrangianModel &) const |
| Lookup and return another field source. More... | |
| template<class OtherType , class OtherFieldSourceType > | |
| const OtherFieldSourceType & | fieldSourceCast (const word &name, const LagrangianModel &) const |
| Lookup and return another field source and then cast to a. More... | |
| template<class OtherModelType > | |
| const OtherModelType & | modelCast (const LagrangianModel &) const |
| Cast a model to the specified type. Handle errors. More... | |
| template<class OtherType > | |
| tmp< LagrangianSubField< OtherType > > | value (const word &name, const LagrangianSource &, const LagrangianSubMesh &) const |
| Lookup and return the value of another field source. More... | |
| template<class OtherType > | |
| tmp< LagrangianSubField< OtherType > > | value (const word &name, const LagrangianInjection &, const LagrangianSubMesh &) const |
| Lookup and return the value of another field source. More... | |
| template<class OtherType > | |
| const Foam::LagrangianFieldSource< OtherType > & | fieldSource (const word &name, const LagrangianModel &model) const |
| template<class OtherType > | |
| Foam::tmp< Foam::LagrangianSubField< OtherType > > | value (const word &name, const LagrangianSource &source, const LagrangianSubMesh &subMesh) const |
| template<class OtherType > | |
| Foam::tmp< Foam::LagrangianSubField< OtherType > > | value (const word &name, const LagrangianInjection &injection, const LagrangianSubMesh &subMesh) const |
Static Public Member Functions | |
| static autoPtr< LagrangianFieldSource< Type > > | New (const word &fieldSourceType, const regIOobject &) |
| Return a pointer to a new field source. More... | |
| static autoPtr< LagrangianFieldSource< Type > > | New (const regIOobject &, const dictionary &) |
| Return a pointer to a new field source created from a dictionary. More... | |
Static Public Attributes | |
| static int | disallowGenericLagrangianFieldSource |
| Debug switch to disallow the use of genericLagrangianFieldSource. More... | |
Friends | |
| Ostream & | operator (Ostream &, const LagrangianFieldSource< Type > &) |
| Ostream operator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from LagrangianFieldSourceBase | |
| const regIOobject & | internalIo_ |
| Reference to the internal IO object. More... | |
Base class for Lagrangian source conditions.
Definition at line 57 of file LagrangianFieldSource.H.
| LagrangianFieldSource | ( | const regIOobject & | iIo | ) |
Construct from internal field.
Definition at line 38 of file LagrangianFieldSource.C.
| LagrangianFieldSource | ( | const regIOobject & | iIo, |
| const dictionary & | dict | ||
| ) |
Construct from internal field and dictionary.
Definition at line 57 of file LagrangianFieldSource.C.
|
delete |
Disallow copy without setting the internal field reference.
| LagrangianFieldSource | ( | const LagrangianFieldSource< Type > & | field, |
| const regIOobject & | iIo | ||
| ) |
Construct as copy setting the internal field reference.
Definition at line 77 of file LagrangianFieldSource.C.
|
virtual |
Destructor.
Definition at line 162 of file LagrangianFieldSource.C.
| TypeName | ( | "LagrangianFieldSource< Type >" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| LagrangianFieldSource< Type > | , | ||
| null | , | ||
| (const regIOobject &iIo) | , | ||
| (iIo) | |||
| ) |
Select given internal field.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| LagrangianFieldSource< Type > | , | ||
| dictionary | , | ||
| (const regIOobject &iIo, const dictionary &dict) | , | ||
| (iIo, dict) | |||
| ) |
Select given internal field and dictionary.
|
inline |
Disallow clone without setting the internal field reference.
Definition at line 123 of file LagrangianFieldSource.H.
References NotImplemented.
|
pure virtual |
Construct and return a clone setting the internal field reference.
Implemented in zeroLagrangianFieldSource< Type >, uniformFixedValueLagrangianFieldSource< Type >, NaNLagrangianFieldSource< Type >, maxLagrangianFieldSource< Type >, internalLagrangianFieldSource< Type >, carrierLagrangianFieldSource< Type >, and genericLagrangianFieldSource< Type >.
|
static |
Return a pointer to a new field source.
Definition at line 100 of file LagrangianFieldSource.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

|
static |
Return a pointer to a new field source created from a dictionary.
Definition at line 124 of file LagrangianFieldSource.C.
References dict, dictionaryName::dictName(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::libs, dictionary::lookup(), Foam::nl, and dlLibraryTable::open().

|
virtual |
Return internal dimensions reference.
Implements LagrangianFieldSourceBase.
Definition at line 170 of file LagrangianFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::notNull().

| const Foam::LagrangianInternalDynamicField< Type > & internalField |
Return internal field reference.
Definition at line 193 of file LagrangianFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::notNull().

|
virtual |
Return the source value.
Reimplemented in zeroLagrangianFieldSource< Type >, uniformFixedValueLagrangianFieldSource< Type >, NaNLagrangianFieldSource< Type >, maxLagrangianFieldSource< Type >, and internalLagrangianFieldSource< Type >.
Definition at line 211 of file LagrangianFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianModel::name(), and Foam::type().

|
virtual |
Return the internal coefficient.
Reimplemented in zeroLagrangianFieldSource< Type >, uniformFixedValueLagrangianFieldSource< Type >, NaNLagrangianFieldSource< Type >, maxLagrangianFieldSource< Type >, and internalLagrangianFieldSource< Type >.
Definition at line 229 of file LagrangianFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianModel::name(), and Foam::type().

| Foam::tmp< Foam::LagrangianSubField< Type > > sourceCoeff | ( | const LagrangianSource & | source, |
| const LagrangianSubMesh & | subMesh | ||
| ) | const |
Return the source coefficient.
Definition at line 247 of file LagrangianFieldSource.C.
| Foam::tmp< Foam::LagrangianSubField< Type > > value | ( | const LagrangianSource & | source, |
| const LagrangianSubMesh & | subMesh | ||
| ) | const |
Return the value for a continuous source.
Definition at line 259 of file LagrangianFieldSource.C.
References LagrangianSubMesh::sub().

|
virtual |
Return the value for an instantaneous injection.
Reimplemented in zeroLagrangianFieldSource< Type >, uniformFixedValueLagrangianFieldSource< Type >, NaNLagrangianFieldSource< Type >, maxLagrangianFieldSource< Type >, and carrierLagrangianFieldSource< Type >.
Definition at line 273 of file LagrangianFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianModel::name(), and Foam::type().

|
virtual |
Return the value without a model.
Reimplemented in uniformFixedValueLagrangianFieldSource< Type >, and carrierLagrangianFieldSource< Type >.
Definition at line 291 of file LagrangianFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::type().

|
virtual |
Write.
Reimplemented in uniformFixedValueLagrangianFieldSource< Type >, carrierLagrangianFieldSource< Type >, and genericLagrangianFieldSource< Type >.
Definition at line 306 of file LagrangianFieldSource.C.
References Foam::type(), and Foam::writeEntry().
Referenced by carrierLagrangianFieldSource< Type >::write(), and uniformFixedValueLagrangianFieldSource< Type >::write().


|
friend |
Ostream operator.
|
static |
Debug switch to disallow the use of genericLagrangianFieldSource.
Definition at line 80 of file LagrangianFieldSource.H.