Chi-Tech
test_framework_tutorials_fv_test2_lua.h
Go to the documentation of this file.
1
/** \page test_framework_tutorials_fv_test2_lua test/framework/tutorials/fv_test2.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
17
({
18
node_sets = {nodes,nodes}
19
})
20
chi_mesh.MeshGenerator.Execute(meshgen1)
21
22
--############################################### Set Material IDs
23
chiVolumeMesherSetMatIDToAll(0)
24
25
chi_unit_sim_tests.chiSimTest02_FV();
26
chiMPIBarrier()
27
if (chi_location_id == 0) then
28
os.execute("rm CodeTut2_FV*")
29
end\endcode
30
*/
31
32
doc
generated_files
test
framework
tutorials
test_framework_tutorials_fv_test2_lua.h
Generated by
1.9.3