FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Explicit source. More...

#include <finiteVolume/explicitSource.H>


Detailed Description

Explicit source.

Sources described by:

explicitSourceCoeffs { points// list of points when selectionMode = points ( (-0.088 0.007 -0.02) (-0.028 0.007 -0.02) ); volumeMode specific; //absolute fieldData// field data - usage for multiple fields { k 30.7; epsilon 1.5; } }

Source files

Definition at line 69 of file explicitSource.H.

Inheritance diagram for explicitSource:
Collaboration diagram for explicitSource:

List of all members.

Classes

class  fieldList

Public Types

enum  volumeModeType { vmAbsolute, vmSpecific }
 

Enumeration for volume types.

More...

Public Member Functions

 TypeName ("explicitSource")
 Runtime type information.
 explicitSource (const word &name, const dictionary &dict, const fvMesh &mesh)
 Construct from components.
autoPtr< explicitSource >  clone () const
 Return clone.
const volumeModeType &  volumeMode () const
 Return const access to the volume mode.
volumeModeType &  volumeMode ()
 Return access to the volume mode.
const List< point > &  points () const
 Return points.
virtual void  addSu (fvMatrix< vector > &UEqn)
 Source term to fvMatrix<vector>
virtual void  addSu (fvMatrix< scalar > &UEqn)
 Source term to fvMatrix<scalar>
virtual void  addExplicitSources ()
 Add all explicit source.
virtual void  addSu (DimensionedField< vector, volMesh > &field)
 Add source to scalar field.
virtual void  addSu (DimensionedField< scalar, volMesh > &field)
 Add source to vector field.
virtual void  writeData (Ostream &) const
 Write the source properties.
virtual bool  read (const dictionary &dict)
 Read fieldData in sub-dictionary.

Static Public Attributes

static const wordList  volumeModeTypeNames_
 Word list of volume mode type names.

Protected Member Functions

volumeModeType  wordToVolumeModeType (const word &vtName) const
 Helper function to convert from a word to a volumeModeType.
word  volumeModeTypeToWord (const volumeModeType &vtType) const
 Helper function to convert from a volumeModeType to a word.
void  setFieldData (const dictionary &dict)
 Set the local field data.
void  setSelectedCellsFromPoints ()
 Set selected cells when smPoint is used.

Protected Attributes

const dictionary &  dict_
 Sub dictionary for time activated explicit sources.
volumeModeType  volumeMode_
 Volume mode.
List< point >  points_
 List of points for "points" selectionMode.
scalarList  volSource_
 Volume of the explicit source.

Friends

Ostream &  operator<< (Ostream &os, const explicitSource &source)
 Ostream operator.

Member Enumeration Documentation

Enumeration for volume types.

Enumerator:
vmAbsolute 
vmSpecific 

Definition at line 154 of file explicitSource.H.


Constructor & Destructor Documentation

explicitSource ( const word &   name,
const dictionary &   dict,
const fvMesh &   mesh  
)

Construct from components.

Definition at line 166 of file explicitSource.C.

References cells, Foam::endl(), forAll, Foam::Info, Foam::reduce(), Foam::returnReduce(), List< T >::size(), and fvMesh::V().


Member Function Documentation

Foam::explicitSource::volumeModeType wordToVolumeModeType ( const word &   vtName  ) const [protected]

Helper function to convert from a word to a volumeModeType.

Definition at line 83 of file explicitSource.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, and Foam::nl.

Foam::word volumeModeTypeToWord ( const volumeModeType &   vtType  ) const [protected]

Helper function to convert from a volumeModeType to a word.

Definition at line 108 of file explicitSource.C.

Referenced by explicitSource::writeData().

void setFieldData ( const dictionary &   dict  ) [protected]
void setSelectedCellsFromPoints (  ) [protected]
TypeName ( "explicitSource"    )

Runtime type information.

autoPtr<explicitSource> clone (  ) const [inline]

Return clone.

Reimplemented from basicSource.

Definition at line 213 of file explicitSource.H.

References notImplemented.

const Foam::explicitSource::volumeModeType & volumeMode (  ) const [inline]

Return const access to the volume mode.

Definition at line 31 of file explicitSourceI.H.

References explicitSource::volumeMode_.

Foam::explicitSource::volumeModeType & volumeMode (  ) [inline]

Return access to the volume mode.

Definition at line 38 of file explicitSourceI.H.

const Foam::List< Foam::point > & points (  ) const [inline]

Return points.

Definition at line 45 of file explicitSourceI.H.

void addSu ( fvMatrix< vector > &   UEqn  ) [virtual]

Source term to fvMatrix<vector>

Implements basicSource.

Definition at line 224 of file explicitSource.C.

References IOobject::name(), fvMatrix< Type >::psi(), and fvMatrix< Type >::source().

void addSu ( fvMatrix< scalar > &   UEqn  ) [virtual]

Source term to fvMatrix<scalar>

Implements basicSource.

Definition at line 216 of file explicitSource.C.

References IOobject::name(), fvMatrix< Type >::psi(), and fvMatrix< Type >::source().

void addExplicitSources (  ) [virtual]

Add all explicit source.

Implements basicSource.

Definition at line 246 of file explicitSource.C.

void addSu ( DimensionedField< vector, volMesh > &   field  ) [virtual]

Add source to scalar field.

Implements basicSource.

Definition at line 239 of file explicitSource.C.

References IOobject::name().

void addSu ( DimensionedField< scalar, volMesh > &   field  ) [virtual]

Add source to vector field.

Implements basicSource.

Definition at line 232 of file explicitSource.C.

References IOobject::name().

bool read ( const dictionary &   dict  ) [virtual]

Read fieldData in sub-dictionary.

Implements basicSource.

Definition at line 54 of file explicitSourceIO.C.

References Foam::name(), basicSource::read(), and dictionary::subDict().


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &   os,
const explicitSource &   source  
) [friend]

Ostream operator.


Member Data Documentation

Word list of volume mode type names.

Definition at line 161 of file explicitSource.H.

const dictionary& dict_ [protected]

Sub dictionary for time activated explicit sources.

Reimplemented from basicSource.

Definition at line 169 of file explicitSource.H.

Volume mode.

Definition at line 172 of file explicitSource.H.

Referenced by explicitSource::volumeMode(), and explicitSource::writeData().

List<point> points_ [protected]

List of points for "points" selectionMode.

Definition at line 175 of file explicitSource.H.

Referenced by explicitSource::setSelectedCellsFromPoints().

scalarList volSource_ [protected]

Volume of the explicit source.

Definition at line 178 of file explicitSource.H.


The documentation for this class was generated from the following files:
  • src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSource.H
  • src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSource.C
  • src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSourceI.H
  • src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSourceIO.C
  • src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSourceTemplates.C