|
[Sponsors] |
May 7, 2012, 14:33 |
Fluent scripting question
|
#1 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
I'm trying to get fluent to output a projected area into the terminal window, but without user intervention. The problem is the projected area function requires you to enter in wall zones you want and hit enter when you're done defining them. Is there some command I can put in the input script that will do this? I couldn't find anything about it in the TUI manual.
|
|
May 10, 2012, 12:12 |
|
#2 |
New Member
Join Date: May 2012
Posts: 3
Rep Power: 13 |
start recording journal
do all that manual stuff you just mentioned stop recording journal there you have a file with all the code you need in it to write your own journals |
|
May 11, 2012, 00:37 |
|
#3 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,649
Rep Power: 65 |
Quote:
|
||
May 11, 2012, 02:18 |
|
#4 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
When I do that it fills the journal file with text commands which include GUI parameters - will that still work if you run the script on a cluster with no GUI?
|
|
May 11, 2012, 02:21 |
|
#5 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,649
Rep Power: 65 |
Quote:
you need to make the same journal file using only TUI commands and that will work anywhere. |
||
May 11, 2012, 12:19 |
|
#6 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Yes..that's the problem...I don't know what the TUI command is for "enter"
|
|
May 11, 2012, 14:25 |
|
#7 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,649
Rep Power: 65 |
Quote:
If you press the enter/return key into the TUI window, a list of all available commands will be printed on the screen. You can use this to learn to navigate your way to get to the right place. Follow all the prompts and enter all the appropriate inputs. Then write down all your inputs into a separate text file and save it as a journal .jou file. Fluent will read the file exactly as is so anything you put in the journal file will be inputted exactly into the TUI the same way. So an easy to check if your journal is setup properly. The Fluent manual also contains a list of the TUI commands to get you started but you still need to do it a few times to get all the input strings. |
||
May 11, 2012, 14:39 |
|
#8 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Yes, I know this already. But when you choose to do something like projected areas in the TUI, it will eventually ask you for a list of wall zones to project. The only way to get it to stop asking for the list is to hit enter with nothing typed in as a zone. My question is how to "hit enter" while giving no actual name in the script. There has to be some sort of "OK" command.
|
|
May 11, 2012, 14:48 |
|
#9 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,649
Rep Power: 65 |
Quote:
you therefore need to be careful, because if you accidentally leave a blank line, it will be interpreted as a return command, which may lead to errors afterwards such as when it is in the middle of a list of prompts. |
||
May 11, 2012, 14:50 |
|
#10 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
I've tried leaving a blank line, but it doesn't do anything. I want it to be interpreted as a return command. Is there some other way to end a list of prompts?
|
|
May 11, 2012, 14:57 |
|
#11 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,649
Rep Power: 65 |
||
May 15, 2012, 23:50 |
|
#12 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Yup, that's the one. Thanks.
|
|
August 18, 2017, 14:36 |
|
#13 |
Member
Join Date: Jan 2015
Location: United Kingdom
Posts: 53
Rep Power: 11 |
||
September 23, 2019, 14:49 |
|
#14 |
New Member
Join Date: May 2019
Posts: 7
Rep Power: 6 |
I believe a comma , also works for 'enter'?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about transiet simulations in Fluent | Vitaly | FLUENT | 5 | February 19, 2012 23:06 |
Question about modeling an elastic wall in Fluent | Mosheraa | FLUENT | 2 | June 24, 2011 19:47 |
Question: BC openFOAM vs. FLUENT | oehmu | OpenFOAM | 2 | December 14, 2010 17:14 |
a question about the liquidus temperature in fluent | hunter | FLUENT | 0 | April 13, 2009 22:55 |
General question regarding Fluent 6.3s mesh motion | AndyRoth | FLUENT | 0 | December 8, 2006 13:01 |