Chi-Tech
test/framework/tutorials/tutorial_91a_pwld.lua
--############################################### Setup mesh
nodes={}
N=25
L=2.0
xmin = -L/2
dx = L/N
for i=1,(N+1) do
k=i-1
nodes[i] = xmin + k*dx
end
meshgen1 = chi_mesh.OrthogonalMeshGenerator.Create({ node_sets = {nodes,nodes} })
--############################################### Set Material IDs
chi_unit_tests.chiSimTest91_PWLD();
if (chi_location_id == 0) then
os.execute("rm SimTest_91*")
end
--[0] Iteration 0 1.000e+00
--[0] Iteration 1 2.016e+02
--[0] Iteration 2 1.941e+00
--[0] Iteration 3 1.294e+00
--[0] Iteration 4 3.890e-01
--[0] Iteration 5 2.887e-02
--[0] Iteration 6 1.239e-03
--[0] Iteration 7 4.076e-05
--[0] Iteration 8 1.119e-06
--[0] Iteration 9 2.955e-08
virtual void Execute()
void chiVolumeMesherSetMatIDToAll(int material_id)
void chiMPIBarrier()
void Set(VecDbl &x, const double &val)