Changeset 20628
- Timestamp:
- 05/19/16 09:37:15 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/materials
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/materials/cuffey.m
r17455 r20628 25 25 % rigidity=fittedmodel(temperature); 26 26 27 rigidity=zeros( length(T),1);27 rigidity=zeros(size(T)); 28 28 pos=find(T<=-45); rigidity(pos)=10^8*(-0.000396645116301*(T(pos)+50).^3+ 0.013345579471334*(T(pos)+50).^2 -0.356868703259105*(T(pos)+50)+7.272363035371383); 29 29 pos=find(-45<=T & T<-40); rigidity(pos)=10^8*(-0.000396645116301*(T(pos)+45).^3+ 0.007395902726819*(T(pos)+45).^2 -0.253161292268336*(T(pos)+45)+5.772078366321591); -
issm/trunk-jpl/src/m/materials/cuffey.py
r17455 r20628 16 16 raise RuntimeError("input temperature should be in Kelvin (positive)") 17 17 18 T = temperature .reshape(-1,)-273.1518 T = temperature-273.15 19 19 20 20 rigidity=numpy.zeros_like(T) -
issm/trunk-jpl/src/m/materials/cuffeytemperate.m
r20622 r20628 19 19 end 20 20 21 rigidity= reshape(cuffey(temperature), size(temperature)).*(1+181.25*max(0., min(0.01, waterfraction))).^(-1/stressexp);21 rigidity=cuffey(temperature).*(1+181.25*max(0., min(0.01, waterfraction))).^(-1/stressexp); -
issm/trunk-jpl/src/m/materials/cuffeytemperate.py
r20622 r20628 25 25 end 26 26 27 rigidity=numpy.multiply(cuffey(temperature) .reshape(temperature.shape), (1*numpy.ones(waterfraction.shape)+181.25*numpy.maximum(numpy.zeros(waterfraction.shape), numpy.minimum(0.01*numpy.ones(waterfraction.shape), waterfraction)))**(-1/stressexp));27 rigidity=numpy.multiply(cuffey(temperature), (1*numpy.ones(waterfraction.shape)+181.25*numpy.maximum(numpy.zeros(waterfraction.shape), numpy.minimum(0.01*numpy.ones(waterfraction.shape), waterfraction)))**(-1/stressexp)); 28 28 29 29 return rigidity
Note:
See TracChangeset
for help on using the changeset viewer.