Author Topic: Plot history variables in paraview  (Read 5541 times)

anshulfy

  • Full Member
  • ***
  • Posts: 63
Plot history variables in paraview
« on: July 31, 2021, 11:05:50 AM »
How do I plot history variables in ParaView?
Here are my input file commands.
Quote
BATCh
!  noprint log
!  noprint
!  debug on
  dt,,1e-3
  auto dt 1e-5 1e-2
  LOOP,,1e9
    TIME,,1
    PART,,1
      LOOP,,10
        TANG,,1
      NEXT
    PART,,2
      LOOP,,10
        TANG,,1
      NEXT
   STREss all
   HIST all
   PVIEW TIME
   NEXT
END

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1164
Re: Plot history variables in paraview
« Reply #1 on: July 31, 2021, 11:45:45 AM »
See section 15.2.7 in the user manual on how to declare that you want to plot history variables.  In short you need to add some lines to the material definitions:
Code: [Select]
HIST PLOT <hvar-num> <hplot-num>These lines tell FEAP to put a particular history variable (number hvar-num) into the history plotting slot number hplot-num.  You should then see these as appearing the pull down menus in paraview.

For example, adding
Code: [Select]
HIST PLOT 1 1to the material cards for a plastic material will make the equivalent plastic strain available in hplot slot 1.

anshulfy

  • Full Member
  • ***
  • Posts: 63
Re: Plot history variables in paraview
« Reply #2 on: August 01, 2021, 01:58:14 AM »
Sorry forgot to mention that I am using a user element. I have history variables defined in the element subroutine. How does it work for the user element?

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1164
Re: Plot history variables in paraview
« Reply #3 on: August 01, 2021, 11:37:06 PM »
you will need to add the code for writing out your history variables to your element.  I don't think this is in the programmers manual yet so you will have to look as some of FEAP's elements to figure it out until we have a chance to add it to the manual.  Have a look for example at elements/solid2d/hlcn2d.f.


anshulfy

  • Full Member
  • ***
  • Posts: 63
Re: Plot history variables in paraview
« Reply #4 on: August 02, 2021, 02:02:37 AM »
Ok. Thanks.