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

Go to the source code of this file.

Namespaces

 utest-solver-actions-timeseries
 

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 time = domain.create_component('Time', 'cf3.solver.Time')
 
tuple series_writer = domain.create_component('SeriesWriter', 'cf3.solver.actions.TimeSeriesWriter')
 
tuple writer = series_writer.create_component('Writer', 'cf3.mesh.cf3mesh.Writer')
 
string file_template = 'timeseries-{iteration}-{time}.cf3mesh'
 
tuple advance_time = domain.create_component('AdvanceTime', 'cf3.solver.actions.AdvanceTime')
 
tuple reader = domain.create_component('Reader', 'cf3.mesh.cf3mesh.Reader')
 
tuple meshdiff = domain.create_component('MeshDiff', 'cf3.mesh.actions.MeshDiff')
 
tuple filename = file_template.format(time = float(i)*time.time_step, iteration = i)
 
Send comments to:
COOLFluiD Web Admin