|
[Sponsors] |
December 9, 2009, 10:24 |
iterate from command line
|
#1 |
Senior Member
Jouke de Baar
Join Date: Oct 2009
Posts: 127
Rep Power: 16 |
Hi! For a VOF unsteady problem I can choose to: solve/iterate/ and enter, for example, time step = 0.1 s and number of time steps = 10.
Now, I would like to do this from the command line (to set up an inputfile and run simulation from batch mode). However, in the command line menu, if I chose solve/iterate this is a different command that will only ask for the number of iterations. Question: What is the correct command line input for time step iteration? Thanks! |
|
December 10, 2009, 03:06 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
Hello jouke,
for transient runs use solve/dual-time-iterate cheers |
|
December 10, 2009, 07:20 |
|
#3 |
Senior Member
Jouke de Baar
Join Date: Oct 2009
Posts: 127
Rep Power: 16 |
Thanks for giving the correct command. However I still run into trouble. What I'm trying to do is write a simple inputfile as in Fluent User's Guide 1.3.1. It looks like this:
=== inputfile === rcd broken_dam_03.cas solve/dual-time-iterate 9 20 wcd test.cas exit yes ============ When I run this sequence of commands from the command line in Fluent it works fine. However, when I run this inputfile from batch, the outputfile gives several errors, the first one being: ========= [...] Reading "broken_dam_03.dat"... Done. invalid command [ ] > Error: eval: unbound variable Error Object: 20 Invalid integer. Number of iterations per time step [20] [...] ========= What could be wrong? |
|
December 10, 2009, 08:36 |
|
#4 |
New Member
saeed
Join Date: Dec 2009
Posts: 12
Rep Power: 16 |
hi
i run PEM fuel cell in fluent but resive an error: Error:floating point;invalid number please help me! |
|
December 10, 2009, 09:55 |
|
#5 | |
Member
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 16 |
Quote:
I found a paper http://www.google.de/url?sa=t&source...a_Yutzd4RAyo4A (language: german) saying the command is: Code:
/solve/dual-time-iterate [number-of-timesteps] [max-number-of-iterations-per-time-step] Hope, it works for you too |
||
July 16, 2010, 01:32 |
|
#6 |
Member
Dokeun, Hwang
Join Date: Apr 2010
Location: Korea, Republic of
Posts: 98
Rep Power: 16 |
Dear AnjaMiehe
Thank you so much~ That's what I'm looking for solving my prob |
|
July 16, 2010, 10:15 |
|
#7 |
Senior Member
Chris
Join Date: Jul 2009
Location: Ohio, USA
Posts: 169
Rep Power: 16 |
For the sake of posterity, you might have a problem if you write a script in windows and run it in unix/linux. The reason is that each os uses a different end of line character, so fluent will have some problem when it tries to read your script.
To see if this is your problem, you can open your script with a text editor (e.g., vi) and it will display some message at the bottom if it is in dos format. This took me an embarassingly long time to figure out, so hopefully I can save someone else the trouble! The fix is to either 1) Write your script in linux with your favorite text editor, or... 2) Run the command dos2unix [input_file] to convert from dos format to unix/linux format. |
|
February 28, 2011, 14:27 |
|
#8 | |
New Member
Adam Arvay
Join Date: Feb 2011
Posts: 23
Rep Power: 15 |
Quote:
]nvalid command [ Doing the conversion with dos2unix fixed it. I had been using windows based notepad to write my script and it ran fine on my windows based fluent setup, but once i uploaded it to our unix cluster, it gave issues. So thanks again. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
floating point error when starting to iterate | Ralf Schmidt | FLUENT | 1 | June 2, 2006 06:00 |
Can not Iterate this UDF | mike | FLUENT | 3 | November 23, 2005 19:26 |
Iterate command is not showing up | Josh | FLUENT | 2 | November 7, 2005 10:38 |
Fluent - Iterate Command | Harish | FLUENT | 5 | April 12, 2005 03:30 |
Solution won't iterate ?!?!? | greg | FLUENT | 2 | November 19, 2003 13:31 |