IOSS 2.0
Loading...
Searching...
No Matches
Iocatalyst::BlockMesh Class Reference

#include <Iocatalyst_BlockMesh.h>

Collaboration diagram for Iocatalyst::BlockMesh:
[legend]

Classes

struct  Extent
struct  Partition
struct  Point

Public Types

using BlockConn = std::array<int, 8>
using IDList = std::vector<int>
using ID = unsigned int

Public Member Functions

 BlockMesh ()
 ~BlockMesh ()
void init (const Partition &part, const Extent &numBlocks, const Extent &origin)
const PartitiongetPartition () const
const ExtentgetOrigin () const
const ExtentgetExtents () const
const ExtentgetPartitionExtents () const
const ExtentgetPartitionStart () const
ID getID () const
bool isPartitionEmpty () const
int getNumBlocks () const
int getNumPartitionBlocks () const
IDList getPartitionBlockIDs () const
BlockConn getBlockConnectivityPointIDs (ID blockID) const
ID getGlobalIDForBlockID (ID blockID)
int getNumPoints () const
int getNumPartitionPoints () const
IDList getPartitionPointIDs () const
ID getPointIDfromCoords (unsigned int i, unsigned int j, unsigned int k) const
Point getPointCoordsForPointID (ID pointID) const
ID getGlobalIDForPointID (ID pointID)
void addTransientCellField (std::string f_name, double f_value)
void addTransientPointField (std::string f_name, double f_value)
std::map< std::string, double > * getTransientCellFieldMap ()
std::map< std::string, double > * getTransientPointFieldMap ()

Static Public Member Functions

static Extent getGlobalBlockExtents ()
static Extent getGlobalPointExtents ()
static Extent getCoordsForID (ID id, Extent bounds)
static ID getIDfromCoords (Extent coords, Extent bounds)

Static Public Attributes

static const unsigned int BLOCK_OFFSET = 0
static const unsigned int POINT_OFFSET = 1
static constexpr double BLOCK_LENGTH = 1.0
static const unsigned int I_GLOBAL = 1000
static const unsigned int J_GLOBAL = 1000
static const unsigned int K_GLOBAL = 1000

Private Member Functions

void splitBlock ()
void fillExtents (int *ext)
void setPartitionFromExtents (int ext[6])
void setPartitionEmpty ()
IDList getPartitionIDs (unsigned int offset) const
int getNumInPartition (unsigned int offset) const
int getNumInBlockMesh (unsigned int offset) const

Private Attributes

Partition partition
Extent origin
Extent extents
Extent partitionExtents
Extent partitionStart
Extent globalBlockExtents
ID id
std::map< std::string, double > transientCellFields
std::map< std::string, double > transientPointFields

Static Private Attributes

static ID _id = 1

Member Typedef Documentation

◆ BlockConn

using Iocatalyst::BlockMesh::BlockConn = std::array<int, 8>

◆ ID

using Iocatalyst::BlockMesh::ID = unsigned int

◆ IDList

using Iocatalyst::BlockMesh::IDList = std::vector<int>

Constructor & Destructor Documentation

◆ BlockMesh()

Iocatalyst::BlockMesh::BlockMesh ( )

◆ ~BlockMesh()

Iocatalyst::BlockMesh::~BlockMesh ( )

Member Function Documentation

◆ addTransientCellField()

void Iocatalyst::BlockMesh::addTransientCellField ( std::string f_name,
double f_value )

◆ addTransientPointField()

void Iocatalyst::BlockMesh::addTransientPointField ( std::string f_name,
double f_value )

◆ fillExtents()

void Iocatalyst::BlockMesh::fillExtents ( int * ext)
private

◆ getBlockConnectivityPointIDs()

BlockMesh::BlockConn Iocatalyst::BlockMesh::getBlockConnectivityPointIDs ( ID blockID) const

◆ getCoordsForID()

BlockMesh::Extent Iocatalyst::BlockMesh::getCoordsForID ( ID id,
Extent bounds )
static

◆ getExtents()

const Extent & Iocatalyst::BlockMesh::getExtents ( ) const
inline

◆ getGlobalBlockExtents()

Extent Iocatalyst::BlockMesh::getGlobalBlockExtents ( )
inlinestatic

◆ getGlobalIDForBlockID()

BlockMesh::ID Iocatalyst::BlockMesh::getGlobalIDForBlockID ( ID blockID)

◆ getGlobalIDForPointID()

BlockMesh::ID Iocatalyst::BlockMesh::getGlobalIDForPointID ( ID pointID)

◆ getGlobalPointExtents()

Extent Iocatalyst::BlockMesh::getGlobalPointExtents ( )
inlinestatic

◆ getID()

BlockMesh::ID Iocatalyst::BlockMesh::getID ( ) const

◆ getIDfromCoords()

BlockMesh::ID Iocatalyst::BlockMesh::getIDfromCoords ( Extent coords,
Extent bounds )
static

◆ getNumBlocks()

int Iocatalyst::BlockMesh::getNumBlocks ( ) const

◆ getNumInBlockMesh()

int Iocatalyst::BlockMesh::getNumInBlockMesh ( unsigned int offset) const
private

◆ getNumInPartition()

int Iocatalyst::BlockMesh::getNumInPartition ( unsigned int offset) const
private

◆ getNumPartitionBlocks()

int Iocatalyst::BlockMesh::getNumPartitionBlocks ( ) const

◆ getNumPartitionPoints()

int Iocatalyst::BlockMesh::getNumPartitionPoints ( ) const

◆ getNumPoints()

int Iocatalyst::BlockMesh::getNumPoints ( ) const

◆ getOrigin()

const Extent & Iocatalyst::BlockMesh::getOrigin ( ) const
inline

◆ getPartition()

const Partition & Iocatalyst::BlockMesh::getPartition ( ) const
inline

◆ getPartitionBlockIDs()

BlockMesh::IDList Iocatalyst::BlockMesh::getPartitionBlockIDs ( ) const

◆ getPartitionExtents()

const Extent & Iocatalyst::BlockMesh::getPartitionExtents ( ) const
inline

◆ getPartitionIDs()

BlockMesh::IDList Iocatalyst::BlockMesh::getPartitionIDs ( unsigned int offset) const
private

◆ getPartitionPointIDs()

BlockMesh::IDList Iocatalyst::BlockMesh::getPartitionPointIDs ( ) const

◆ getPartitionStart()

const Extent & Iocatalyst::BlockMesh::getPartitionStart ( ) const
inline

◆ getPointCoordsForPointID()

BlockMesh::Point Iocatalyst::BlockMesh::getPointCoordsForPointID ( ID pointID) const

◆ getPointIDfromCoords()

BlockMesh::ID Iocatalyst::BlockMesh::getPointIDfromCoords ( unsigned int i,
unsigned int j,
unsigned int k ) const

◆ getTransientCellFieldMap()

std::map< std::string, double > * Iocatalyst::BlockMesh::getTransientCellFieldMap ( )

◆ getTransientPointFieldMap()

std::map< std::string, double > * Iocatalyst::BlockMesh::getTransientPointFieldMap ( )

◆ init()

void Iocatalyst::BlockMesh::init ( const Partition & part,
const Extent & numBlocks,
const Extent & origin )

◆ isPartitionEmpty()

bool Iocatalyst::BlockMesh::isPartitionEmpty ( ) const

◆ setPartitionEmpty()

void Iocatalyst::BlockMesh::setPartitionEmpty ( )
private

◆ setPartitionFromExtents()

void Iocatalyst::BlockMesh::setPartitionFromExtents ( int ext[6])
private

◆ splitBlock()

void Iocatalyst::BlockMesh::splitBlock ( )
private

Member Data Documentation

◆ _id

BlockMesh::ID Iocatalyst::BlockMesh::_id = 1
staticprivate

◆ BLOCK_LENGTH

double Iocatalyst::BlockMesh::BLOCK_LENGTH = 1.0
staticconstexpr

◆ BLOCK_OFFSET

const unsigned int Iocatalyst::BlockMesh::BLOCK_OFFSET = 0
static

◆ extents

Extent Iocatalyst::BlockMesh::extents
private

◆ globalBlockExtents

Extent Iocatalyst::BlockMesh::globalBlockExtents
private

◆ I_GLOBAL

const unsigned int Iocatalyst::BlockMesh::I_GLOBAL = 1000
static

◆ id

ID Iocatalyst::BlockMesh::id
private

◆ J_GLOBAL

const unsigned int Iocatalyst::BlockMesh::J_GLOBAL = 1000
static

◆ K_GLOBAL

const unsigned int Iocatalyst::BlockMesh::K_GLOBAL = 1000
static

◆ origin

Extent Iocatalyst::BlockMesh::origin
private

◆ partition

Partition Iocatalyst::BlockMesh::partition
private

◆ partitionExtents

Extent Iocatalyst::BlockMesh::partitionExtents
private

◆ partitionStart

Extent Iocatalyst::BlockMesh::partitionStart
private

◆ POINT_OFFSET

const unsigned int Iocatalyst::BlockMesh::POINT_OFFSET = 1
static

◆ transientCellFields

std::map<std::string, double> Iocatalyst::BlockMesh::transientCellFields
private

◆ transientPointFields

std::map<std::string, double> Iocatalyst::BlockMesh::transientPointFields
private

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