FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

IOPosition< ParticleType > Class Template Reference

Helper IO class to read and write particle positions. More...

#include <lagrangian/IOPosition.H>


Detailed Description

template<class ParticleType>
class Foam::IOPosition< ParticleType >

Helper IO class to read and write particle positions.

Source files

Definition at line 50 of file IOPosition.H.

Inheritance diagram for IOPosition< ParticleType >:
Collaboration diagram for IOPosition< ParticleType >:

List of all members.

Public Member Functions

virtual const word &  type () const
 Runtime type name information. Use cloud type.
 IOPosition (const Cloud< ParticleType > &)
 Construct from cloud.
virtual void  readData (Cloud< ParticleType > &c, bool checkClass)
virtual bool  write () const
 Write using setting from DB.
virtual bool  writeData (Ostream &os) const
 Pure virtual writaData function.

Constructor & Destructor Documentation

IOPosition ( const Cloud< ParticleType > &   c  )

Construct from cloud.

Definition at line 32 of file IOPosition.C.


Member Function Documentation

virtual const word& type (  ) const [inline, virtual]

Runtime type name information. Use cloud type.

Definition at line 66 of file IOPosition.H.

bool write (  ) const [virtual]

Write using setting from DB.

Reimplemented from regIOobject.

Definition at line 54 of file IOPosition.C.

Referenced by Particle< ParticleType >::writeFields().

bool writeData ( Ostream &    ) const [virtual]

Pure virtual writaData function.

Must be defined in derived types

Implements regIOobject.

Definition at line 68 of file IOPosition.C.

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


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