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

How to read or write case by commands during simulation with Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2011, 10:17
Default How to read or write case by commands during simulation with Fluent
  #1
Member
 
Join Date: Jun 2009
Posts: 34
Rep Power: 17
lzgwhy is on a distinguished road
Hi.
As we all know, one can use text command to set in Fluent and Fluent can write case and data files automatically during simulation, but can read case and data files automatically. I want to read or write automatically case and data or some other files during simulation, if needed, but I do not want to use GUI, because it is not what I need. In other word, when the simulation is started, I want Fluent to read or write case and data files by itself not by hand, if needed during simulation. How can I fix this problem by text command? Thanks!
lzgwhy is offline   Reply With Quote

Old   April 19, 2011, 16:42
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Hi,
you can do that with a simple journal file.
Amir is offline   Reply With Quote

Old   April 19, 2011, 22:14
Default
  #3
Member
 
Join Date: Jun 2009
Posts: 34
Rep Power: 17
lzgwhy is on a distinguished road
How can I do so? Could you give me some simple example? I always use journal file to make setting, but never do a automatic reading setting.
lzgwhy is offline   Reply With Quote

Old   April 20, 2011, 14:41
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Quote:
rcd 123.cas
it 1500
wcd 123.cas
the journal file should be place in the same folder as your .cas file. you may need some 'yes' or 'No' command between for overwriting ....
Amir is offline   Reply With Quote

Old   April 20, 2011, 23:02
Default
  #5
Member
 
Join Date: Jun 2009
Posts: 34
Rep Power: 17
lzgwhy is on a distinguished road
Quote:
Originally Posted by Amir View Post
the journal file should be place in the same folder as your .cas file. you may need some 'yes' or 'No' command between for overwriting ....
Thanks for your help. However, I should describe my problem more clearly. For example, I plan to iterate 1000 steps for an unsteady simulation. During the simulation, I want to automatically let Fluent read case and data files, if needed. For example, when the 101 step is finished, by a condition, Fluent should read the 100th step files, i.e. 100.cas and 100.dat automatically without manual operation and calculate the new flow field of the 101st step. The case of writing files is similar to that of reading files. How can I fix this? Thank you.
lzgwhy 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
Questions on an impeller simulation with Fluent Angelo D'Ettore FLUENT 4 July 7, 2010 11:08
IC engine simulation tutorial by FLUENT yash Main CFD Forum 1 April 21, 2009 06:05
text shortcut commands for fluent senthil FLUENT 0 November 21, 2007 14:39
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24
How to make my CGNS solutions to be read by fluent Guo-dong Lei FLUENT 0 November 26, 2005 21:59


All times are GMT -4. The time now is 12:07.