Package solvcon :: Module case :: Class BlockCase
[hide private]
[frames] | no frames]

Class BlockCase

source code

object --+            
         |            
      dict --+        
             |        
      CaseInfo --+    
                 |    
          BaseCase --+
                     |
                    BlockCase
Known Subclasses:

Base class for multi-dimensional cases using block.

Nested Classes [hide private]

Inherited from CaseInfo: __metaclass__

Instance Methods [hide private]
new empty dictionary

__init__(self, **kw)
Initiailize the basic case.
source code
 
dump(self)
Dump case and remote solver objects for later restart.
source code
 
cleanup(self, signum=None, frame=None) source code
 
init(self, level=0)
Load block and initialize solver from the geometry information in the block and conditions in the self case.
source code
solvcon.block.Block
load_block(self)
Return a block for init.
source code
dict
make_solver_keywords(self)
Return keywords to initialize solvers.
source code
 
_local_init_solver(self)
Returns: nothing
source code
 
_local_bind_solver(self)
Returns: nothing
source code
 
_remote_init_solver(self)
Returns: nothing
source code
 
_remote_load_solver(self)
Returns: nothing
source code
solvcon.rpc.Dealer
_create_workers(self)
Make dealer and create workers for the dealer.
source code
 
_get_profiler_data(self, iblk) source code
 
_create_workers_local(self, dealer, nblk) source code
 
_create_workers_remote(self, dealer, nblk) source code
 
_interconnect(self)
Make interconnections for distributed solver objects.
source code
 
_init_interface(self)
Exchange meta data.
source code
 
_exchange_metric(self)
Exchange metric data for solver.
source code
 
run(self, level=0)
Run the simulation case; time marching.
source code
 
_run_provide(self) source code
 
_run_preloop(self) source code
 
_run_march(self) source code
 
_run_postloop(self) source code
 
_run_exhaust(self) source code
 
_run_final(self) source code

Inherited from BaseCase (private): _dynamic_execute, _log_end, _log_start

Inherited from CaseInfo: __getattr__, __setattr__

Inherited from CaseInfo (private): _set_through

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from BaseCase: register_arrangement

Class Variables [hide private]
  defdict = {'condition.bcmap': None, 'condition.bcmod': None, '...

Inherited from BaseCase: CSEFN_DEFAULT

Inherited from CaseInfo: arrangements

Inherited from dict: __hash__

Instance Variables [hide private]
  pythonpaths
extra python paths.

Inherited from BaseCase: runhooks

Properties [hide private]
int is_parallel
Determine if self should do parallel or not.

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

Initiailize the basic case. Set through keyword parameters.

Parameters:
  • _defdict - customized defdict; internal use only.
Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

dump(self)

source code 

Dump case and remote solver objects for later restart.

Returns:
nothing

cleanup(self, signum=None, frame=None)

source code 
Overrides: BaseCase.cleanup

init(self, level=0)

source code 

Load block and initialize solver from the geometry information in the block and conditions in the self case. If parallel run is specified (through domaintype), split the domain and perform corresponding tasks.

Parameters:
  • level - run level; higher level does less work.
Returns:
nothing.
Overrides: BaseCase.init

load_block(self)

source code 

Return a block for init.

Returns: solvcon.block.Block
a block object.

make_solver_keywords(self)

source code 

Return keywords to initialize solvers.

Returns: dict
keywords

_local_init_solver(self)

source code 
Returns:
nothing

_local_bind_solver(self)

source code 
Returns:
nothing

_remote_init_solver(self)

source code 
Returns:
nothing

_remote_load_solver(self)

source code 
Returns:
nothing

_create_workers(self)

source code 

Make dealer and create workers for the dealer.

Returns: solvcon.rpc.Dealer
worker manager.

_interconnect(self)

source code 

Make interconnections for distributed solver objects.

Returns:
nothing

_init_interface(self)

source code 

Exchange meta data.

Returns:
nothing

_exchange_metric(self)

source code 

Exchange metric data for solver.

Returns:
nothing

run(self, level=0)

source code 

Run the simulation case; time marching.

Parameters:
  • level (int) - run level; higher level does less work.
Returns:
nothing.
Overrides: BaseCase.run

Class Variable Details [hide private]

defdict

Value:
{'condition.bcmap': None,
 'condition.bcmod': None,
 'condition.mtrllist': <type 'list'>,
 'dynamic.bakfn': 'solvcon.input.bak',
 'dynamic.inputfn': 'solvcon.input',
 'dynamic.preserve': False,
 'execution.batch': <class 'solvcon.batch.Batch'>,
 'execution.fpdtype': 'float64',
...

Property Details [hide private]

is_parallel

Determine if self should do parallel or not.

Get Method:
unreachable.is_parallel(self) - Determine if self should do parallel or not.
Type:
int