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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 13, 2018, 12:37
Default Write Profile Variable File Name
  #1
New Member
 
Join Date: Jul 2018
Posts: 6
Rep Power: 2
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: 396
Rep Power: 10
AlexanderZ is on a distinguished road
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: 6
Rep Power: 2
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

Reply

Tags
profile files, scheme programming, variable definition

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 74 October 11, 2018 05:30
Custom Thermophysical Properties wsmith02 OpenFOAM 3 July 27, 2015 06:37
Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Installation 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 18:34.