Inserting new particles across the faces of a all patched of type "patch" for a free stream. Uniform values number density, temperature and velocity sourced face-by-face from the boundaryT and boundaryU fields of the cloud. More...
Public Member Functions | |
TypeName ("FreeStream") | |
Runtime type information. More... | |
FreeStream (const dictionary &dict, CloudType &cloud) | |
Construct from dictionary. More... | |
virtual | ~FreeStream () |
Destructor. More... | |
virtual void | autoMap (const mapPolyMesh &) |
Remap the particles to the correct cells following mesh change. More... | |
virtual void | inflow () |
Introduce particles. More... | |
![]() | |
TypeName ("InflowBoundaryModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, InflowBoundaryModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner)) | |
Declare runtime constructor selection table. More... | |
InflowBoundaryModel (CloudType &owner) | |
Construct null from owner. More... | |
InflowBoundaryModel (const dictionary &dict, CloudType &owner, const word &type) | |
Construct from dictionary. More... | |
virtual | ~InflowBoundaryModel () |
Destructor. More... | |
const CloudType & | owner () const |
Return const access the owner cloud object. More... | |
CloudType & | owner () |
Return non-const access the owner cloud object for manipulation. More... | |
const dictionary & | dict () const |
Return the owner cloud dictionary. More... | |
const dictionary & | coeffDict () const |
Return the coefficients dictionary. More... | |
Private Attributes | |
labelList | patches_ |
The indices of patches to introduce molecules across. More... | |
List< label > | moleculeTypeIds_ |
The molecule types to be introduced. More... | |
Field< scalar > | numberDensities_ |
The number density of the species in the inflow. More... | |
List< List< Field< scalar > > > | particleFluxAccumulators_ |
A List of Lists of Fields specifying carry-over of mass flux from. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< InflowBoundaryModel< CloudType > > | New (const dictionary &dict, CloudType &owner) |
Selector. More... | |
Inserting new particles across the faces of a all patched of type "patch" for a free stream. Uniform values number density, temperature and velocity sourced face-by-face from the boundaryT and boundaryU fields of the cloud.
Definition at line 49 of file FreeStream.H.
FreeStream | ( | const dictionary & | dict, |
CloudType & | cloud | ||
) |
Construct from dictionary.
Definition at line 37 of file FreeStream.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, dictionary::lookup(), Foam::nl, p, patches, Foam::readScalar(), List::setSize(), List::size(), and dictionary::toc().
|
virtual |
Destructor.
Definition at line 114 of file FreeStream.C.
TypeName | ( | "FreeStream< CloudType >" | ) |
Runtime type information.
|
virtual |
Remap the particles to the correct cells following mesh change.
Reimplemented from InflowBoundaryModel< CloudType >.
Definition at line 121 of file FreeStream.C.
References forAll, mesh, p, patchi, and List::setSize().
|
virtual |
Introduce particles.
Implements InflowBoundaryModel< CloudType >.
Definition at line 142 of file FreeStream.C.
References Foam::abort(), Foam::endl(), Foam::erf(), Foam::exp(), f(), polyPatch::faceAreas(), polyPatch::faceCentres(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTri(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, Foam::constant::physicoChemical::k, triangle::mag(), Foam::mag(), Foam::max(), mesh, Foam::min(), n, Foam::nl, p, patchi, Foam::constant::mathematical::pi(), triangle::randomPoint(), Foam::reduce(), rndGen(), List::size(), Foam::sqr(), Foam::sqrt(), polyPatch::start(), tetIndices::tetPt(), and U.
|
private |
The indices of patches to introduce molecules across.
Definition at line 56 of file FreeStream.H.
The molecule types to be introduced.
Definition at line 59 of file FreeStream.H.
|
private |
The number density of the species in the inflow.
Definition at line 62 of file FreeStream.H.
A List of Lists of Fields specifying carry-over of mass flux from.
one timestep to the next + Outer List - one inner List for each patch + Inner List - one Field for every species to be introduced + Each field entry corresponding to a face to be injected across with a particular species
Definition at line 70 of file FreeStream.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.