MPPICParcel< ParcelType > Class Template Reference

Wrapper around kinematic parcel types to add MPPIC modelling. More...

Inheritance diagram for MPPICParcel< ParcelType >:
[legend]
Collaboration diagram for MPPICParcel< ParcelType >:
[legend]

Classes

class  iNew
 Factory class to read-construct particles used for. More...
 
class  trackingData
 

Public Member Functions

 TypeName ("MPPICParcel")
 Runtime type information. More...
 
 AddToPropertyList (ParcelType, " (UCorrectx UCorrecty UCorrectz)")
 String representation of properties. More...
 
 MPPICParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
 Construct from mesh, coordinates and topology. More...
 
 MPPICParcel (const polyMesh &mesh, const vector &position, const label celli)
 Construct from a position and a cell, searching for the rest of the. More...
 
 MPPICParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label typeId, const scalar nParticle0, const scalar d0, const scalar dTarget0, const vector &U0, const vector &UCorrect0, const typename ParcelType::constantProperties &constProps)
 Construct from components. More...
 
 MPPICParcel (const polyMesh &mesh, Istream &is, bool readFields=true, bool newFormat=true)
 Construct from Istream. More...
 
 MPPICParcel (const MPPICParcel &p)
 Construct as a copy. More...
 
 MPPICParcel (const MPPICParcel &p, const polyMesh &mesh)
 Construct as a copy. More...
 
virtual autoPtr< particleclone () const
 Construct and return a (basic particle) clone. More...
 
virtual autoPtr< particleclone (const polyMesh &mesh) const
 Construct and return a (basic particle) clone. More...
 
const vectorUCorrect () const
 Return const access to correction velocity. More...
 
vectorUCorrect ()
 Return access to correction velocity. More...
 
template<class TrackCloudType >
bool move (TrackCloudType &cloud, trackingData &td, const scalar trackTime)
 Move the parcel. More...
 
void writeProperties (Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const
 Write individual parcel properties to stream. More...
 

Static Public Member Functions

template<class CloudType >
static void readFields (CloudType &c)
 Read. More...
 
template<class CloudType >
static void writeFields (const CloudType &c)
 Write. More...
 
template<class CloudType >
static void readObjects (CloudType &c, const objectRegistry &obr)
 Read particle fields as objects from the obr registry. More...
 
template<class CloudType >
static void writeObjects (const CloudType &c, objectRegistry &obr)
 Write particle fields as objects into the obr registry. More...
 

Static Public Attributes

static const std::size_t sizeofFields
 Size in bytes of the fields. More...
 

Protected Attributes

vector UCorrect_
 Velocity correction due to collisions [m/s]. More...
 

Friends

Ostreamoperator (Ostream &, const MPPICParcel< ParcelType > &)
 

Detailed Description

template<class ParcelType>
class Foam::MPPICParcel< ParcelType >

Wrapper around kinematic parcel types to add MPPIC modelling.

Source files

Definition at line 77 of file MPPICParcel.H.

Constructor & Destructor Documentation

◆ MPPICParcel() [1/6]

MPPICParcel ( const polyMesh mesh,
const barycentric coordinates,
const label  celli,
const label  tetFacei,
const label  tetPti 
)
inline

Construct from mesh, coordinates and topology.

Other properties initialised as null

Definition at line 31 of file MPPICParcelI.H.

◆ MPPICParcel() [2/6]

MPPICParcel ( const polyMesh mesh,
const vector position,
const label  celli 
)
inline

Construct from a position and a cell, searching for the rest of the.

required topology. Other properties are initialised as null.

Definition at line 46 of file MPPICParcelI.H.

◆ MPPICParcel() [3/6]

MPPICParcel ( const polyMesh mesh,
const barycentric coordinates,
const label  celli,
const label  tetFacei,
const label  tetPti,
const label  typeId,
const scalar  nParticle0,
const scalar  d0,
const scalar  dTarget0,
const vector U0,
const vector UCorrect0,
const typename ParcelType::constantProperties &  constProps 
)
inline

Construct from components.

Definition at line 59 of file MPPICParcelI.H.

◆ MPPICParcel() [4/6]

MPPICParcel ( const polyMesh mesh,
Istream is,
bool  readFields = true,
bool  newFormat = true 
)

◆ MPPICParcel() [5/6]

MPPICParcel ( const MPPICParcel< ParcelType > &  p)

Construct as a copy.

◆ MPPICParcel() [6/6]

MPPICParcel ( const MPPICParcel< ParcelType > &  p,
const polyMesh mesh 
)

Construct as a copy.

Member Function Documentation

◆ TypeName()

TypeName ( "MPPICParcel< ParcelType >"  )

Runtime type information.

◆ AddToPropertyList()

AddToPropertyList ( ParcelType  ,
" (UCorrectx UCorrecty UCorrectz)"   
)

String representation of properties.

◆ clone() [1/2]

virtual autoPtr< particle > clone ( ) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 241 of file MPPICParcel.H.

◆ clone() [2/2]

virtual autoPtr< particle > clone ( const polyMesh mesh) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 247 of file MPPICParcel.H.

References mesh.

◆ UCorrect() [1/2]

const Foam::vector & UCorrect
inline

Return const access to correction velocity.

Definition at line 96 of file MPPICParcelI.H.

◆ UCorrect() [2/2]

Foam::vector & UCorrect
inline

Return access to correction velocity.

Definition at line 103 of file MPPICParcelI.H.

◆ move()

bool move ( TrackCloudType &  cloud,
trackingData td,
const scalar  trackTime 
)

Move the parcel.

Definition at line 59 of file MPPICParcel.C.

References f(), engineMesh::move(), p, MPPICParcel< ParcelType >::trackingData::part(), and U.

Here is the call graph for this function:

◆ readFields()

void readFields ( CloudType c)
static

Read.

Definition at line 89 of file MPPICParcelIO.C.

References IOobject::MUST_READ, and p.

Referenced by MPPICParcel< ParcelType >::MPPICParcel().

Here is the caller graph for this function:

◆ writeFields()

void writeFields ( const CloudType c)
static

Write.

Definition at line 114 of file MPPICParcelIO.C.

References IOobject::NO_READ, p, regIOobject::write(), and fieldAverage::writeFields().

Here is the call graph for this function:

◆ writeProperties()

void writeProperties ( Ostream os,
const wordRes filters,
const word delim,
const bool  namesOnly = false 
) const

Write individual parcel properties to stream.

Definition at line 137 of file MPPICParcelIO.C.

References os(), writeProp, and injectedParticle::writeProperties().

Here is the call graph for this function:

◆ readObjects()

void readObjects ( CloudType c,
const objectRegistry obr 
)
static

Read particle fields as objects from the obr registry.

Definition at line 159 of file MPPICParcelIO.C.

References p, and injectedParticle::readObjects().

Here is the call graph for this function:

◆ writeObjects()

void writeObjects ( const CloudType c,
objectRegistry obr 
)
static

Write particle fields as objects into the obr registry.

Definition at line 183 of file MPPICParcelIO.C.

References p.

Friends And Related Function Documentation

◆ operator

Ostream & operator ( Ostream ,
const MPPICParcel< ParcelType > &   
)
friend

Member Data Documentation

◆ sizeofFields

const std::size_t sizeofFields
static

Size in bytes of the fields.

Definition at line 84 of file MPPICParcel.H.

Referenced by MPPICParcel< ParcelType >::MPPICParcel().

◆ UCorrect_

vector UCorrect_
protected

Velocity correction due to collisions [m/s].

Definition at line 168 of file MPPICParcel.H.

Referenced by MPPICParcel< ParcelType >::MPPICParcel().


The documentation for this class was generated from the following files: