Chi-Tech
doc_BooleanLogicalVolume.h
Go to the documentation of this file.
1
/**
2
\addtogroup chi_mesh__BooleanLogicalVolume
3
## Additional Example A
4
The code below defines a logical volume that is within logical volume 1 but
5
outside logical volume 2
6
\code
7
chi_mesh.BooleanLogicalVolume.Create
8
({
9
params = {{true, lv1}, {false, lv2}}
10
})
11
\endcode
12
13
## Additional Example B
14
\code
15
chiMeshHandlerCreate()
16
17
mesh={}
18
N=40
19
L=5
20
xmin = -L/2
21
dx = L/N
22
for i=1,(N+1) do
23
k=i-1
24
mesh[i] = xmin + k*dx
25
end
26
chiMeshCreateUnpartitioned3DOrthoMesh(mesh,mesh,mesh)
27
chiVolumeMesherExecute();
28
29
lv1 = chi_mesh.SphereLogicalVolume.Create({r = 1.3, x=1.0, y=-1.0, z=2.0})
30
31
lv2 = chi_mesh.RCCLogicalVolume.Create({r = 1.3,
32
x0=-0.8, y0=-0.8, z0=-1.5,
33
vx=1.0, vy=1.0, vz=3.0})
34
lv3 = chi_mesh.BooleanLogicalVolume.Create
35
({
36
parts = { { op=true, lv=lv2 },
37
{ op=false, lv=lv1 } }
38
})
39
chiVolumeMesherSetProperty(MATID_FROMLOGICAL, lv3, 1)
40
41
chiMeshHandlerExportMeshToVTK("lv_boolean_test1")
42
\endcode
43
44
\image html framework/chi_mesh/LogicalVolume/lv_boolean_test1.png width=500px
45
*/
framework
mesh
LogicalVolume
doc
doc_BooleanLogicalVolume.h
Generated by
1.9.3