Commit b6c0e7b8 authored by Asutosh Padhy's avatar Asutosh Padhy
Browse files

Folder restructure

parent ec98e8cf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
geometry:
    film_length : 1.5 #x length of film
    film_height : 1.5 # y height of film
    film_length : 0.5 #x length of film
    film_height : 0.5 # y height of film
    film_width : 1.5 #z width of film
    mesh: 0.5               #Mesh size in mm
    El_type: "C3D8" #Element type
@@ -45,4 +45,4 @@ loading:
    init_temp: 0.0
    steps: 2  #Number of steps
    type: 1 #1- Force, 2 - Displacement, 3 - Temperature
    value: 150000000 #X direction
    value: 1500000 #X direction
+7 −3
Original line number Diff line number Diff line
@@ -142,6 +142,10 @@ def edge_seeding(geometry):
    h_div=int(round(h/mesh,2))
    w_div=int(round(w/mesh,2))

    print("Length", l_div)
    print("Width", w_div)
    print("Height", h_div)

    n_total= int((l_div+1)*(w_div+1)*(h_div+1))
    el_total=l_div*w_div*h_div

@@ -153,9 +157,9 @@ def edge_seeding(geometry):
    N_index=1
    El=0

    for y in range(0,h_div):
    for x in range(0,l_div):
        for z in range(0,w_div):
            for y in range(0,h_div):
                coord=[[mesh*x,mesh*y,mesh*z],[mesh*(x+1),mesh*y,mesh*z],[mesh*(x+1),mesh*(y+1),mesh*z],
                             [mesh*x,mesh*(y+1),mesh*z],[mesh*x,mesh*y,mesh*(z+1)],[mesh*(x+1),mesh*y,mesh*(z+1)],
                             [mesh*(x+1),mesh*(y+1),mesh*(z+1)],[mesh*x,mesh*(y+1),mesh*(z+1)]]
Loading