Chi-Tech
test_framework_chi_mesh_ReadWavefrontObj1_lua.h
Go to the documentation of this file.
1/** \page test_framework_chi_mesh_ReadWavefrontObj1_lua test/framework/chi_mesh/ReadWavefrontObj1.lua
2\ingroup LuaInputExamples
3
4\code
5-- 2D Transport test with Vacuum and Incident-isotropic BC.
6-- SDM: PWLD
7-- Test: Max-value=0.51187 and 1.42458e-03
8num_procs = 4
9--Unstructured mesh
10
11
12
13
14--############################################### Check num_procs
15if (check_num_procs==nil and chi_number_of_processes ~= num_procs) then
16 chiLog(LOG_0ERROR,"Incorrect amount of processors. " ..
17 "Expected "..tostring(num_procs)..
18 ". Pass check_num_procs=false to override if possible.")
19 os.exit(false)
20end
21
22--############################################### Setup mesh
23meshgen1 = chi_mesh.MeshGenerator.Create
24({
25 inputs =
26 {
27 chi_mesh.FromFileMeshGenerator.Create
28 ({
29 filename = "ReactorPinMesh.obj"
30 })
31 }
32})
33chi_mesh.MeshGenerator.Execute(meshgen1)
34--############################################### Exports
35if master_export == nil then
36 chiMeshHandlerExportMeshToVTK("ZObjMesh")
37end
38\endcode
39*/
40
41