Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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
!}
[bingo_chatbox]