Provide metric and connectivity information for unstructured-mesh
block. In terms of APIs in the Block class, to build a block requires the
following actions:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
calc_metric(self)
Calculate metrics including normal vector and area of faces, and
centroid coordinates and volume of cells. |
source code
|
|
|
|
build_interior(self)
Build all remaining connectivity information out of cell node
definition, and calculate metric. |
source code
|
|
|
|
build_boundary(self,
unspec_type=None,
unspec_name='unspecified')
Build boundary faces according to face connectivity. |
source code
|
|
|
|
|
|
tuple
|
|
|
|
_init_shared(self,
ngstnode,
ngstface,
ngstcell)
Allocate arrays to stored data both for ghost and real/interior
cells. |
source code
|
|
|
|
|
|
|
_reassign_interior(self,
ngstnode,
ngstface,
ngstcell)
Reassign interior data stored in standalone ndarray object to upper
portion of shared ndarray object. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
_fpdtype
dtype for the floating point data in the block instance.
|
|
|
bclist
list of associated BC objects.
|
|
|
blkn
serial number of the block.
|
|
|
bndfcs
list of BC faces, contains BC face index and BC class serial number,
respectively.
|
|
|
clcnd
Central coordinates of cell.
|
|
|
clfcs
List of faces in cell; arr[:,0] for the number.
|
|
|
clgrp
Group index of cell.
|
|
|
clnds
List of nodes in cell; arr[:,0] for the number.
|
|
|
cltpn
Type of cell.
|
|
|
clvol
Volume of cell.
|
|
|
fcara
Area of face.
|
|
|
fccls
Related cells for each face, contains belong, neibor (ghost as
negative), neiblk, and neibcl (cell index in neighboring block),
respectively.
|
|
|
fccnd
Central coordinates of face.
|
|
|
fcnds
List of nodes in face; arr[:,0] for the number.
|
|
|
fcnml
Unit-normal vector of face.
|
|
|
fctpn
Type of face.
|
|
|
grpnames
list of names of cell groups.
|
|
|
ndcrd
Node croodinate data.
|