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