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

Fluent journal - do loop

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2018, 13:20
Default
  #21
Senior Member
 
Join Date: Sep 2017
Posts: 246
Rep Power: 11
obscureed is on a distinguished road
Going back to destroy's original problem, where Fluent had an error involving this file:
"K:\USERS\mnowak\monitory\monitory_files\dp0\F LU\F luent\K:\USERS\mnowak\artykulzautosavemnaprawa\pos tprocessing\caseanddatadoanalizy\Fluentmesh14-58-00073.set"

The \dp0\FLU\Fluent part looks like you're inside Workbench. I suspect that some of your journal commands are changing the working directory -- see that the full path in the error message mentions K:\ twice, which cannot be a good sign. Fluent has mangled your version of the working directory and some other path when autosaving some files.

(1) One immediate piece of advice is to run Fluent as a standalone program unless you're using some vital feature of Workbench.

(2) If you really have to run inside Workbench, another option is to put all the output in whatever directory Fluent happens to like at any moment, and then go and find it yourself later.

(3) If that is unacceptable, try using relative paths such as "..\..\..\user_files" -- but honestly, I would settle for (1) or (2).
obscureed is offline   Reply With Quote

Old   February 26, 2018, 10:14
Default
  #22
Member
 
Muhammad Ali Uzair
Join Date: Sep 2017
Posts: 44
Rep Power: 8
m.uzair is on a distinguished road
Dears
Thanks alot for the help. I have found a very simple solution (took me 2 months long time) for my case (couldn't have been possible without your guidance as I am very new to fluent and scheme programming). ie I wanted to export solution data (of a variable) on a surface for 3500 data files.

What I did was, I renamed those data files in numerical order e.g. test-(1), test-(2)............., test-(3500)

and then I wrote simple 2 line scheme code for exporting ascii files...

(Do ((x 1 (+ x 1))) ((> x 3500))
(ti-menu-load-string (format #f "file read-data try-(~a).dat q" x));
(ti-menu-load-string (format #f "file export ascii try-(~a)[name of file to be exported] new[surface name] () y air-vof[variable] () y q q" x));
)

and then I wrote a program in python to read those exported ascii files and calculate time-average of the variable on the required surface

I hope it helps someone who is new to such problem.

thanks again
m.uzair is offline   Reply With Quote

Reply


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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
fluent journal file for carrying out LES raunakjung FLUENT 13 June 7, 2017 10:16
Calculation of Load Carrying capacity of a journal bearing in Fluent Dinesh_Dhande FLUENT 1 June 17, 2015 04:20
Fluent JOURNAL file issue mhsn FLUENT 0 June 5, 2013 12:47
Fluent jobs through pbs ibnkureshi FLUENT 5 June 9, 2011 13:43


All times are GMT -4. The time now is 23:17.