Author Topic: Batch procedures for HPC  (Read 19380 times)

R2197

  • Jr. Member
  • **
  • Posts: 25
Batch procedures for HPC
« on: August 28, 2024, 08:24:27 AM »
Hi, I was until now running FEAP on my local machine but now would like to move it to a cluster. But to run it on the cluster, the interactive window needs to go so that FEAP only runs in background. My idea was to remove all the 'plot' commands which runs the feap in background but only produces one tecplot file before shutting the process. The command structure is like this at the moment.

opti
dt,,100
nopr
!plot,pers,1
!plot,hide
!plot,fact,1.0
loop,,200
save
loop,,2
time
loop,,6
utan,,1
next
!plot,wipe
!plot,mesh
!plot,defo,1,1
!plot,stre,4
!plot,mesh
!plot,unde
next
tecp
next
tecp,,1
save

The commented lines are for the plot commands that I thought would stop the interactive window. What should I do so I get tecplot files at required timesteps?

Thanks

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Batch procedures for HPC
« Reply #1 on: August 28, 2024, 09:42:58 AM »
Are you trying to run a job using a submission script to send the job to an execution queue like qsub or bsub?  Also is this a parallel run or a serial run?

R2197

  • Jr. Member
  • **
  • Posts: 25
Re: Batch procedures for HPC
« Reply #2 on: August 29, 2024, 12:15:19 AM »
I am using qsub and at the moment it is a serial run.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Batch procedures for HPC
« Reply #3 on: August 29, 2024, 10:38:19 AM »
To have your serial job run without needing user input via qsub, you can put a line like
Code: [Select]
feap -iIfile
in your qsub script, where "Ifile" is the name of your input file.

Regarding the tecplot files at the different time steps, that depends on how your "tecp" macro has been programed (note tecp is not a built-in FEAP command).  If tecp is not creating uniquely named output files, I suggest copying the way FEAP does it with its built-in command PVIEw.

« Last Edit: August 29, 2024, 11:38:15 PM by Prof. S. Govindjee »

R2197

  • Jr. Member
  • **
  • Posts: 25
Re: Batch procedures for HPC
« Reply #4 on: August 30, 2024, 04:45:17 AM »
Thanks for the suggestion. I have already the feap -iIfile structure and user input is not needed. So, this part works for me.

Regarding the tecplot files, as I understand, something is off with how it interacts with the PLOT commands. The reason for this is that when I comment off the first set of these commands (cf. my initial question), the tecplot files are generated. But when I comment the second set, I get a 'Floating point exception error'.

Also, I get the tecplot files at different timesteps in all other scenarios. So, I am a little unsure if I should fix the 'tecp' macro or the batch commands.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Batch procedures for HPC
« Reply #5 on: August 30, 2024, 09:35:18 AM »
It could be that tecp needs FEAP to have uptodate projected stress quantities to work and it is not itself initiating this.
You have two options if this happens to be the case.  (1) Edit the macro and fix this issue.  (2) execute the command "STREss,NODE" before "tecp".  STREss,NODE will force the projection.  If this turns out to not be the case then you will need to use gdb or some other debugger to figure out where the floating point exception is coming from.
« Last Edit: September 01, 2024, 01:41:03 AM by Prof. S. Govindjee »

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Batch procedures for HPC
« Reply #6 on: August 30, 2024, 11:13:02 AM »
I note that tecplot seems to now read VTU files which FEAP can generate using the PVIEw macro command.
https://tecplot.com/2023/12/08/tecplot-360-and-fieldview-support-vtk-file-formats/
« Last Edit: August 30, 2024, 02:17:35 PM by Prof. S. Govindjee »

R2197

  • Jr. Member
  • **
  • Posts: 25
Re: Batch procedures for HPC
« Reply #7 on: August 31, 2024, 02:39:11 AM »
It works with STRE,NODE command.

Thanks Prof. Govindjee for your help!