Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix in variable density implementation #113

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified crevprop/__pycache__/crevasse.cpython-39.pyc
Binary file not shown.
Binary file modified crevprop/__pycache__/fracture.cpython-39.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions crevprop/crevasse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ def paterson_empirical_relation(self, z, C=0.02):
density as a function of depth in kg/m^3 corresponding to the
b array input to function.
"""
z=np.abs(z)
return DENSITY_ICE-(DENSITY_ICE-self.surface_density)*np.exp(-C*z)


Expand Down
5 changes: 5 additions & 0 deletions crevprop/fracture.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ def G(b, d, H):
"""Functional expression G in KI2 evaluation.

G(gamma,lambda) where gamma=b/d, lambda=d/H

b is depth below surface, d is crevasse depth, and H is ice thickness
all with units of meters.


from Tada et al., 1973 p 2.27, based on polynomial curve fitting to
numerically derived solutions for the second component of the stress
intensity factor KI2 for mode I crack opening. Implementiation also
Expand Down