COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
test
mesh
utest-mesh-generateline3d.py
Go to the documentation of this file.
1
import
coolfluid
as
cf
2
3
cf.env.log_level = 4
4
cf.env.assertion_throws =
False
5
6
domain = cf.root.create_component(
'Domain'
,
'cf3.mesh.Domain'
)
7
generator = domain.create_component(
'Generator'
,
'cf3.mesh.GenerateLine3D'
)
8
mesh = domain.create_component(
'Mesh'
,
'cf3.mesh.Mesh'
)
9
10
11
generator.mesh = mesh.uri()
12
generator.origin = [1., 2., 3.]
13
generator.end = [4., 5., 6.]
14
generator.segments = 10
15
generator.execute()
16
17
for
(x,y,z)
in
mesh.geometry.coordinates:
18
print
x, y, z
Generated on Sun Jun 14 2015 21:20:16 for COOLFluiD by
1.8.9.1
Send comments to:
COOLFluiD Web Admin