IOPosition< CloudType > Class Template Reference

Helper IO class to read and write particle coordinates (positions). More...

Public Member Functions

virtual const word & type () const
 Runtime type name information. Use cloud type. More...
 
 IOPosition (const CloudType &c, cloud::geometryType geomType=cloud::geometryType::COORDINATES)
 Construct from cloud. More...
 
virtual void readData (Istream &, CloudType &)
 
virtual bool write (const bool valid=true) const
 
virtual bool writeData (Ostream &os) const
 
virtual bool readData (Istream &)
 Inherit readData from regIOobject. More...
 

Detailed Description

template<class CloudType>
class Foam::IOPosition< CloudType >

Helper IO class to read and write particle coordinates (positions).

Source files

Definition at line 55 of file Cloud.H.

Constructor & Destructor Documentation

◆ IOPosition()

Construct from cloud.

Definition at line 33 of file IOPosition.C.

Member Function Documentation

◆ type()

virtual const word& type ( ) const
inlinevirtual

Runtime type name information. Use cloud type.

Definition at line 70 of file IOPosition.H.

◆ readData() [1/2]

void readData ( Istream &  is,
CloudType &  c 
)
virtual

Definition at line 97 of file IOPosition.C.

References Foam::constant::universal::c, IOstream::check(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FUNCTION_NAME, token::info(), token::isLabel(), token::isPunctuation(), token::labelToken(), mesh, token::pToken(), Istream::putBack(), Istream::readBeginList(), Istream::readEndList(), and s.

Here is the call graph for this function:

◆ write()

bool write ( const bool  valid = true) const
virtual

Definition at line 57 of file IOPosition.C.

References Foam::vtk::write().

Referenced by particle< Type >::writeFields().

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

◆ writeData()

bool writeData ( Ostream &  os) const
virtual

Definition at line 64 of file IOPosition.C.

References Foam::endl(), forAllConstIters(), IOstream::good(), and Foam::nl.

Here is the call graph for this function:

◆ readData() [2/2]

bool readData

Inherit readData from regIOobject.

Definition at line 196 of file regIOobjectRead.C.


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