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
6
nodes={}
7
N=100
8
L=2.0
9
xmin = -L/2
10
dx = L/N
11
for i=1,(N+1) do
12
k=i-1
13
nodes[i] = xmin + k*dx
14
end
15
16
meshgen1 = chi_mesh.OrthogonalMeshGenerator.Create({ node_sets = {nodes,nodes} })
17
chi_mesh.MeshGenerator.Execute(meshgen1)
18
19
--############################################### Set Material IDs
20
chiVolumeMesherSetMatIDToAll(0)
21
22
chi_unit_sim_tests.chiSimTest03_PWLC();
23
chiMPIBarrier()
24
if (chi_location_id == 0) then
25
os.execute("rm CodeTut3_PWLC*")
26
end\endcode
27
*/
28
29
doc
generated_files
test
framework
tutorials
test_framework_tutorials_pwlc_test1_lua.h
Generated by
1.9.3