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

Go to the source code of this file.

Namespaces

 atest-blockmesh-multiregion
 

Variables

tuple root = cf.Core.root()
 
tuple env = cf.Core.environment()
 
int x_parts = 4
 
int y_parts = 2
 
int z_parts = 2
 
int step_length = 10
 
float step_height = 4.9e-3
 
float channel_height = 5.2e-3
 
int channel_length = 150
 
float top_grading = 0.2
 
float bottom_grading = 0.2
 
float step_x_grading = 0.8
 
float channel_x_grading = 1.5
 
int step_x_segs = 20
 
int step_y_segs = 11
 
int channel_x_segs = 180
 
int channel_y_segs = 9
 
tuple blocks = root.create_component('model', 'cf3.mesh.BlockMesh.BlockArrays')
 
tuple points = blocks.create_points(dimensions = 2, nb_points = 13)
 
tuple block_nodes = blocks.create_blocks(6)
 
list y_segs = [int(math.ceil(step_y_segs/2.)), int(math.floor(step_y_segs/2.)), int(math.floor(channel_y_segs/2.)), int(math.ceil(channel_y_segs/2.))]
 
tuple block_subdivs = blocks.create_block_subdivisions()
 
tuple gradings = blocks.create_block_gradings()
 
tuple inlet_patch = blocks.create_patch_nb_faces(name = 'inlet', nb_faces = 2)
 
tuple step_top = blocks.create_patch_nb_faces(name = 'step_top', nb_faces = 1)
 
tuple step_front = blocks.create_patch_nb_faces(name = 'step_front', nb_faces = 2)
 
tuple top_patch = blocks.create_patch_nb_faces(name = 'top', nb_faces = 2)
 
tuple bottom_patch = blocks.create_patch_nb_faces(name = 'bottom', nb_faces = 1)
 
tuple outlet_patch = blocks.create_patch_nb_faces(name = 'outlet', nb_faces = 4)
 
tuple mesh = root.create_component('Mesh', 'cf3.mesh.Mesh')
 
Send comments to:
COOLFluiD Web Admin