Author Topic: User element stress projection - which array is used?  (Read 19979 times)

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: User element stress projection - which array is used?
« Reply #30 on: January 09, 2018, 12:38:40 AM »
What version of the code are you using?

Jfrisch

  • Full Member
  • ***
  • Posts: 65
Re: User element stress projection - which array is used?
« Reply #31 on: January 09, 2018, 07:44:00 AM »
FEAP 8.5 and I tried "numnp" and "numnm" as the amount of nodes of mesh.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: User element stress projection - which array is used?
« Reply #32 on: January 09, 2018, 09:19:54 AM »
Did you look carefully at the problem and example I posted a couple of days ago.  This small problem shows exactly what the arrays look like for the stress projection.  If you study it carefully you should be able to figure out the steps  you need to follow.

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: User element stress projection - which array is used?
« Reply #33 on: January 09, 2018, 10:55:15 AM »
If you have version 8.5, why are you not following the example given in the programmers manual, where you just set p( ) and s( ) that are passed to your element from FEAP?  FEAP then takes care of all the rest, namely dealing with the assembly into the proper locations and the solution of the equations.

Is there something that the standard set up will not accommodate that you are interested in?

Jfrisch

  • Full Member
  • ***
  • Posts: 65
Re: User element stress projection - which array is used?
« Reply #34 on: January 09, 2018, 11:19:26 AM »
I wrote a subroutine following the manual (please see the initial post of this thread e.g.), but I need to get the numerical values of the projected stresses for external post-processing. So the main question of this thread is how to achieve this because during isw=8 the element-projection-array p(.) and s(.) are set (I only renamed them to residual and stiff).

To get the stresses at integration points e.g. I need to set the set of equations during isw=3 (and/or isw=6) and afterwards are able to access the solution by calling isw=4 and using the ul-array to calculate the stresses using the shape functions and then write them into an output-file e.g.

The first step of this analogy is done in isw=8 but I have no idea how to achieve the latter step of accessing the "solution" (the projected values) and writing them to an output-file by the element routine I coded.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: User element stress projection - which array is used?
« Reply #35 on: January 09, 2018, 02:16:57 PM »
I looked back at your original posting  and the question you ask.  We already have a routine which writes to a file -- it is for the paraview use. 

Look at the routines for paraview and see how the stress is written to the file.

Jfrisch

  • Full Member
  • ***
  • Posts: 65
Re: User element stress projection - which array is used?
« Reply #36 on: January 09, 2018, 02:22:59 PM »
Ah ok, I will do that! Many thanks for your explanations, answers and patience!

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: User element stress projection - which array is used?
« Reply #37 on: January 09, 2018, 04:32:21 PM »
see program/p_paraview.f and program/pparaview.f