Accessing MaterialPropertyOld of neighboring elements from ElementUserObject #32734
Unanswered
chopsticks322
asked this question in
Q&A Modules: Solid mechanics
Replies: 1 comment 5 replies
-
|
Hello This is definitely a non-standard use of the ElementUO because this UO does not reinit element neighbors, only the current element. On the neighbor elements you need:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am implementing a nonlocal mean calculation of equivalent plastic strain (EQPS) in my application and would like to ask about the correct / supported way to access material values from neighboring elements.
My current approach is to implement an ElementUserObject (EqpsNonlocalMean) that:
My core question is:
Is it supported to access MaterialPropertyOld values from different elements inside an ElementUserObject?
Or should a different MOOSE abstraction be used instead?
I chose ElementUserObject because:
Specifically, I found that
_eqps_old[qp]always refers to the current element's quadrature point,
even when FEBase::reinit(elem) is called for a neighboring element.
This makes sense, but then I am not sure what the recommended way is to
query the EQPS value for (neighbor_elem, qp2) inside a UserObject.
The simplified programs are as follows:
myApp/include/userobjects/EqpsNonlocalMean.h
myApp/src/userobjects/EqpsNonlocalMean.C
Beta Was this translation helpful? Give feedback.
All reactions