Content-Length: 229381 | pFad | http://github.com/katerinaziot/PM4Sand_drivers_auto/commit/27dc0a50250701a19d66fcaf5588c4082f9cafb2

67 fixed plotting stress paths of undrDSS · katerinaziot/PM4Sand_drivers_auto@27dc0a5 · GitHub
Skip to content

Commit

Permalink
fixed plotting stress paths of undrDSS
Browse files Browse the repository at this point in the history
tied with fixing DSS driver exporting 5 txt files
  • Loading branch information
katerinaziot authored Jul 4, 2022
1 parent 0477531 commit 27dc0a5
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions processing_plotting/plotting_all_undrained_cyclic_DSS.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,10 @@
alpha = extra[1][1:]
Ko = extra[2][2:]

#---- TEMPORARY FIX TO STRESS PATHS IN DRIVERS NOT STARTING AT 1 ------
# df = pd.read_table(file, header = 0,
# usecols = ['shear_strain', 'CSR', 'sigv/sigvo'],
# delim_whitespace=True, skiprows=lambda x: x > 3 and x % skip)

df = pd.read_table(file, header = 0,
usecols = ['shear_strain', 'CSR', 'sigv/sigvo'],
delim_whitespace=True, skiprows=range(1, 3))
#----------------------------------------------------------------------

usecols = ['shear_strain', 'CSR', 'sigv/sigvc'],
delim_whitespace=True, skiprows=lambda x: x > 3 and x % skip)

axs_row = alpha_dict[alpha]

df.plot(ax=axs[axs_row,0], x = 'shear_strain', y = 'CSR',
Expand All @@ -126,7 +120,7 @@
alpha = 1,
legend = False)

df.plot(ax=axs[axs_row,1], x = 'sigv/sigvo', y = 'CSR',
df.plot(ax=axs[axs_row,1], x = 'sigv/sigvc', y = 'CSR',
xlim = (0,1), color = "black",
linewidth = 1,
alpha = 1,
Expand Down Expand Up @@ -621,4 +615,4 @@
savefigname = "Fig4-11.png"
plt.savefig(savefigname, dpi = 600, bbox_inches = 'tight')
plt.show()
plt.close()
plt.close()

0 comments on commit 27dc0a5

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/katerinaziot/PM4Sand_drivers_auto/commit/27dc0a50250701a19d66fcaf5588c4082f9cafb2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy