Package solvcon :: Package kerpak :: Module cese :: Class CeseSolver
[hide private]
[frames] | no frames]

Class CeseSolver

source code


The base solver class for multi-dimensional CESE code.

Nested Classes [hide private]
  _exedatatype_
Data structure to interface with C.

Inherited from solver.BaseSolver: __metaclass__

Instance Methods [hide private]
 
__init__(self, blk, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
locate_point(self, *args) source code
 
init(self, **kw)
Check and initialize BCs.
source code
 
boundcond(self)
Update the boundary conditions.
source code
 
update(self, worker=None) source code
 
ibcam(self, worker=None) source code
 
calcsolt(self, worker=None) source code
 
calcsoln(self, worker=None) source code
 
ibcsoln(self, worker=None) source code
 
bcsoln(self, worker=None) source code
tuple
calccfl(self, worker=None)
Returns: mincfl, maxcfl, number of tuned CFL, accumulated number of tuned CFL.
source code
 
calcdsoln(self, worker=None) source code
 
ibcdsoln(self, worker=None) source code
 
bcdsoln(self, worker=None) source code

Inherited from solver.BlockSolver: bind, call_non_interface_bc, exchangeibc, init_exchange, pull, pullank, pullibc, push, pushibc, remote_setattr, unbind

Inherited from solver.BaseSolver: dump, exhaust, final, march, postloop, preloop, provide

Inherited from solver.BaseSolver (private): _set_time, _tcall

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

Static Methods [hide private]

Inherited from solver.BaseSolver: detect_ncore

Class Variables [hide private]
  _interface_init_ = ['cecnd', 'cevol']
list of attributes (arrays) to be exchanged on interface when initialized.
  _solution_array_ = ['sol', 'soln', 'dsol', 'dsoln']
  _gdlen_ = None
length per group data.
  _jacofunc_ = None
ctypes function to Jacobian calculator.
  __clib_cese = {2: <CDLL '/var/lib/buildbot/solvcon/doc/build/l...
  MMNAMES = ['update', 'ibcam', 'calcsolt', 'calcsoln', 'ibcsoln...

Inherited from solver.BlockSolver: CLMFC, CLMND, FCMND

Inherited from solver.BaseSolver: MESG_FILENAME_DEFAULT, _pointers_

Inherited from solver.BaseSolver (private): _clib_solve

Instance Variables [hide private]
  alpha
parameter to the weighting function.
  amsca
Parameter scalar array.
  amvec
Parameter vector array.
  cecnd
solution points for CCEs and BCEs.
  cevol
CCE and BCE volumes.
  cfl
CFL number.
  cnbfac
factor to use BCE centroid, othersize midpoint; 0 off, 1 on.
  debug
flag for debugging.
  diffname
name of gradient calculation function; tau is default, omega is selectable.
  dsol
current gradient of solution.
  dsoln
next gradient of solution.
  grpda
group data.
  ocfl
original CFL number.
  omegamin
the lower bound of omega.
  omeganame
name of omega function; default scale.
  omegascale
scaling of omega.
  sftfac
factor to shift gradient shape; 0 off, 1 on.
  sol
current solution.
  soln
next solution.
  solt
temporal diffrentiation of solution.
  taumax
the upper bound of tau.
  taumin
the lower bound of tau.
  tauname
name of tau function; default linear.
  tauscale
scaling of tau.
  taylor
factor for Taylor's expansion; 0 off, 1 on.

Inherited from solver.BlockSolver: all_simplex, bclist, grpnames, ibclist, ibcthread, ngroup, nsvr, svrn, use_incenter

Properties [hide private]
  gdlen
Length per group data.
  nsca
  nvec
  _clib_cese

Inherited from solver.BlockSolver: is_bound, is_unbound, ust

Inherited from solver.BaseSolver: fpdtype, fpdtypestr

Inherited from solver.BaseSolver (private): _clib_solvcon

Inherited from object: __class__

Method Details [hide private]

__init__(self, blk, *args, **kw)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

init(self, **kw)

source code 

Check and initialize BCs.

Overrides: solver.BaseSolver.init

boundcond(self)

source code 

Update the boundary conditions.

Returns:
nothing.
Overrides: solver.BlockSolver.boundcond
(inherited documentation)

calccfl(self, worker=None)

source code 
Returns: tuple
mincfl, maxcfl, number of tuned CFL, accumulated number of tuned CFL.

Class Variable Details [hide private]

_gdlen_

length per group data. Must be overridden.
Value:
None

_jacofunc_

ctypes function to Jacobian calculator. Must be overridden.
Value:
None

__clib_cese

Value:
{2: <CDLL '/var/lib/buildbot/solvcon/doc/build/lib/libsc_cese2d.so', h\
andle 2993ef0 at 2943a90>,
 3: <CDLL '/var/lib/buildbot/solvcon/doc/build/lib/libsc_cese3d.so', h\
andle 2994a30 at 2943b10>}

MMNAMES

Value:
['update',
 'ibcam',
 'calcsolt',
 'calcsoln',
 'ibcsoln',
 'bcsoln',
 'calccfl',
 'calcdsoln',
...

Property Details [hide private]

gdlen

Length per group data.

Get Method:
unreachable.gdlen(self) - Length per group data.

nsca

Get Method:
unreachable.nsca(self)

nvec

Get Method:
unreachable.nvec(self)

_clib_cese

Get Method:
unreachable._clib_cese(self)