Base class for Lagrangian source conditions. More...


Public Member Functions | |
| 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... | |
| virtual const dimensionSet & | internalDimensions () const =0 |
| Return internal dimensions reference. 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 |
Protected Attributes | |
| const regIOobject & | internalIo_ |
| Reference to the internal IO object. More... | |
Base class for Lagrangian source conditions.
Definition at line 60 of file LagrangianFieldSourceBase.H.
| LagrangianFieldSourceBase | ( | const regIOobject & | iIo | ) |
Construct from internal field.
Definition at line 38 of file LagrangianFieldSourceBase.C.
|
virtual |
Destructor.
Definition at line 49 of file LagrangianFieldSourceBase.C.
| TypeName | ( | "LagrangianFieldSourceBase" | ) |
Runtime type information.
| const Foam::objectRegistry & db | ( | ) | const |
Return local objectRegistry.
Definition at line 55 of file LagrangianFieldSourceBase.C.
References objectRegistry::db().
Referenced by LagrangianFieldSourceBase::fieldSourceCast().


| const Foam::Time & time | ( | ) | const |
Return time.
Definition at line 61 of file LagrangianFieldSourceBase.C.
References objectRegistry::db(), and objectRegistry::time().

| const Foam::word & internalName | ( | ) | const |
Return internal field name.
Definition at line 67 of file LagrangianFieldSourceBase.C.
Referenced by LagrangianFieldSourceBase::fieldSourceCast().

| Foam::word internalGroup | ( | ) | const |
Return internal field group.
Definition at line 73 of file LagrangianFieldSourceBase.C.
|
pure virtual |
Return internal dimensions reference.
Implemented in LagrangianFieldSource< Type >.
Referenced by Function1LagrangianFieldSource::value().

| const OtherFieldSourceType & fieldSourceCast | ( | const LagrangianModel & | model | ) | const |
Cast a to the specified type. Handle errors.
Definition at line 33 of file LagrangianFieldSourceBaseTemplates.C.
References LagrangianFieldSourceBase::db(), objectRegistry::dbDir(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianFieldSourceBase::internalIo_, LagrangianFieldSourceBase::internalName(), LagrangianModel::name(), IOobject::name(), Foam::type(), and Foam::typeName().

| const LagrangianFieldSource<OtherType>& fieldSource | ( | const word & | name, |
| const LagrangianModel & | |||
| ) | const |
Lookup and return another field source.
| const OtherFieldSourceType & fieldSourceCast | ( | const word & | name, |
| const LagrangianModel & | model | ||
| ) | const |
Lookup and return another field source and then cast to a.
specified type. Handle errors.
Definition at line 71 of file LagrangianFieldSourceBaseTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianModel::name(), Foam::name(), Foam::type(), and Foam::typeName().

| const OtherModelType & modelCast | ( | const LagrangianModel & | model | ) | const |
Cast a model to the specified type. Handle errors.
Definition at line 98 of file LagrangianFieldSourceBaseTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianModel::name(), Foam::type(), and Foam::typeName().

| tmp<LagrangianSubField<OtherType> > value | ( | const word & | name, |
| const LagrangianSource & | , | ||
| const LagrangianSubMesh & | |||
| ) | const |
Lookup and return the value of another field source.
| tmp<LagrangianSubField<OtherType> > value | ( | const word & | name, |
| const LagrangianInjection & | , | ||
| const LagrangianSubMesh & | |||
| ) | const |
Lookup and return the value of another field source.
| const Foam::LagrangianFieldSource<OtherType>& fieldSource | ( | const word & | name, |
| const LagrangianModel & | model | ||
| ) | const |
Definition at line 57 of file LagrangianFieldSourceBaseTemplates.C.
References LagrangianModel::name(), Foam::name(), and GeometricField< Type, GeoMesh, PrimitiveField >::sources().

| Foam::tmp<Foam::LagrangianSubField<OtherType> > value | ( | const word & | name, |
| const LagrangianSource & | source, | ||
| const LagrangianSubMesh & | subMesh | ||
| ) | const |
Definition at line 120 of file LagrangianFieldSourceBaseTemplates.C.
References Foam::name().

| Foam::tmp<Foam::LagrangianSubField<OtherType> > value | ( | const word & | name, |
| const LagrangianInjection & | injection, | ||
| const LagrangianSubMesh & | subMesh | ||
| ) | const |
Definition at line 133 of file LagrangianFieldSourceBaseTemplates.C.
References Foam::name().

|
protected |
Reference to the internal IO object.
Definition at line 67 of file LagrangianFieldSourceBase.H.
Referenced by LagrangianFieldSourceBase::fieldSourceCast().