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 polyTopoChangeMap &) |
Remap the particles to the correct cells following mesh change. More... | |
virtual void | inflow () |
Introduce particles. More... | |
Public Member Functions inherited from InflowBoundaryModel< CloudType > | |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from InflowBoundaryModel< CloudType > | |
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(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, dictionary::lookup(), Foam::nl, p, patches, List< T >::setSize(), and dictionary::toc().
|
virtual |
Destructor.
Definition at line 112 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 119 of file FreeStream.C.
References forAll, mesh, DSMCCloud< ParcelType >::mesh(), p, patchi, and List< T >::setSize().
|
virtual |
Introduce particles.
Implements InflowBoundaryModel< CloudType >.
Definition at line 140 of file FreeStream.C.
References Foam::abort(), DSMCCloud< ParcelType >::addNewParcel(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DSMCCloud< ParcelType >::boundaryT(), DSMCCloud< ParcelType >::boundaryU(), DSMCCloud< ParcelType >::constProps(), Foam::endl(), DSMCCloud< ParcelType >::equipartitionInternalEnergy(), Foam::erf(), Foam::exp(), f(), polyPatch::faceAreas(), polyPatch::faceCentres(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTri(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, Foam::constant::physicoChemical::k, UList< T >::last(), triangle< Point, PointRef >::mag(), Foam::mag(), polyPatch::magFaceAreas(), Foam::max(), DSMCCloud< ParcelType >::maxwellianMostProbableSpeed(), mesh, DSMCCloud< ParcelType >::mesh(), Foam::min(), n, Foam::nl, p, patchi, Foam::constant::mathematical::pi(), triangle< Point, PointRef >::randomPoint(), Foam::reduce(), rndGen(), DSMCCloud< ParcelType >::rndGen(), List< T >::size(), Foam::sqr(), Foam::sqrt(), polyPatch::start(), and U.