Package solvcon :: Module hook :: Class PVtkHook
[hide private]
[frames] | no frames]

Class PVtkHook

source code


Anchor dropper and wrapping PVTP file writer. Note, fpdtype should be set to single precision or parallel VTP file could be in wrong format.

Instance Methods [hide private]
 
__init__(self, cse, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
drop_anchor(self, svr)
Drop the anchor(s) to the solver object.
source code
 
_write(self, istep) source code
 
preloop(self)
Things to do before the time-marching loop.
source code
 
postmarch(self)
Things to do after the time march for a specific time step.
source code
 
postloop(self)
Things to do after the time-marching loop.
source code

Inherited from BlockHook (private): _collect_interior, _spread_interior

Inherited from Hook: premarch

Inherited from Hook (private): _depend, _makedir

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

Static Methods [hide private]

Inherited from Hook (private): _deliver_anchor

Instance Variables [hide private]
  altdir
the alternate directory to save the VTK files.
  altsym
the symbolic link in basedir pointing to the alternate directory to save the VTK files.
  anames
the arrays in der of solvers to be saved.
  fpdtype
string for floating point data type (in numpy convention).
  name
name of this VTK operation set; there can be multiple operation sets attaching on a Case object; default is None.
  pextmpl
template for the extension of split VTK file name.

Inherited from Hook: cse, info, kws, psteps

Properties [hide private]

Inherited from BlockHook: blk

Inherited from object: __class__

Method Details [hide private]

__init__(self, cse, **kw)
(Constructor)

source code 

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

Parameters:
  • cse - Case object.
Overrides: object.__init__
(inherited documentation)

drop_anchor(self, svr)

source code 

Drop the anchor(s) to the solver object.

Parameters:
  • svr - the solver object on which the anchor(s) is dropped.
Returns:
nothing
Overrides: Hook.drop_anchor
(inherited documentation)

preloop(self)

source code 

Things to do before the time-marching loop.

Overrides: Hook.preloop
(inherited documentation)

postmarch(self)

source code 

Things to do after the time march for a specific time step.

Overrides: Hook.postmarch
(inherited documentation)

postloop(self)

source code 

Things to do after the time-marching loop.

Overrides: Hook.postloop
(inherited documentation)

Instance Variable Details [hide private]

anames

the arrays in der of solvers to be saved. Format is (name, inder, ndim), (name, inder, ndim) ... For ndim > 0 the array is a spatial vector, for ndim == 0 a simple scalar, and ndim < 0 a list of scalar.