How to write a journal to export automatic pseudo time step value in text file in CFD silmulations.

Options
Alex921
Alex921 Member Posts: 5 **

Currently, the verbosity is set to 1 to see the pseudo-time step (dt) being printed with each iteration in the console.
We tried with the below journal in order to export automatic pseudo time step value into text file inside FLTG folder , but unable to print the value of it. It prints #F in the text file

(define (write-Automatic-flow-pseudo-dt)
(begin
(define port (open-output-file "Automatic-flow-pseudo-dt.txt"))
(for-each
(lambda (x)
(begin
(display x port)
(newline port)
)
)
get-solver-variable "pseudo_dt"
)
(close-output-port port)
)
)

Need a proper journal to print the automatic pseudo time step value in a text file "Automatic-flow-pseudo-dt.txt" inside FLTG folder
For eg: Automatic flow pseudo-dt = 6.812478e-02 s

Tagged: