Chi-Tech
test/framework/tutorials/tutorial_06_wdd.lua
--############################################### Setup mesh
if (nmesh==nil) then nmesh = 10 end
nodes={}
N=nmesh
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_testsB.chiSimTest06_WDD();
if (chi_location_id == 0) then
os.execute("rm SimTest_06*")
end
virtual void Execute()
void chiVolumeMesherSetMatIDToAll(int material_id)
void chiMPIBarrier()
void Set(VecDbl &x, const double &val)