uniformFixedValueLagrangianFieldSource< Type > Class Template Reference

This source condition provides a uniform fixed value. More...

Inheritance diagram for uniformFixedValueLagrangianFieldSource< Type >:
Collaboration diagram for uniformFixedValueLagrangianFieldSource< Type >:

Public Member Functions

 TypeName ("uniformFixedValue")
 Runtime type information. More...
 
 uniformFixedValueLagrangianFieldSource (const regIOobject &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 uniformFixedValueLagrangianFieldSource (const uniformFixedValueLagrangianFieldSource< Type > &, const regIOobject &)
 Copy constructor setting the internal field reference. More...
 
virtual autoPtr< LagrangianFieldSource< Type > > clone (const regIOobject &iIo) const
 Construct and return a clone setting the internal field reference. More...
 
virtual ~uniformFixedValueLagrangianFieldSource ()
 Destructor. 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...
 
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 LagrangianFieldSource< Type >
 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 ~LagrangianFieldSource ()
 Destructor. More...
 
virtual const dimensionSetinternalDimensions () const
 Return internal dimensions reference. More...
 
const LagrangianInternalDynamicField< Type > & internalField () const
 Return internal field reference. 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...
 
- 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 objectRegistrydb () const
 Return local objectRegistry. More...
 
const Timetime () const
 Return time. More...
 
const wordinternalName () 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
 

Additional Inherited Members

- Static Public Member Functions inherited from LagrangianFieldSource< Type >
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 inherited from LagrangianFieldSource< Type >
static int disallowGenericLagrangianFieldSource
 Debug switch to disallow the use of genericLagrangianFieldSource. More...
 
- Protected Attributes inherited from LagrangianFieldSourceBase
const regIOobjectinternalIo_
 Reference to the internal IO object. More...
 

Detailed Description

template<class Type>
class Foam::uniformFixedValueLagrangianFieldSource< Type >

This source condition provides a uniform fixed value.

Usage
Property Description Required? Default
uniformValue The uniform value yes

Example specification for a constant value:

    <LagrangianModelName>
    {
        type            uniformFixedValue;
        uniformValue    0.1;
    }

Example specification for a time-varying value:

    <LagrangianModelName>
    {
        type            uniformFixedValue;
        uniformValue
        {
            type            table;
            values
            (
                (0 0)
                (1 0.1)
                (9 0.1)
                (10 0)
            );
        }
    }
Source files

Definition at line 94 of file uniformFixedValueLagrangianFieldSource.H.

Constructor & Destructor Documentation

◆ uniformFixedValueLagrangianFieldSource() [1/2]

uniformFixedValueLagrangianFieldSource ( const regIOobject iIo,
const dictionary dict 
)

Construct from internal field and dictionary.

Definition at line 31 of file uniformFixedValueLagrangianFieldSource.C.

◆ uniformFixedValueLagrangianFieldSource() [2/2]

Copy constructor setting the internal field reference.

Definition at line 54 of file uniformFixedValueLagrangianFieldSource.C.

◆ ~uniformFixedValueLagrangianFieldSource()

Member Function Documentation

◆ TypeName()

TypeName ( "uniformFixedValue"  )

Runtime type information.

◆ clone()

virtual autoPtr<LagrangianFieldSource<Type> > clone ( const regIOobject iIo) const
inlinevirtual

Construct and return a clone setting the internal field reference.

Implements LagrangianFieldSource< Type >.

Definition at line 136 of file uniformFixedValueLagrangianFieldSource.H.

◆ sourceValue()

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

Return the source value.

Reimplemented from LagrangianFieldSource< Type >.

Definition at line 79 of file uniformFixedValueLagrangianFieldSource.C.

◆ internalCoeff()

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

Return the internal coefficient.

Reimplemented from LagrangianFieldSource< Type >.

Definition at line 91 of file uniformFixedValueLagrangianFieldSource.C.

References Foam::dimless, LagrangianModel::name(), Foam::name(), DimensionedField< Type, GeoMesh, PrimitiveField >::New(), and Foam::Zero.

Here is the call graph for this function:

◆ value() [1/2]

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

Return the value for an instantaneous injection.

Reimplemented from LagrangianFieldSource< Type >.

Definition at line 109 of file uniformFixedValueLagrangianFieldSource.C.

◆ value() [2/2]

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

Return the value without a model.

Reimplemented from LagrangianFieldSource< Type >.

Definition at line 121 of file uniformFixedValueLagrangianFieldSource.C.

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from LagrangianFieldSource< Type >.

Definition at line 131 of file uniformFixedValueLagrangianFieldSource.C.

References LagrangianFieldSource< Type >::write(), and Foam::writeEntry().

Here is the call graph for this function:

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