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

iterate from command line

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree6Likes
  • 2 Post By coglione
  • 4 Post By AnjaMiehe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2009, 10:24
Default iterate from command line
  #1
Senior Member
 
Jouke de Baar
Join Date: Oct 2009
Posts: 127
Rep Power: 16
jack1980 is on a distinguished road
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!
jack1980 is offline   Reply With Quote

Old   December 10, 2009, 03:06
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
Hello jouke,

for transient runs use solve/dual-time-iterate

cheers
appie and hamed100 like this.
coglione is offline   Reply With Quote

Old   December 10, 2009, 07:20
Default
  #3
Senior Member
 
Jouke de Baar
Join Date: Oct 2009
Posts: 127
Rep Power: 16
jack1980 is on a distinguished road
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?
jack1980 is offline   Reply With Quote

Old   December 10, 2009, 08:36
Default
  #4
New Member
 
saeed
Join Date: Dec 2009
Posts: 12
Rep Power: 16
saeed is on a distinguished road
hi
i run PEM fuel cell in fluent but resive an error:
Error:floating point;invalid number
please help me!
saeed is offline   Reply With Quote

Old   December 10, 2009, 09:55
Default
  #5
Member
 
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 16
AnjaMiehe is on a distinguished road
Quote:
Originally Posted by jack1980 View Post
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?
Hey,

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]
where everything in the brackets including the brackets has to be replaced by a number. I tried it and it works.

Hope, it works for you too
arsenis, kemin, lev and 1 others like this.
AnjaMiehe is offline   Reply With Quote

Old   July 16, 2010, 01:32
Default
  #6
Member
 
Dokeun, Hwang
Join Date: Apr 2010
Location: Korea, Republic of
Posts: 98
Rep Power: 16
dokeun is on a distinguished road
Dear AnjaMiehe
Thank you so much~ That's what I'm looking for solving my prob
dokeun is offline   Reply With Quote

Old   July 16, 2010, 10:15
Default
  #7
Senior Member
 
Chris
Join Date: Jul 2009
Location: Ohio, USA
Posts: 169
Rep Power: 16
Chris D is on a distinguished road
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.
Chris D is offline   Reply With Quote

Old   February 28, 2011, 14:27
Default
  #8
New Member
 
Adam Arvay
Join Date: Feb 2011
Posts: 23
Rep Power: 15
aarvay is on a distinguished road
Quote:
Originally Posted by Chris D View Post
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.
Gonna bump this old thread to say thanks for this. Typing in the individual commands worked fine, but once i tried loading the journal file I kept getting weirdness and errors such as

]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.
aarvay is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


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


All times are GMT -4. The time now is 09:55.