|
[Sponsors] |
March 11, 2021, 08:53 |
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 |
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 |
|
March 11, 2021, 15:17 |
|
#2 |
Senior Member
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 204
Rep Power: 16 |
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 Code:
surface-names p1 p2 p3 , |
|
March 13, 2021, 07:46 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,681
Rep Power: 66 |
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. |
|
|
|
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 |