Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 2424ef8

Browse files
committed
Update
1 parent 2da3825 commit 2424ef8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

ccm/bondbased1D.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ def plot(self):
188188

189189
if __name__=="__main__":
190190

191-
c = Compute(1/4)
191+
c = Compute(0.5)
192192
c.solve(1000000,1e-11)
193-
#c.plot()
193+
c.plot()

tensile/plot-tensile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def grayscale_cmap(cmap):
4040
nodes = []
4141

4242

43-
filehandler = open("bond-based-2d-tensile-"+str(h)+"-"+str(delta_factor)+"-"+str(iter)+"-displacement.npy", "rb")
43+
filehandler = open("../bond-based-2d-tensile-"+str(h)+"-"+str(delta_factor)+"-"+str(iter)+"-displacement.npy", "rb")
4444
uCurrent = np.load(filehandler, allow_pickle=True)
4545

46-
filehandler = open("bond-based-2d-tensile-"+str(h)+"-"+str(delta_factor)+"-"+str(iter)+"-damage.npy", "rb")
46+
filehandler = open("../bond-based-2d-tensile-"+str(h)+"-"+str(delta_factor)+"-"+str(iter)+"-damage.npy", "rb")
4747
damage = np.load(filehandler, allow_pickle=True)
4848

4949

@@ -81,7 +81,7 @@ def grayscale_cmap(cmap):
8181
plt.clf()
8282

8383
plt.figure(figsize=(20,1))
84-
plt.scatter(nodes[:,1],nodes[:,0],c=damage,cmap=grayscale_cmap(plt.get_cmap("viridis")))
84+
plt.scatter(nodes[:,1],nodes[:,0],c=damage,cmap="coolwarm",vmin=0,vmax=1.4)
8585
ax = plt.gca()
8686
ax.xaxis.tick_top()
8787
ax.xaxis.set_label_position('top')

0 commit comments

Comments
 (0)