COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Namespaces | Functions | Variables
utest-solver-actions-restart.py File Reference

Go to the source code of this file.

Namespaces

 utest-solver-actions-restart
 

Functions

def copy_and_reset (source, domain)
 

Variables

tuple env = cf.Core.environment()
 
tuple root = cf.Core.root()
 
tuple domain = root.create_component('Domain', 'cf3.mesh.Domain')
 
tuple mesh = domain.create_component('OriginalMesh','cf3.mesh.Mesh')
 
tuple blocks = root.create_component('model', 'cf3.mesh.BlockMesh.BlockArrays')
 
tuple points = blocks.create_points(dimensions = 2, nb_points = 4)
 
tuple block_nodes = blocks.create_blocks(1)
 
tuple block_subdivs = blocks.create_block_subdivisions()
 
tuple gradings = blocks.create_block_gradings()
 
tuple link_horizontal = domain.create_component('LinkHorizontal', 'cf3.mesh.actions.LinkPeriodicNodes')
 
tuple make_par_data = root.create_component('MakeParData', 'cf3.solver.actions.ParallelDataToFields')
 
tuple time = domain.create_component('Time', 'cf3.solver.Time')
 
tuple restart_file = cf.URI('restart-test.cf3restart')
 
tuple writer = domain.create_component('Writer', 'cf3.solver.actions.WriteRestartFile')
 
tuple ref_node_gids = copy_and_reset(mesh.geometry.node_gids, domain)
 
tuple ref_element_gids = copy_and_reset(mesh.elems_P0.element_gids, domain)
 
tuple reader = domain.create_component('Reader', 'cf3.solver.actions.ReadRestartFile')
 
tuple differ = domain.create_component('Differ', 'cf3.common.ArrayDiff')
 
Send comments to:
COOLFluiD Web Admin