Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

How to Save Defined Animations Along with the Final Case?

    • Rui.Li
      Subscriber

      I am currently running a Fluent simulation on an HPC cluster, and I want to save the animation of my results (e.g., contours, screen) during the simulation rather than just the final case file after the simulation is complete.

      I’m running a Fluent simulation on an HPC cluster, and I’ve encountered an issue with saving animations. Here’s my setup:

      The input files (Testcases.cas, Testcases.dat, Testcases.in, and run_batch) are placed in the same directory on the HPC. Testcases.cas includes the definition of two animations, which are supposed to save specific results (e.g., contours or screen). The simulation runs without errors, and the output files (Testcases_completed.cas.h5 and Testcases_completed.dat.h5) are successfully generated.

    • Rui.Li
      Subscriber

      run_batch:

      #!/bin/bash
      #SBATCH --job-name=Fluent_Test_Job
      #SBATCH --partition nocona
      #SBATCH --time=10:00:00
      #SBATCH --mail-user=Rui.Li@ttu.edu
      #SBATCH --mail-type=END,FAIL
      #SBATCH --output=%x.o%j # %j will be replaced with the job ID
      #SBATCH --nodes=1
      #SBATCH --ntasks-per-node=128
      #SBATCH --mem-per-cpu=1GB

      module load test/v241_fluids

      fluent 3d -g -t$128 -nm -ssh < Testcases.in

    • Rui.Li
      Subscriber

      Testcases.in:

      /file/read-case-data Testcases.cas
      /solve/initialize/initialize-flow
      /display/set-window-layout 1
      /display/animate define velocity-magnitude-animation
      /display/animate set-options velocity-magnitude-animation frame-frequency 10 file-format binary
      /display/animate set file-name velocity_animation.cxa
      /display/animate initialize
      /solve/animate objects create animation-1
      /solve/animate objects create animation-2
      /solve/iterate 500
      /display/animate save velocity-magnitude-animation
      /file/write-case-data Testcases_completed.cas.h5
      /exit yes

    • Rob
      Forum Moderator

      Have a look here, https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v242/en/flu_ug/flu_ug_startramp.html%23flu_ug_sec_startup_option  what does "-g" do in the command line?

    • rahul_kv
      Subscriber
      I also want to save animation of my results while solving in HPC-Cluster; did you find the solution? As "-g" in the command line, Run without the GUI or graphics. After removing -g were you able to save animations?
    • Rui.Li
      Subscriber

      No, I haven't solved it yet. When I remove -g, it fails. But when I add -g, it runs correctly. I think there may be some problems with our HPC.

    • Rob
      Forum Moderator

      If your HPC required -g it suggests there may not be a graphics card on the system. Not so much a problem with the cluster, more a lack of graphics, which is why the -g function was originally added. 

Viewing 6 reply threads
  • You must be logged in to reply to this topic.