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
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
17({
18 node_sets = {nodes,nodes}
19})
20chi_mesh.MeshGenerator.Execute(meshgen1)
21
22--############################################### Set Material IDs
23chiVolumeMesherSetMatIDToAll(0)
24
25chi_unit_sim_tests.chiSimTest02_FV();
26chiMPIBarrier()
27if (chi_location_id == 0) then
28 os.execute("rm CodeTut2_FV*")
29end\endcode
30*/
31
32