CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Write Profile Variable File Name

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2018, 12:37
Default Write Profile Variable File Name
  #1
New Member
 
Join Date: Jul 2018
Posts: 7
Rep Power: 8
AKulkarni is on a distinguished road
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.
AKulkarni is offline   Reply With Quote

Old   July 16, 2018, 22:00
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
try
Code:
flow-time
instead of delta-time

best regards
AlexanderZ is offline   Reply With Quote

Old   July 17, 2018, 09:54
Default
  #3
New Member
 
Join Date: Jul 2018
Posts: 7
Rep Power: 8
AKulkarni is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
try
Code:
flow-time
instead of delta-time

best regards
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)).
AKulkarni is offline   Reply With Quote

Old   January 8, 2023, 01:23
Default
  #4
New Member
 
Join Date: Oct 2021
Posts: 4
Rep Power: 5
Zhuangz. Zhang is on a distinguished road
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.
Zhuangz. Zhang is offline   Reply With Quote

Old   February 4, 2023, 11:58
Default
  #5
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
(ti-menu-load-string(format #f "file~a.prof" delta-time"))
cooper wu likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
profile files, scheme programming, variable definition


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:24.