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

Fluent Journal File (TUI) Definition Invalid?? TUI Command for ''OK''

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2022, 05:04
Default Fluent Journal File (TUI) Definition Invalid?? TUI Command for ''OK''
  #1
New Member
 
veda
Join Date: Jul 2022
Posts: 8
Rep Power: 4
saha.vedabit is on a distinguished road
UPDATE: SOLVED; In Comments Below

Hello,

I am trying to create a Fluent Journal File to automate a parametric study.

Within the journal file, I am trying to create a report definition for net mass flow rate and trying to add it as a convergence criteria. Basically, once a value of net mass flow rate of 0.0001 is reached, I want to stop iterations, save the case and data file, and move on to a new set of inlet conditions, and repeat.

The problem I encounter is:

1) When I defined my report definition (massflow-net) in my journal file, and checked the corresponding action in Fluent GUI of the following line in my journal file:

Quote:
/solve/report-definitions/add/massflow-net surface-massflowrate/surface-names inlet outlet
I get this (invalid) syntax next to the created report-definition as attached in image below:

Image

I resolved the above issue by changing the line in my journal file as follows:

Quote:
/solve/report-definitions/add/massflow-net surface-massflowrate/surface-names inlet outlet ()
q
q
Alternatively, in the GUI, when I clicked on the created definition, and simply clicked OK, the invalid notation disappeared and the definition was good to be used as desired.

2) Now, when I try to set it as convergence criteria (convmassflow-net), I use the following line in my journal file:

Quote:
/solve/convergence-conditions/conv-reports/add/convmassflow-net print? yes report-defs massflow-net stop-criterion 0.0001 ()
q
q
q
However, this time, with or without the parantheses () and extra q's, I continue to get the (invalid) next to my Convergence Conditions similar to image above. This can be resolved in the GUI by simply clicking on convmassflow-net and clicking OK, similar to as noted in (1) above. However, I want to define it once and for all in my journal file and let it run for my parametric study.

Any advice will be highly appreciated.

TLDR: Looking for a TUI Command for ''OK'' on GUI.

Last edited by saha.vedabit; July 5, 2022 at 01:16. Reason: Solved
saha.vedabit is offline   Reply With Quote

Old   July 4, 2022, 18:44
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You're misunderstanding something. Your problem is not that you need a TUI command for ok on the GUI. TUI commands shouldn't call or interact with GUI elements. Your problem is that you don't have a TUI command that creates a valid definition.

When you create a mass flow report, you need to enter a list of surfaces over which to sum the mass flows. This list (all lists in Fluent) are terminated with (). If you don't have a pair of parentheses, you don't have a valid list and any definition that needs a list input will fail.

q is an abbreviation for quit and is used to navigate TUI structures.

My advice is to type these commands into the TUI window yourself and not run them from a journal yet. Then, once you figure out what the actual TUI commands are, you can then copy and paste them into the journal. When you type into the TUI window, there will be text prompts that guide you with what inputs are needed for the full TUI command. Learn TUI commands first, then write a journal file. Learn to walk before you fly.
LuckyTran is offline   Reply With Quote

Old   July 4, 2022, 20:00
Default
  #3
New Member
 
veda
Join Date: Jul 2022
Posts: 8
Rep Power: 4
saha.vedabit is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
You're misunderstanding something. Your problem is not that you need a TUI command for ok on the GUI. TUI commands shouldn't call or interact with GUI elements. Your problem is that you don't have a TUI command that creates a valid definition.

When you create a mass flow report, you need to enter a list of surfaces over which to sum the mass flows. This list (all lists in Fluent) are terminated with (). If you don't have a pair of parentheses, you don't have a valid list and any definition that needs a list input will fail.

q is an abbreviation for quit and is used to navigate TUI structures.

My advice is to type these commands into the TUI window yourself and not run them from a journal yet. Then, once you figure out what the actual TUI commands are, you can then copy and paste them into the journal. When you type into the TUI window, there will be text prompts that guide you with what inputs are needed for the full TUI command. Learn TUI commands first, then write a journal file. Learn to walk before you fly.

Thank you for your reply.

Actually that’s exactly what I’ve been doing. I’m not running these as journals but trying to input them into the TUI Window and going through the outcomes. However, with the issue (1) in original post, that was resolved with the parentheses (as you described is used to terminate lists), I found that information prior to posting it in this forum. I added the q’s simply to navigate back to the default line of code not beginning with /solve/.. so that I can input subsequent commands without getting an error, just to be safe.

But you’re correct in assuming I do not need a TUI Input for OK. I am unable to find a resource online pointing to how to terminate successfully my second command (2) leading to a successful definition of convergence conditions.

In the TUI window, for problem 2, I was unable to find a solution by experimenting, thus the post.
saha.vedabit is offline   Reply With Quote

Old   July 5, 2022, 01:15
Default UPDATE: Solved
  #4
New Member
 
veda
Join Date: Jul 2022
Posts: 8
Rep Power: 4
saha.vedabit is on a distinguished road
Resolved with following Modification to TUI Command:

Quote:
/solve/convergence-conditions/conv-reports/add/convmassflow-net print? yes report-defs massflow-net stop-criterion 0.0001 active? yes
When I checked on GUI earlier, the condition was already activated. However, it seems manually inputting an activate command for convergence condition in TUI using "activate? yes" resolved the issue.

Thank you for everyone's responses.
saha.vedabit is offline   Reply With Quote

Reply

Tags
fluent, invalid, journal, report definition, tui


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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 14:52.