Bug with PressureDependentElastic3D material

For posts concerning the documentation, errors, ommissions, general comments, etc.

Moderators: silvia, selimgunay, Moderators

Post Reply
david4utd
Posts: 1
Joined: Sat Dec 12, 2009 11:04 pm
Location: Tsinghua University

Bug with PressureDependentElastic3D material

Post by david4utd » Thu Apr 19, 2012 1:41 pm

Hi,
I've noticed that the source code for the PressureDependentElastic3D material may have a problem in it. If I'm not mistaken, OpenSees takes compression as negative just as in conventional continuum mechanics, but the way the cut off pressure is set in the code will give you the wrong elastic modulus because it states if p is smaller than p_cut (positive), then p=p_cut, which would totally do the opposite to what we would want it to do. I don't know if I'm mistaken or maybe a newer version has changed this piece, but simple calculation results indicate that this is probably wrong.

The part of the code goes:
double p = p_n;
if (p <= p_cutoff)
p = p_cutoff;
double Eo = E * pow(p/p_ref, exp0);

Post Reply