LagrangianFieldSource< Type > Class Template Referenceabstract

Base class for Lagrangian source conditions. More...

Inheritance diagram for LagrangianFieldSource< Type >:

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...
 
const objectRegistrydb () const
 Return local objectRegistry. More...
 
const dimensionSetinternalDimensions () 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< LagrangianSubScalarFieldinternalCoeff (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...
 
tmp< LagrangianSubField< Type > > value (const LagrangianModel &, const LagrangianSubMesh &) const
 Return the value for either a continuous source or an. 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 given 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...
 
virtual void write (Ostream &) const
 Write. 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

Ostreamoperator (Ostream &, const LagrangianFieldSource< Type > &)
 Ostream operator. More...
 

Detailed Description

template<class Type>
class Foam::LagrangianFieldSource< Type >

Base class for Lagrangian source conditions.

Source files

Definition at line 69 of file LagrangianFieldSource.H.

Constructor & Destructor Documentation

◆ LagrangianFieldSource() [1/4]

Construct from internal field.

Definition at line 37 of file LagrangianFieldSource.C.

◆ LagrangianFieldSource() [2/4]

LagrangianFieldSource ( const regIOobject iIo,
const dictionary dict 
)

Construct from internal field and dictionary.

Definition at line 56 of file LagrangianFieldSource.C.

◆ LagrangianFieldSource() [3/4]

LagrangianFieldSource ( const LagrangianFieldSource< Type > &  )
delete

Disallow copy without setting the internal field reference.

◆ LagrangianFieldSource() [4/4]

LagrangianFieldSource ( const LagrangianFieldSource< Type > &  field,
const regIOobject iIo 
)

Construct as copy setting the internal field reference.

Definition at line 76 of file LagrangianFieldSource.C.

◆ ~LagrangianFieldSource()

Destructor.

Definition at line 161 of file LagrangianFieldSource.C.

Member Function Documentation

◆ TypeName()

TypeName ( "LagrangianFieldSource< Type >"  )

Runtime type information.

◆ declareRunTimeSelectionTable() [1/2]

declareRunTimeSelectionTable ( autoPtr  ,
LagrangianFieldSource< Type >  ,
null  ,
(const regIOobject &iIo)  ,
(iIo)   
)

Select given internal field.

◆ declareRunTimeSelectionTable() [2/2]

declareRunTimeSelectionTable ( autoPtr  ,
LagrangianFieldSource< Type >  ,
dictionary  ,
(const regIOobject &iIo, const dictionary &dict ,
(iIo, dict  
)

Select given internal field and dictionary.

◆ clone() [1/2]

autoPtr<LagrangianFieldSource<Type> > clone ( ) const
inline

Disallow clone without setting the internal field reference.

Definition at line 136 of file LagrangianFieldSource.H.

References NotImplemented.

◆ clone() [2/2]

◆ New() [1/2]

Foam::autoPtr< Foam::LagrangianFieldSource< Type > > New ( const word fieldSourceType,
const regIOobject iIo 
)
static

Return a pointer to a new field source.

Definition at line 99 of file LagrangianFieldSource.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

Here is the call graph for this function:

◆ New() [2/2]

Foam::autoPtr< Foam::LagrangianFieldSource< Type > > New ( const regIOobject iIo,
const dictionary dict 
)
static

Return a pointer to a new field source created from a dictionary.

Definition at line 123 of file LagrangianFieldSource.C.

References dict, dictionaryName::dictName(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::libs, dictionary::lookup(), Foam::nl, and dlLibraryTable::open().

Here is the call graph for this function:

◆ db()

Return local objectRegistry.

Definition at line 168 of file LagrangianFieldSource.C.

References IOobject::db().

Here is the call graph for this function:

◆ internalDimensions()

const Foam::dimensionSet & internalDimensions

Return internal dimensions reference.

Definition at line 176 of file LagrangianFieldSource.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::notNull().

Here is the call graph for this function:

◆ internalField()

const Foam::LagrangianInternalDynamicField< Type > & internalField

Return internal field reference.

Definition at line 199 of file LagrangianFieldSource.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::notNull().

Here is the call graph for this function:

◆ sourceValue()

Foam::tmp< Foam::LagrangianSubField< Type > > sourceValue ( const LagrangianSource source,
const LagrangianSubMesh subMesh 
) const
virtual

◆ internalCoeff()

Foam::tmp< Foam::LagrangianSubScalarField > internalCoeff ( const LagrangianSource source,
const LagrangianSubMesh subMesh 
) const
virtual

◆ sourceCoeff()

Foam::tmp< Foam::LagrangianSubField< Type > > sourceCoeff ( const LagrangianSource source,
const LagrangianSubMesh subMesh 
) const

Return the source coefficient.

Definition at line 251 of file LagrangianFieldSource.C.

◆ value() [1/7]

Foam::tmp< Foam::LagrangianSubField< Type > > value ( const LagrangianSource source,
const LagrangianSubMesh subMesh 
) const

Return the value for a continuous source.

Definition at line 263 of file LagrangianFieldSource.C.

References LagrangianSubMesh::sub().

Here is the call graph for this function:

◆ value() [2/7]

Foam::tmp< Foam::LagrangianSubField< Type > > value ( const LagrangianInjection injection,
const LagrangianSubMesh subMesh 
) const
virtual

◆ value() [3/7]

Foam::tmp< Foam::LagrangianSubField< Type > > value ( const LagrangianModel model,
const LagrangianSubMesh subMesh 
) const

Return the value for either a continuous source or an.

instantaneous injection

Definition at line 294 of file LagrangianFieldSource.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and LagrangianModel::name().

Here is the call graph for this function:

◆ fieldSource() [1/2]

const LagrangianFieldSource<OtherType>& fieldSource ( const word name,
const LagrangianModel  
) const

Lookup and return another field source.

◆ fieldSourceCast()

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 339 of file LagrangianFieldSource.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianModel::name(), Foam::name(), and Foam::type().

Here is the call graph for this function:

◆ modelCast()

const OtherModelType & modelCast ( const LagrangianModel model) const

Cast a model to the given type. Handle errors.

Definition at line 367 of file LagrangianFieldSource.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, LagrangianModel::name(), and Foam::type().

Here is the call graph for this function:

◆ value() [4/7]

tmp<LagrangianSubField<OtherType> > value ( const word name,
const LagrangianSource ,
const LagrangianSubMesh  
) const

Lookup and return the value of another field source.

◆ value() [5/7]

tmp<LagrangianSubField<OtherType> > value ( const word name,
const LagrangianInjection ,
const LagrangianSubMesh  
) const

Lookup and return the value of another field source.

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented in uniformFixedValueLagrangianFieldSource< Type >, carrierLagrangianFieldSource< Type >, and genericLagrangianFieldSource< Type >.

Definition at line 416 of file LagrangianFieldSource.C.

References Foam::type(), and Foam::writeEntry().

Referenced by carrierLagrangianFieldSource< Type >::write(), and uniformFixedValueLagrangianFieldSource< Type >::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fieldSource() [2/2]

const Foam::LagrangianFieldSource<OtherType>& fieldSource ( const word name,
const LagrangianModel model 
) const

Definition at line 324 of file LagrangianFieldSource.C.

References LagrangianModel::name(), Foam::name(), and GeometricField< Type, GeoMesh, PrimitiveField >::sources().

Here is the call graph for this function:

◆ value() [6/7]

Foam::tmp<Foam::LagrangianSubField<OtherType> > value ( const word name,
const LagrangianSource source,
const LagrangianSubMesh subMesh 
) const

Definition at line 390 of file LagrangianFieldSource.C.

References Foam::name().

Here is the call graph for this function:

◆ value() [7/7]

Foam::tmp<Foam::LagrangianSubField<OtherType> > value ( const word name,
const LagrangianInjection injection,
const LagrangianSubMesh subMesh 
) const

Definition at line 404 of file LagrangianFieldSource.C.

References Foam::name().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream ,
const LagrangianFieldSource< Type > &   
)
friend

Ostream operator.

Member Data Documentation

◆ disallowGenericLagrangianFieldSource

int disallowGenericLagrangianFieldSource
static

Debug switch to disallow the use of genericLagrangianFieldSource.

Definition at line 93 of file LagrangianFieldSource.H.


The documentation for this class was generated from the following files: