Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GridInfo_HDF4 Struct Reference

Struct containing necessary information on a mesh of a pane. More...

#include <rocin_block.h>

Collaboration diagram for GridInfo_HDF4:

Public Member Functions

 GridInfo_HDF4 (int32 *size, int ng)
 Constructor for quick initialization. Use for structured grids. More...
 
 GridInfo_HDF4 (std::string name, int ne, int ng, int32 i)
 Constructor for quick initialization. Use for unstructured grids. More...
 

Public Attributes

int32 m_size [3]
 Grid dimensions (structured only). More...
 
std::string m_name
 Grid name ":st?:*", ":t3:*", ":B8:*", etc. More...
 
int m_numElements
 Number of elements in a mesh. More...
 
int m_numGhostElements
 Number of ghost elements in a mesh. More...
 
int32 m_index
 HDF4 dataset index of conn table (unstr only). More...
 

Detailed Description

Struct containing necessary information on a mesh of a pane.

Definition at line 55 of file rocin_block.h.

Constructor & Destructor Documentation

GridInfo_HDF4 ( int32 *  size,
int  ng 
)
inline

Constructor for quick initialization. Use for structured grids.

Definition at line 57 of file rocin_block.h.

References m_name, and m_size.

58  : m_name(":st0:"),
59  m_numElements(size[2] - 1
60  * std::max(int32(1), (size[1] - 1))
61  * std::max(int32(1), (size[0] - 1))),
62  m_numGhostElements(ng), m_index(FAIL)
63  { m_name[3] += (size[1] > 1 ? (size[0] > 1 ? 3 : 2) : 1);
64  m_size[0] = size[0]; m_size[1] = size[1]; m_size[2] = size[2]; }
int m_numGhostElements
Number of ghost elements in a mesh.
Definition: rocin_block.h:74
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
Definition: Vector_n.h:354
int m_numElements
Number of elements in a mesh.
Definition: rocin_block.h:73
std::string m_name
Grid name &quot;:st?:*&quot;, &quot;:t3:*&quot;, &quot;:B8:*&quot;, etc.
Definition: rocin_block.h:72
int32 m_size[3]
Grid dimensions (structured only).
Definition: rocin_block.h:71
int32 m_index
HDF4 dataset index of conn table (unstr only).
Definition: rocin_block.h:75
GridInfo_HDF4 ( std::string  name,
int  ne,
int  ng,
int32  i 
)
inline

Constructor for quick initialization. Use for unstructured grids.

Definition at line 67 of file rocin_block.h.

References m_size.

68  : m_name(name), m_numElements(ne), m_numGhostElements(ng), m_index(i)
69  { m_size[0] = 0; m_size[1] = 0; m_size[2] = 0; }
int m_numGhostElements
Number of ghost elements in a mesh.
Definition: rocin_block.h:74
blockLoc i
Definition: read.cpp:79
int m_numElements
Number of elements in a mesh.
Definition: rocin_block.h:73
std::string m_name
Grid name &quot;:st?:*&quot;, &quot;:t3:*&quot;, &quot;:B8:*&quot;, etc.
Definition: rocin_block.h:72
int32 m_size[3]
Grid dimensions (structured only).
Definition: rocin_block.h:71
int32 m_index
HDF4 dataset index of conn table (unstr only).
Definition: rocin_block.h:75

Member Data Documentation

int32 m_index

HDF4 dataset index of conn table (unstr only).

Definition at line 75 of file rocin_block.h.

std::string m_name

Grid name ":st?:*", ":t3:*", ":B8:*", etc.

Definition at line 72 of file rocin_block.h.

Referenced by GridInfo_HDF4().

int m_numElements

Number of elements in a mesh.

Definition at line 73 of file rocin_block.h.

int m_numGhostElements

Number of ghost elements in a mesh.

Definition at line 74 of file rocin_block.h.

int32 m_size[3]

Grid dimensions (structured only).

Definition at line 71 of file rocin_block.h.

Referenced by GridInfo_HDF4().


The documentation for this struct was generated from the following file: