Base class for finite-volume field sources. More...

Public Member Functions | |
| TypeName ("fvFieldSource") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, fvFieldSource, null,(const DimensionedField< Type, volMesh > &iF),(iF)) | |
| Select given internal field. More... | |
| declareRunTimeSelectionTable (autoPtr, fvFieldSource, dictionary,(const DimensionedField< Type, volMesh > &iF, const dictionary &dict),(iF, dict)) | |
| Select given internal field and dictionary. More... | |
| fvFieldSource (const DimensionedField< Type, volMesh > &) | |
| Construct from internal field. More... | |
| fvFieldSource (const DimensionedField< Type, volMesh > &, const dictionary &) | |
| Construct from internal field and dictionary. More... | |
| fvFieldSource (const fvFieldSource< Type > &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| autoPtr< fvFieldSource< Type > > | clone () const |
| Disallow clone without setting internal field reference. More... | |
| fvFieldSource (const fvFieldSource< Type > &, const DimensionedField< Type, volMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| virtual autoPtr< fvFieldSource< Type > > | clone (const DimensionedField< Type, volMesh > &) const =0 |
| Construct and return a clone setting internal field reference. More... | |
| virtual | ~fvFieldSource () |
| Destructor. More... | |
| const objectRegistry & | db () const |
| Return the local object registry. More... | |
| const DimensionedField< Type, volMesh > & | internalField () const |
| Return the internal field reference. More... | |
| virtual tmp< DimensionedField< Type, volMesh > > | sourceValue (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const =0 |
| Return the source value. More... | |
| virtual tmp< Field< Type > > | sourceValue (const fvSource &model, const scalarField &source, const labelUList &cells) const |
| Return the source value. More... | |
| virtual tmp< DimensionedField< scalar, volMesh > > | internalCoeff (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const =0 |
| Return the internal coefficient. More... | |
| virtual tmp< scalarField > | internalCoeff (const fvSource &model, const scalarField &source, const labelUList &cells) const |
| Return the internal coefficient. More... | |
| virtual tmp< DimensionedField< Type, volMesh > > | sourceCoeff (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const |
| Return the source coefficient. More... | |
| virtual tmp< Field< Type > > | sourceCoeff (const fvSource &model, const scalarField &source, const labelUList &cells) const |
| Return the source coefficient. More... | |
| tmp< DimensionedField< Type, volMesh > > | value (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const |
| Return the value. More... | |
| tmp< Field< Type > > | value (const fvSource &model, const scalarField &source, const labelUList &cells) const |
| Return the value. More... | |
| template<class OtherType > | |
| const fvFieldSource< OtherType > & | fieldSource (const word &name, const fvSource &model) const |
| Lookup and return another field source. More... | |
| template<class OtherType > | |
| tmp< DimensionedField< OtherType, volMesh > > | value (const word &name, const fvSource &model, const DimensionedField< scalar, volMesh > &source) const |
| Lookup and return the value of another field source. More... | |
| template<class OtherType > | |
| tmp< Field< OtherType > > | value (const word &name, const fvSource &model, const scalarField &source, const labelUList &cells) const |
| Lookup and return the value of another field source. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
| template<class OtherType > | |
| const Foam::fvFieldSource< OtherType > & | fieldSource (const word &name, const fvSource &model) const |
| template<class OtherType > | |
| Foam::tmp< Foam::DimensionedField< OtherType, Foam::volMesh > > | value (const word &name, const fvSource &model, const DimensionedField< scalar, volMesh > &source) const |
| template<class OtherType > | |
| Foam::tmp< Foam::Field< OtherType > > | value (const word &name, const fvSource &model, const scalarField &source, const labelUList &cells) const |
Static Public Member Functions | |
| static autoPtr< fvFieldSource< Type > > | New (const word &fieldSourceType, const DimensionedField< Type, volMesh > &) |
| Return a pointer to a new field source. More... | |
| static autoPtr< fvFieldSource< Type > > | New (const DimensionedField< Type, volMesh > &, const dictionary &) |
| Return a pointer to a new field source created from a dictionary. More... | |
Static Public Attributes | |
| static int | disallowGenericFvFieldSource |
| Debug switch to disallow the use of genericFvFieldSource. More... | |
Friends | |
| Ostream & | operator (Ostream &, const fvFieldSource< Type > &) |
| Ostream operator. More... | |
Base class for finite-volume field sources.
Definition at line 61 of file fvFieldSource.H.
| fvFieldSource | ( | const DimensionedField< Type, volMesh > & | iF | ) |
Construct from internal field.
Definition at line 33 of file fvFieldSource.C.
| fvFieldSource | ( | const DimensionedField< Type, volMesh > & | iF, |
| const dictionary & | dict | ||
| ) |
Construct from internal field and dictionary.
Definition at line 44 of file fvFieldSource.C.
|
delete |
Disallow copy without setting internal field reference.
| fvFieldSource | ( | const fvFieldSource< Type > & | field, |
| const DimensionedField< Type, volMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 64 of file fvFieldSource.C.
|
virtual |
Destructor.
Definition at line 141 of file fvFieldSource.C.
| TypeName | ( | "fvFieldSource< Type >" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| fvFieldSource< Type > | , | ||
| null | , | ||
| (const DimensionedField< Type, volMesh > &iF) | , | ||
| (iF) | |||
| ) |
Select given internal field.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| fvFieldSource< Type > | , | ||
| dictionary | , | ||
| (const DimensionedField< Type, volMesh > &iF, const dictionary &dict) | , | ||
| (iF, dict) | |||
| ) |
Select given internal field and dictionary.
|
inline |
Disallow clone without setting internal field reference.
Definition at line 123 of file fvFieldSource.H.
References NotImplemented.
|
pure virtual |
Construct and return a clone setting internal field reference.
Implemented in genericFvFieldSource< Type >, uniformInletOutletFvFieldSource< Type >, uniformFixedValueFvFieldSource< Type >, NaNFvFieldSource< Type >, and internalFvFieldSource< Type >.
|
static |
Return a pointer to a new field source.
Definition at line 79 of file fvFieldSource.C.
References Foam::endl(), Foam::exit(), FatalErrorInFunction, Foam::FatalIOError, and Foam::nl.

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

| const Foam::objectRegistry & db |
Return the local object registry.
Definition at line 148 of file fvFieldSource.C.
| const Foam::DimensionedField< Type, Foam::volMesh > & internalField |
Return the internal field reference.
Definition at line 156 of file fvFieldSource.C.
|
pure virtual |
Return the source value.
Implemented in genericFvFieldSource< Type >, uniformInletOutletFvFieldSource< Type >, uniformFixedValueFvFieldSource< Type >, NaNFvFieldSource< Type >, and internalFvFieldSource< Type >.
|
virtual |
Return the source value.
Reimplemented in genericFvFieldSource< Type >, uniformInletOutletFvFieldSource< Type >, uniformFixedValueFvFieldSource< Type >, NaNFvFieldSource< Type >, and internalFvFieldSource< Type >.
Definition at line 163 of file fvFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fvModel::name(), and Foam::type().

|
pure virtual |
Return the internal coefficient.
Implemented in genericFvFieldSource< Type >, uniformInletOutletFvFieldSource< Type >, uniformFixedValueFvFieldSource< Type >, NaNFvFieldSource< Type >, and internalFvFieldSource< Type >.
|
virtual |
Return the internal coefficient.
Reimplemented in genericFvFieldSource< Type >, uniformInletOutletFvFieldSource< Type >, uniformFixedValueFvFieldSource< Type >, NaNFvFieldSource< Type >, and internalFvFieldSource< Type >.
Definition at line 182 of file fvFieldSource.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fvModel::name(), and Foam::type().

|
virtual |
Return the source coefficient.
Definition at line 202 of file fvFieldSource.C.
|
virtual |
| Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > value | ( | const fvSource & | model, |
| const DimensionedField< scalar, volMesh > & | source | ||
| ) | const |
Return the value.
Definition at line 230 of file fvFieldSource.C.
| Foam::tmp< Foam::Field< Type > > value | ( | const fvSource & | model, |
| const scalarField & | source, | ||
| const labelUList & | cells | ||
| ) | const |
| const fvFieldSource<OtherType>& fieldSource | ( | const word & | name, |
| const fvSource & | model | ||
| ) | const |
Lookup and return another field source.
| tmp<DimensionedField<OtherType, volMesh> > value | ( | const word & | name, |
| const fvSource & | model, | ||
| const DimensionedField< scalar, volMesh > & | source | ||
| ) | const |
Lookup and return the value of another field source.
| tmp<Field<OtherType> > value | ( | const word & | name, |
| const fvSource & | model, | ||
| const scalarField & | source, | ||
| const labelUList & | cells | ||
| ) | const |
Lookup and return the value of another field source.
|
virtual |
Write.
Reimplemented in genericFvFieldSource< Type >, uniformInletOutletFvFieldSource< Type >, and uniformFixedValueFvFieldSource< Type >.
Definition at line 300 of file fvFieldSource.C.
References Foam::type(), and Foam::writeEntry().
Referenced by uniformFixedValueFvFieldSource< Type >::write(), and uniformInletOutletFvFieldSource< Type >::write().


| const Foam::fvFieldSource<OtherType>& fieldSource | ( | const word & | name, |
| const fvSource & | model | ||
| ) | const |
Definition at line 258 of file fvFieldSource.C.
References fvModel::name(), Foam::name(), and GeometricField< Type, GeoMesh, PrimitiveField >::sources().

| Foam::tmp<Foam::DimensionedField<OtherType, Foam::volMesh> > value | ( | const word & | name, |
| const fvSource & | model, | ||
| const DimensionedField< scalar, volMesh > & | source | ||
| ) | const |
Definition at line 274 of file fvFieldSource.C.
References Foam::name().

| Foam::tmp<Foam::Field<OtherType> > value | ( | const word & | name, |
| const fvSource & | model, | ||
| const scalarField & | source, | ||
| const labelUList & | cells | ||
| ) | const |
Definition at line 287 of file fvFieldSource.C.
References cells, and Foam::name().

|
friend |
Ostream operator.
|
static |
Debug switch to disallow the use of genericFvFieldSource.
Definition at line 78 of file fvFieldSource.H.