We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation Fluids CCL programming in ANSYS CFX Reply To: CCL programming in ANSYS CFX

rfblumen
Ansys Employee

Here's an example CFD-Post session file for exporting every 10th transient file:

!$fileout="My_Export";
!$bcname="out";
!$numsteps = 50;
!$interval = 10;
 
COMMAND FILE:
  CFX Post Version = 19.3
END
 
#!for ($j=0; $j <= $numsteps; $j++) {
!for ($j=0; $j <= $numsteps; $j += $interval) {
DATA READER:
  Current Timestep = $j
END
> load
 
! $filename = "$fileout" .$j.".csv";
EXPORT:
  Export File = .\$filename
  Location List = $bcname
  Variable List = Velocity u, Velocity v, Velocity w
END
>  export
!}