Package solvcon :: Package io :: Module gambit :: Class BoundaryCondition
[hide private]
[frames] | no frames]

Class BoundaryCondition

source code


Hold boundary condition values.

Instance Methods [hide private]
 
__init__(self, data=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
_parse(self, data)
Parse given data string to boundary condition set.
source code
solvcon.boundcond.BC
tobc(self, blk)
Extract gambit boundary condition information from self into BC object.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
dict CLFCS_RMAP = {1: [1, 2], 2: [1, 2, 3, 4], 3: [1, 2, 3], 4: [5,...
map clfcs definition back from block object to neutral object.
Instance Variables [hide private]
numpy.ndarray ibcode
1D array of boundary condition code.
int itype
type of data (0: nodal, 1: elemental).
str name
name of boundary condition.
int nentry
number of entry (nodes or elements/cells).
int nvalues
number of values for each data record.
numpy.ndarray values
array of values attached to each record.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

_parse(self, data)

source code 

Parse given data string to boundary condition set. Set all instance variables.

Parameters:
  • data (str) - string data for boundary condition set.
Returns:
nothing

tobc(self, blk)

source code 

Extract gambit boundary condition information from self into BC object. Only process element/cell type of (gambit) boundary condition, and return None while nodal BCs encountered.

Parameters:
  • blk (solvcon.block.Block) - Block object for reference, nothing will be altered.
Returns: solvcon.boundcond.BC
generic BC object.

Class Variable Details [hide private]

CLFCS_RMAP

map clfcs definition back from block object to neutral object.
Type:
dict
Value:
{1: [1, 2],
 2: [1, 2, 3, 4],
 3: [1, 2, 3],
 4: [5, 2, 6, 4, 1, 3],
 5: [1, 2, 4, 3],
 6: [4, 5, 3, 1, 2],
 7: [5, 2, 3, 4, 1]}