COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
utest-mesh-cf3mesh-merge.py
Go to the documentation of this file.
1 import sys
2 import coolfluid as cf
3 
4 env = cf.Core.environment()
5 env.log_level = 4
6 env.only_cpu0_writes = True
7 
8 root = cf.Core.root()
9 domain = root.create_component('Domain', 'cf3.mesh.Domain')
10 
11 reader = domain.create_component('CF3MeshReader', 'cf3.mesh.cf3mesh.Reader')
12 reader.mesh = domain.create_component('ReadBackMesh','cf3.mesh.Mesh')
13 reader.file = cf.URI('cf3test.cf3mesh')
14 reader.execute()
15 
16 reader.mesh.print_tree()
17 
18 domain.write_mesh(cf.URI('cf3test-merged.pvtu'))
Send comments to:
COOLFluiD Web Admin