Package solvcon :: Package kerpak :: Module cuse :: Class CuseSolver
[hide private]
[frames] | no frames]

Class CuseSolver

source code

       object --+        
                |        
solver.BaseSolver --+    
                    |    
   solver.BlockSolver --+
                        |
                       CuseSolver
Known Subclasses:

The base solver class for second-order, multi-dimensional CESE code with CUDA enabled.

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
 
bind(self)
Bind all the boundary condition objects.
source code
 
unbind(self)
Unbind all the boundary condition objects.
source code
 
init(self, **kw)
Check and initialize BCs.
source code
 
boundcond(self)
Update the boundary conditions.
source code
 
locate_point(self, *args)
Locate the cell index where the input coordinate is.
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
 
calccfl(self, worker=None) source code
 
calcdsoln(self, worker=None) source code
 
ibcdsoln(self, worker=None) source code
 
bcdsoln(self, worker=None) source code

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

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_mcu = None
ctypes library for physical model on GPU.
  __clib_cuse_c = {2: <CDLL '/home/yungyuc/work/coding/solvcon/l...
  __clib_cuse_cu = {2: None, 3: None}
  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.
  ncuth
number of thread per block for CUDA.
  ocfl
original CFL number.
  omegamin
the lower bound of omega.
  omeganame
name of omega function; default scale.
  omegascale
scaling of omega.
  scu
CUDA wrapper.
  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: bclist, grpnames, ibclist, ibcthread, ngroup, nsvr, svrn

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

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)

bind(self)

source code 

Bind all the boundary condition objects.

Returns:
nothing
Overrides: solver.BaseSolver.bind
(inherited documentation)

unbind(self)

source code 

Unbind all the boundary condition objects.

Overrides: gendata.unbind
(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)

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_cuse_c

Value:
{2: <CDLL '/home/yungyuc/work/coding/solvcon/lib/libsc_cuse2d_c.so', h\
andle 32f2180 at 325fd90>,
 3: <CDLL '/home/yungyuc/work/coding/solvcon/lib/libsc_cuse3d_c.so', h\
andle 32f3070 at 325fdd0>}

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_cuse_c

Get Method:
unreachable._clib_cuse_c(self)

_clib_cuse_cu

Get Method:
unreachable._clib_cuse_cu(self)