Chi-Tech
test_framework_tutorials_tutorial_06_wdd_lua.h
Go to the documentation of this file.
1/** \page test_framework_tutorials_tutorial_06_wdd_lua test/framework/tutorials/tutorial_06_wdd.lua
2\ingroup LuaInputExamples
3
4\code
5--############################################### Setup mesh
6if (nmesh==nil) then nmesh = 10 end
7
8nodes={}
9N=nmesh
10L=2.0
11xmin = -L/2
12dx = L/N
13for i=1,(N+1) do
14 k=i-1
15 nodes[i] = xmin + k*dx
16end
17
18meshgen1 = chi_mesh.OrthogonalMeshGenerator.Create({ node_sets = {nodes,nodes} })
19chi_mesh.MeshGenerator.Execute(meshgen1)
20
21--############################################### Set Material IDs
22chiVolumeMesherSetMatIDToAll(0)
23
24chi_unit_testsB.chiSimTest06_WDD();
25chiMPIBarrier()
26if (chi_location_id == 0) then
27 os.execute("rm SimTest_06*")
28end\endcode
29*/
30
31