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

basicSourceList Class Reference

List of explict sources. More...

#include <finiteVolume/basicSourceList.H>


Detailed Description

List of explict sources.

SourceFile basicSourceList.C

Definition at line 51 of file basicSourceList.H.

Inheritance diagram for basicSourceList:
Collaboration diagram for basicSourceList:

List of all members.

Public Member Functions

 basicSourceList (const fvMesh &mesh, const dictionary &dict)
 Construct from components with list of field names.
virtual  ~basicSourceList ()
 Destructor.
void  addExplicitSources ()
 Add all explicit sources.
void  addSu (DimensionedField< scalar, volMesh > &field)
 Add source to scalar field.
void  addSu (DimensionedField< vector, volMesh > &field)
 Add source to vector field.
void  addSu (fvMatrix< scalar > &Eq)
 Add source terms to scalar fvMatrix.
void  addSu (fvMatrix< vector > &Eq)
 Add source terms to vector fvMatrix.
virtual bool  read (const dictionary &dict)
 Read dictionary.
virtual bool  writeData (Ostream &os) const
 Write data to Istream.

Friends

Ostream &  operator<< (Ostream &os, const basicSourceList &sources)
 Ostream operator.

Constructor & Destructor Documentation

basicSourceList ( const fvMesh &   mesh,
const dictionary &   dict  
)

Construct from components with list of field names.

Definition at line 31 of file basicSourceList.C.

References forAllConstIter, name(), and setSize().

virtual ~basicSourceList (  ) [inline, virtual]

Destructor.

Definition at line 81 of file basicSourceList.H.


Member Function Documentation

void addExplicitSources (  )

Add all explicit sources.

Definition at line 93 of file basicSourceList.C.

References forAll.

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

Add source to scalar field.

Definition at line 107 of file basicSourceList.C.

References forAll.

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

Add source to vector field.

Definition at line 122 of file basicSourceList.C.

References forAll.

void addSu ( fvMatrix< scalar > &   Eq  )

Add source terms to scalar fvMatrix.

Definition at line 68 of file basicSourceList.C.

References basicSource::addSu(), forAll, and PtrList< basicSource >::operator[]().

void addSu ( fvMatrix< vector > &   Eq  )

Add source terms to vector fvMatrix.

Definition at line 80 of file basicSourceList.C.

References forAll.

bool read ( const dictionary &   dict  ) [virtual]

Read dictionary.

Definition at line 136 of file basicSourceList.C.

References forAll.

bool writeData ( Ostream &   os  ) const [virtual]

Write data to Istream.

Definition at line 146 of file basicSourceList.C.

References token::BEGIN_LIST, token::END_LIST, token::END_STATEMENT, forAll, IOstream::good(), and Foam::nl.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &   os,
const basicSourceList &   sources  
) [friend]

Ostream operator.


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