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