MPPICParcel< ParcelType > Class Template Reference

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

Inheritance diagram for MPPICParcel< ParcelType >:
Collaboration diagram for MPPICParcel< ParcelType >:

Classes

class  trackingData
 

Public Member Functions

 AddToPropertyList (ParcelType, "")
 String representation of properties. More...
 
 MPPICParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei)
 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 (Istream &is, bool readFields=true)
 Construct from Istream. More...
 
 MPPICParcel (const MPPICParcel &p)
 Construct as a copy. More...
 
virtual autoPtr< particleclone () const
 Construct and return a clone. More...
 
const labelPairid () const
 Return const access to the identifier. More...
 
labelPairid ()
 Return access to the identifier. More...
 

Static Public Member Functions

static autoPtr< MPPICParcelNew (Istream &is)
 Construct from Istream and return. More...
 
template<class CloudType >
static void readFields (CloudType &c)
 Read. More...
 
template<class CloudType >
static void writeFields (const CloudType &c)
 Write. More...
 

Protected Attributes

labelPair id_
 Processor and particle ID at the start of a tracking step. Allows. More...
 

Friends

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

Detailed Description

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

Wrapper around parcel types to add MPPIC modelling.

Source files

Definition at line 78 of file MPPICParcel.H.

Constructor & Destructor Documentation

◆ MPPICParcel() [1/4]

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

Construct from mesh, coordinates and topology.

Other properties initialised as null

Definition at line 31 of file MPPICParcelI.H.

Referenced by MPPICParcel< ParcelType >::clone(), and MPPICParcel< ParcelType >::New().

Here is the caller graph for this function:

◆ MPPICParcel() [2/4]

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 47 of file MPPICParcelI.H.

◆ MPPICParcel() [3/4]

MPPICParcel ( Istream is,
bool  readFields = true 
)

Construct from Istream.

Definition at line 46 of file MPPICParcelIO.C.

References IOstream::ASCII, IOstream::check(), IOstream::format(), MPPICParcel< ParcelType >::id_, Istream::read(), and MPPICParcel< ParcelType >::readFields().

Here is the call graph for this function:

◆ MPPICParcel() [4/4]

MPPICParcel ( const MPPICParcel< ParcelType > &  p)

Construct as a copy.

Member Function Documentation

◆ AddToPropertyList()

AddToPropertyList ( ParcelType  ,
""   
)

String representation of properties.

◆ clone()

virtual autoPtr<particle> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 186 of file MPPICParcel.H.

References MPPICParcel< ParcelType >::MPPICParcel().

Here is the call graph for this function:

◆ New()

static autoPtr<MPPICParcel> New ( Istream is)
inlinestatic

Construct from Istream and return.

Definition at line 192 of file MPPICParcel.H.

References MPPICParcel< ParcelType >::MPPICParcel().

Here is the call graph for this function:

◆ id() [1/2]

const Foam::labelPair & id
inline

Return const access to the identifier.

Definition at line 62 of file MPPICParcelI.H.

◆ id() [2/2]

Foam::labelPair & id
inline

Return access to the identifier.

Definition at line 69 of file MPPICParcelI.H.

◆ readFields()

void readFields ( CloudType c)
static

Read.

Definition at line 73 of file MPPICParcelIO.C.

References Foam::constant::universal::c, and Foam::readFields().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFields()

void writeFields ( const CloudType c)
static

Write.

Definition at line 81 of file MPPICParcelIO.C.

References Foam::constant::universal::c.

Friends And Related Function Documentation

◆ operator

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

Member Data Documentation

◆ id_

labelPair id_
protected

Processor and particle ID at the start of a tracking step. Allows.

values calculated at the end of the step to be mapped back to the starting state, in order to initialise a second corrector step.

Definition at line 145 of file MPPICParcel.H.

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


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