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
6
nodes={}
7
N=25
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
23
chi_unit_tests.chiSimTest91_PWLD();
24
chiMPIBarrier()
25
if (chi_location_id == 0) then
26
os.execute("rm SimTest_91*")
27
end
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
doc
generated_files
test
framework
tutorials
test_framework_tutorials_tutorial_91a_pwld_lua.h
Generated by
1.9.3