Author Topic: Nodal Stresses of the Last time step  (Read 4506 times)

dolesch

  • Jr. Member
  • **
  • Posts: 30
Nodal Stresses of the Last time step
« on: February 24, 2020, 02:09:43 AM »
Hi all,

for my user element I need the nodal stresses from the last time step. How can I access them within an user element routine?

Regards
Dolesch
« Last Edit: February 24, 2020, 02:17:46 AM by dolesch »

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1165
Re: Nodal Stresses of the Last time step
« Reply #1 on: February 24, 2020, 11:52:15 AM »
Nodal stresses are a globally computed quantity and are thus not easily accessible inside an element, where the Gauss point stress are normally used.

It seems unlikely that you actually need the nodally projected stresses inside an element.  You should be able to make do with the Gauss point stresses.

Nonetheless, if you really need the nodal stresses inside an element, you will first need to compute them globally, say, using the STREss,NODE
command at the Macro prompt.   Then you can find them in the arrary hr( * ) at location npnp+numnm (in blocks of length istv).  See the files
pparaview.f and p_paraview.f in the program folder to understand what you will find in hr( * ) and how to access the values.

dolesch

  • Jr. Member
  • **
  • Posts: 30
Re: Nodal Stresses of the Last time step
« Reply #2 on: February 25, 2020, 11:21:43 PM »
Thank you for your quick response. I am trying to compute the nodal error values by using an adapted version of the subroutine ster2d. In the manual isn't much information about the routine.
So the next question. Were do user elements write their s-file while in the process of isw == 11 ( hr(np(57)) maybe?) and can I adopt the same procedure of the stress projection for the error projection?

Thanks in advance

Dolesch
« Last Edit: February 26, 2020, 12:47:03 AM by dolesch »

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: Nodal Stresses of the Last time step
« Reply #3 on: February 26, 2020, 08:24:35 AM »
The best way to follow the process is to start in 'pmacr1.f' and follow the projection of stress.  You will see that the steps use formfe.f for isw.eq.8 and then call pltstr.f which should do all the assembly of the p(*) and s(*,*) arrays.

Note that the pointer used for the s array is reset to np(60) which is the real area used for storing the element projection quantities.

The same path is followed for error projections.  However, as you note there is not much coded at this time.

dolesch

  • Jr. Member
  • **
  • Posts: 30
Re: Nodal Stresses of the Last time step
« Reply #4 on: February 28, 2020, 01:36:05 PM »
Thank you Prof. Taylor and Prof. Govindjee.