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

Go to the source code of this file.

Namespaces

 utest-mesh-slice
 

Variables

tuple env = cf.Core.environment()
 
tuple root = cf.Core.root()
 
tuple source_domain = root.create_component('SourceDomain', 'cf3.mesh.Domain')
 
tuple target_domain = root.create_component('TargetDomain', 'cf3.mesh.Domain')
 
tuple source_mesh = source_domain.create_component('sourcemesh','cf3.mesh.Mesh')
 
int h = 1
 
int div = 2
 
tuple blocks = root.create_component('model', 'cf3.mesh.BlockMesh.BlockArrays')
 
int grading = 20
 
int y_segs = 64
 
int x_size = 4
 
int z_size = 2
 
int x_segs = 32
 
int z_segs = 32
 
tuple points = blocks.create_points(dimensions = 2, nb_points = 6)
 
tuple block_nodes = blocks.create_blocks(2)
 
tuple block_subdivs = blocks.create_block_subdivisions()
 
tuple gradings = blocks.create_block_gradings()
 
tuple left_patch = blocks.create_patch_nb_faces(name = 'left', nb_faces = 2)
 
tuple bottom_patch = blocks.create_patch_nb_faces(name = 'bottom', nb_faces = 1)
 
tuple top_patch = blocks.create_patch_nb_faces(name = 'top', nb_faces = 1)
 
tuple right_patch = blocks.create_patch_nb_faces(name = 'right', nb_faces = 2)
 
 source_coords = source_mesh.geometry.coordinates
 
tuple testfield = source_mesh.geometry.create_field(name = 'test', variables = 'testx,testy')
 
tuple target_mesh = target_domain.create_component('targetmesh','cf3.mesh.Mesh')
 
tuple generator = target_domain.create_component('Generator', 'cf3.mesh.GeneratePlane3D')
 
tuple interpolator = root.create_component('Interpolator', 'cf3.mesh.actions.MeshInterpolator')
 
 tgt_coords = target_mesh.geometry.coordinates
 
 tgt_test = target_mesh.geometry.test
 
 tgt_ranks = target_mesh.geometry.children.rank
 
tuple my_rank = cf.Core.rank()
 
Send comments to:
COOLFluiD Web Admin