|
[Sponsors] |
July 13, 2018, 12:37 |
Write Profile Variable File Name
|
#1 |
New Member
Join Date: Jul 2018
Posts: 7
Rep Power: 8 |
I would like Fluent to write a profile file for the temperature on the wall at the end of every time step. I am using the execute commands option to try and write the profile every timestep. The command I am using for write profile is as follows: //file/write-profile filename.prof surface_name and then I have blank commands entered in the execute commands dialog box to skip naming additional surface names and then a command that just says what variable I want to write a profile for (temperature). The problem I run into is that I want to index the filename every timestep so it is easy to keep track off. For this, I have tried the ti-menu-load-string(format #f "file~01d.prof" delta-time") command instead of the "filename.prof" as earlier mentioned. But that doesn't update the variable as it should. Any recommendations on how I should get it to update the filename every timestep? Thanks.
|
|
July 16, 2018, 22:00 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
try
Code:
flow-time best regards |
|
July 17, 2018, 09:54 |
|
#3 |
New Member
Join Date: Jul 2018
Posts: 7
Rep Power: 8 |
I don't think that should make a difference because I am using delta-time to read in a profile file at every time step. I have also defined the delta-time variable and after every time-step, it adds 1 to the previous value using this: (define delta-time (+ 1 delta-time)).
|
|
January 8, 2023, 01:23 |
|
#4 |
New Member
Join Date: Oct 2021
Posts: 4
Rep Power: 5 |
Hi AkulKarni,
has this problem been solved? Recently, I am also troubled by this problem. Would you please show the correct TUI command? Also I need auto-read profile function, is it also possible via TUI command? Thanks. |
|
February 4, 2023, 11:58 |
|
#5 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
(ti-menu-load-string(format #f "file~a.prof" delta-time"))
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
profile files, scheme programming, variable definition |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |