COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
utest-blockmesh-channelgenerator.py
Go to the documentation of this file.
1 import coolfluid as cf
2 import sys
3 
4 root = cf.Core.root()
5 env = cf.Core.environment()
6 
7 env.options().set('assertion_backtrace', False)
8 env.options().set('exception_backtrace', False)
9 env.options().set('regist_signal_handlers', False)
10 env.options().set('exception_log_level', 0)
11 #env.options().set('log_level', 4)
12 env.options().set('exception_outputs', False)
13 
14 model = root.create_component('model', 'cf3.solver.Model')
15 model.create_domain()
16 domain = model.get_child('Domain')
17 generator = domain.create_component('generator', 'cf3.mesh.BlockMesh.ChannelGenerator')
18 generator.options().set('mesh', cf.URI('//model/Domain/mesh'))
19 
20 generator.options().set('x_segments', 64)
21 generator.execute()
22 
23 domain.create_component('writer', 'cf3.mesh.VTKXML.Writer')
24 domain.write_mesh(cf.URI('utest-blockmesh-channelgenerator_output.pvtu'))
Send comments to:
COOLFluiD Web Admin