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

Go to the source code of this file.

Namespaces

 utest-solver-actions-randomize
 

Variables

int Uc = 3
 
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 periodic_partitioner = domain.create_component('Partitioner', 'cf3.mesh.actions.PeriodicMeshPartitioner')
 
tuple link_horizontal = periodic_partitioner.create_link_periodic_nodes()
 
tuple link_vertical = periodic_partitioner.create_link_periodic_nodes()
 
tuple velocity = mesh.geometry.create_field(name = 'velocity', variables='Velocity[vector]')
 
list y = mesh.geometry.coordinates[i]
 
tuple randomizer = domain.create_component('Randomizer', 'cf3.solver.actions.RandomizeField')
 
tuple writer = domain.create_component('PVWriter', 'cf3.mesh.VTKXML.Writer')
 
Send comments to:
COOLFluiD Web Admin