Chi-Tech
test_framework_tutorials_tutorial_91a_pwld_lua.h
Go to the documentation of this file.
1/** \page test_framework_tutorials_tutorial_91a_pwld_lua test/framework/tutorials/tutorial_91a_pwld.lua
2\ingroup LuaInputExamples
3
4\code
5--############################################### Setup mesh
6nodes={}
7N=25
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
22
23chi_unit_tests.chiSimTest91_PWLD();
24chiMPIBarrier()
25if (chi_location_id == 0) then
26 os.execute("rm SimTest_91*")
27end
28
29--[0] Iteration 0 1.000e+00
30--[0] Iteration 1 2.016e+02
31--[0] Iteration 2 1.941e+00
32--[0] Iteration 3 1.294e+00
33--[0] Iteration 4 3.890e-01
34--[0] Iteration 5 2.887e-02
35--[0] Iteration 6 1.239e-03
36--[0] Iteration 7 4.076e-05
37--[0] Iteration 8 1.119e-06
38--[0] Iteration 9 2.955e-08
39\endcode
40*/
41
42