BISICLES AMR ice sheet model  0.9
Public Types | Public Member Functions | List of all members
UnstructuredData Class Reference

#include <UnstructuredIO.H>

Public Types

typedef std::set< std::pair< int, Box > > LevelBoxSet
 

Public Member Functions

 UnstructuredData (int a_nComp, const RealVect &a_crseDx, const Box &a_crseDomain, const Vector< int > &a_ratio, const Real &a_time, const RealVect &a_x0=RealVect::Zero)
 
void define (int a_nComp, const RealVect &a_crseDx, const Box &a_crseDomain, const Vector< int > &a_ratio, const Real &a_time, const RealVect &a_x0=RealVect::Zero)
 
 UnstructuredData ()
 
void resize (int a_size)
 
void append (int a_lev, const Box &a_box, const IntVect &a_iv, const Vector< Real > &a_data)
 
int nComp () const
 
size_t nCell () const
 
size_t nLevel () const
 
Box domain (int a_lev) const
 
Real time () const
 
Real & time ()
 
const Vector< int > & ratio () const
 
const Vector< RealVect > & dx () const
 
const Vector< int > & level () const
 
Vector< int > & level ()
 
const LevelBoxSetlevelBoxSet () const
 
LevelBoxSetlevelBoxSet ()
 
const Vector< int > & iv (int a_dir) const
 
Vector< int > & iv (int a_dir)
 
const Vector< Real > & field (int a_comp) const
 
Vector< Real > & field (int a_comp)
 
const Vector< Real > & x (int a_dir) const
 
void computeNodeCoord (Vector< Real > &a_nodeCoord, int a_dir, const IntVect &a_node) const
 fill a_nodeCoord with the a_dir co-ordinate of node a_node. More...
 

Member Typedef Documentation

◆ LevelBoxSet

typedef std::set<std::pair<int, Box> > UnstructuredData::LevelBoxSet

Constructor & Destructor Documentation

◆ UnstructuredData() [1/2]

UnstructuredData::UnstructuredData ( int  a_nComp,
const RealVect &  a_crseDx,
const Box &  a_crseDomain,
const Vector< int > &  a_ratio,
const Real &  a_time,
const RealVect &  a_x0 = RealVect::Zero 
)

References define().

◆ UnstructuredData() [2/2]

UnstructuredData::UnstructuredData ( )
inline

References append(), and resize().

Member Function Documentation

◆ append()

void UnstructuredData::append ( int  a_lev,
const Box &  a_box,
const IntVect &  a_iv,
const Vector< Real > &  a_data 
)

◆ computeNodeCoord()

void UnstructuredData::computeNodeCoord ( Vector< Real > &  a_nodeCoord,
int  a_dir,
const IntVect &  a_node 
) const

fill a_nodeCoord with the a_dir co-ordinate of node a_node.

Parameters
Vector<Real>&a_nodeCoord will be resized to this.size()
a_node[dir]= 0 implies lo side, 1 implies high side
Vector<Real>&a_nodeCoord will be resized to this.size().
a_node[dir]= 0 implies lo side, 1 implies high side

References nCell(), and UnstructuredIO::USToBS().

Referenced by UnstructuredIO::writeCF(), and x().

◆ define()

void UnstructuredData::define ( int  a_nComp,
const RealVect &  a_crseDx,
const Box &  a_crseDomain,
const Vector< int > &  a_ratio,
const Real &  a_time,
const RealVect &  a_x0 = RealVect::Zero 
)

◆ domain()

Box UnstructuredData::domain ( int  a_lev) const
inline

◆ dx()

const Vector<RealVect>& UnstructuredData::dx ( ) const
inline

◆ field() [1/2]

const Vector<Real>& UnstructuredData::field ( int  a_comp) const
inline

◆ field() [2/2]

Vector<Real>& UnstructuredData::field ( int  a_comp)
inline

◆ iv() [1/2]

const Vector<int>& UnstructuredData::iv ( int  a_dir) const
inline

◆ iv() [2/2]

Vector<int>& UnstructuredData::iv ( int  a_dir)
inline

◆ level() [1/2]

const Vector<int>& UnstructuredData::level ( ) const
inline

◆ level() [2/2]

Vector<int>& UnstructuredData::level ( )
inline

◆ levelBoxSet() [1/2]

const LevelBoxSet& UnstructuredData::levelBoxSet ( ) const
inline

◆ levelBoxSet() [2/2]

LevelBoxSet& UnstructuredData::levelBoxSet ( )
inline

◆ nCell()

size_t UnstructuredData::nCell ( ) const
inline

◆ nComp()

int UnstructuredData::nComp ( ) const
inline

◆ nLevel()

size_t UnstructuredData::nLevel ( ) const
inline

◆ ratio()

const Vector<int>& UnstructuredData::ratio ( ) const
inline

◆ resize()

void UnstructuredData::resize ( int  a_size)

References append(), and nComp().

Referenced by UnstructuredIO::readCF(), and UnstructuredData().

◆ time() [1/2]

Real UnstructuredData::time ( ) const
inline

Referenced by UnstructuredIO::readCF().

◆ time() [2/2]

Real& UnstructuredData::time ( )
inline

◆ x()

const Vector<Real>& UnstructuredData::x ( int  a_dir) const
inline

References computeNodeCoord().

Referenced by UnstructuredIO::writeCF().


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