Author Topic: umacr calling interactive commands  (Read 2815 times)

Steffenkastian

  • New Member
  • *
  • Posts: 5
umacr calling interactive commands
« on: September 11, 2018, 05:35:20 AM »
Dear FEAP community,

is there a possibility to use the interactive commands in a umacr file?

The problem is a simulation including damage and in order to predict a crack I use currently the arclen command depending on the already existing damage variables. I would like to write a umacr which is calling the arclen() automatically depending on the existing damage.

For this problem I can call arclen() and set the flags manually and do all settings, but is there a possibility to use the interactive commands? Or do I always need to find the corresponding subroutines and figure out the settings?

Thank you in advance for your help and have a nice day,
Steffen Kastian
 

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: umacr calling interactive commands
« Reply #1 on: September 11, 2018, 07:21:56 AM »
Looking at the coding it appears you could have the arclen be done only at certain points by using the logical parameter 'arcf' (from the include 'arclel.h').  You would activate arclength as usual but your user function control when it is true (it will be true at first when you activate the command so needs to be immediately set to .false.).  Then when you have the state you want with arclen merely set arcf to .true.

Hopefully this can work the way you want.