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

Exit from current task in journal file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2021, 08:53
Default Exit from current task in journal file
  #1
Senior Member
 
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 204
Rep Power: 16
t.teschner is on a distinguished road
I am running fluent through a journal file and I am setting up a surface monitor to get some data from a point measurement. The relevant script is below:

Code:
; create average vertex monitor for pressure-mon
/solve/report-definitions add pressure-mon surface-vertexavg
field pressure
per-surface yes
average-over 1
surface-names p1 p2 p3
I.e. I want to output the pressure at points p1, p2 and p3. However, the command "surface-names" is asking indefinitely for points at which to monitor, if I want to quit that command in Fluent I simply press enter; no name results in the command to quit. How can I achieve that when running fluent in batch mode? (i.e. just running the journal file, no GUI interactions)? Otherwise, any command put after surface-names results in an error.
t.teschner is offline   Reply With Quote

Old   March 11, 2021, 15:17
Default
  #2
Senior Member
 
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 204
Rep Power: 16
t.teschner is on a distinguished road
I eventually solved it, a comma terminates the input (posting the solution here for someone with a similar problem in the future)

Instead of calling

Code:
surface-names p1 p2 p3
I have to call

Code:
surface-names p1 p2 p3 ,
instead, which solves my issue. You may need to put a "q" (without quotation marks) on the next line to exit the current sub-menu.
t.teschner is offline   Reply With Quote

Old   March 13, 2021, 07:46
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You could also give it an open and close parentheses () which is the empty argument signifying the end of the list. A list of surface names can in general be any number, so there needs to be a termination for the list of names. Anything you put after surfaces names has to be a valid surface name or it will end in an error.

When you are working in the terminal, pressing enter returns actually a suggested default output. You may have noticed such words when working in the terminal like () "Pressure" "Temperature" Y/N depending on the context. That's why in the terminal you press enter and it leaves this prompt but in batch mode you have to explicitly give it (). You are not quitting, you are actually finishing the prompt and going onto the next prompt.
LuckyTran 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
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 13:15.