Code covered by the BSD License  

Highlights from
WTS (formerly Leonov) + GUI

image thumbnail
from WTS (formerly Leonov) + GUI by Michael Wendlandt
Calculates stress vs. strain curves of plastically deformed glassy polymers. GUI available.

f=Vact(a,b,truestrain)
function f=Vact(a,b,truestrain)

%In this model, the activation volume is a function of invariants of the strain tensor. A Poisson's ratio of 0.5 is assumed.
%Units: Vact[nm3]

f=(a - b *  (1/3) * (exp(-2 * truestrain) + 2 * exp(truestrain)).^(0.5) .* (exp(2 * truestrain) + 2 * exp(-truestrain)).^(0.5) );


%check if Vact gets negative. If YES show error message !
if f<=0
    error('NEGATIVE activation volume Vact ! Please reedit the depedence of Vact on strain such that Vact stays positive')
end

Contact us at files@mathworks.com