Define output file name using variable
Posted: 05 Aug 2019, 03:53
Hello,
First of all, thank you very much to everyone collaborating in this amazing open tool.
I wanted to ask if it was possible to use a user-defined variable to parameterize file names in the ".sif" file.
In particular I would like to do this with the aim of obtaining different output files for different simulation frequencies in an acoustic problem.
So, if in my Header section I have:
I am thinking of using something like this in the output solver definition:
What would be the correct way to do it?
Please let me know if I was not clear enough.
Thanks in advance!
Rafa
First of all, thank you very much to everyone collaborating in this amazing open tool.
I wanted to ask if it was possible to use a user-defined variable to parameterize file names in the ".sif" file.
In particular I would like to do this with the aim of obtaining different output files for different simulation frequencies in an acoustic problem.
So, if in my Header section I have:
Code: Select all
Header
CHECK KEYWORDS Warn
Mesh DB "." "."
Include Path ""
Results Directory ""
$ Frequency = 1.1e3
End
Code: Select all
Solver 2
Equation = Result Output
Procedure = "ResultOutputSolve" "ResultOutputSolver"
Exec Solver = After Simulation
Output File Name = "open_end_" + $ Frequency + "Hz"
Output Format = Vtu
Scalar Field 1 = "Press_dB"
End
Please let me know if I was not clear enough.
Thanks in advance!
Rafa