CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Profile File Read Issue (https://www.cfd-online.com/Forums/fluent/203762-profile-file-read-issue.html)

AKulkarni July 5, 2018 14:26

Profile File Read Issue
 
I have a spatially non-uniform and transient temperature profile that I am trying to apply to a surface. For each time-step I have one profile file and I am setting this solver up so that at the end of each time-step, the solver reads the next time step profile file and then solves it until convergence. To do this, I am using the "Execute Commands" dialog box to load the file after every timestep. However, I am getting an error which states: "file does not exist". This is the code I use to read the profile file:
(ti-menu-load-string (format #f "file read-profile Run35TempProfileTransient.~01d.prof" delta-time))
The variable delta-time is updated to add 0.03 seconds to it's value from the previous timestep. During execution of the program, the string is reading correctly as I get this message: file read-profile Run35TempProfileTransient.0.03.prof
Error: read-profile: file does not exist

I am not sure how to go about solving this problem. Any help is appreciated. Thanks.

LuckyTran July 6, 2018 13:44

Hard to debug without further diving into what else you have done because what you have should work...

`e` July 6, 2018 20:05

Quote:

Originally Posted by AKulkarni (Post 698333)
During execution of the program, the string is reading correctly as I get this message: file read-profile Run35TempProfileTransient.0.03.prof
Error: read-profile: file does not exist

Are the profile files located in your Fluent folder? Alternatively, you could use the full file path in the command.

AKulkarni July 13, 2018 10:34

Quote:

Originally Posted by `e` (Post 698450)
Are the profile files located in your Fluent folder? Alternatively, you could use the full file path in the command.

Turns out that the working directory did not have the profile files loaded in. I just changed the working directory and ran it again. Works fine. Thanks for the help.


All times are GMT -4. The time now is 04:32.