|
[Sponsors] |
How to monitor an expression on a "ghost" location? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 18, 2018, 18:51 |
How to monitor an expression on a "ghost" location?
|
#1 |
Member
Join Date: Oct 2017
Posts: 89
Rep Power: 8 |
Im running a transient and i need to monitor the max temperature value on the imaginary finite line defined by the points (0,1,0) and (0,1,150). I donīt know how to do this since the line is not a physical entity and doesnīt belong to any location compatible with cfxpre monitor setup.
Any help? |
|
February 19, 2018, 01:47 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
This is easy in post processing, but I assume you want to do it in the solver. Can you put a series of monitor points along the line and export it and get the maximum from there? It is a bit of a hack but easy to implement.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
February 19, 2018, 03:21 |
|
#3 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
You can create a lot of monitoring points on this line and monitor the temperature on each point. A monitorplot in the solver manager will show you which monitor point has the highest temperature.
Alternatively you can create a plane (thin strip) in your geometry and mesh it as an interface. Then this interface appears as mesh locator in CFX-Pre which can be used in monitoring the maximum temperature. |
|
February 19, 2018, 10:25 |
|
#4 | |
Member
Join Date: Oct 2017
Posts: 89
Rep Power: 8 |
Quote:
Create a temperature monitor every 5 mts (so it would be 30 monitors) and also create a variable/expression that takes the value of the maximum value of all the monitors. In other words, something like: maxtemp= maxVal(all the monitors), so the value of the expression would be the max temp every timestep and i then i can simply monitor that expression and problem solved. Can this be done? Particularly setting a CEL for pcking the max value in a set of variables/expressions... |
||
February 19, 2018, 10:33 |
|
#5 |
Member
Join Date: Oct 2017
Posts: 89
Rep Power: 8 |
so the value of the expression would be the max temp every timestep
or alternatively the max temp of the PREVIOUS timestep, if that is any easier to implement |
|
February 19, 2018, 10:53 |
|
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
Monitor points are not mesh locators. So you cannot use them in expressions like maxVal
|
|
February 19, 2018, 10:59 |
|
#7 |
Member
Join Date: Oct 2017
Posts: 89
Rep Power: 8 |
||
February 19, 2018, 11:03 |
|
#8 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
Your intention is completely clear.
It is just that it is not possible to use Monitoring points in any equation or CEL expression since these points are not mesh locators. So, there is no solution, other than what I wrote in my previous reply. |
|
February 19, 2018, 11:18 |
|
#9 | |
Member
Join Date: Oct 2017
Posts: 89
Rep Power: 8 |
Quote:
What if a create a probe for every temperature monitor? Something like: Monitor 10 mts: temperature at (0,1,10) temp at 10 mts: expression defined as probe(Temperature)@Monitor 10 mts Then i could find the max value among all those expressions, can this be done? Despite, is there a CEL command to find the max value among a set of expressions (or a set of anything is thats the case) ? |
||
February 19, 2018, 11:54 |
|
#10 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
In CFX-Pre, you should go to Definition window of the expression section, and press your right mouse button, you will see that there are numerous options. By selecting Funtions>CEL you will see that there is max-function, and many more.
So, yes you can use a function like max(T1,T2) which will give you the maximum of T1 and T2. And T1 and T2 can be something like T1=maxVal(T)@outlet and T2=maxVal(T)@Wall, since Wall and outlet are meshlocators. But T1 nor T2 can be related to a monitoring Point because they aren't meshlocators. Last edited by Gert-Jan; February 19, 2018 at 15:42. |
|
February 19, 2018, 16:42 |
|
#11 |
Member
Join Date: Oct 2017
Posts: 89
Rep Power: 8 |
Thanks for the tip but sadly that function only accepts 2 expressions as input and i would need to obtain the max between like 30 expressions...
|
|
February 19, 2018, 16:50 |
|
#12 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
So, you have to use the max-function 30 times to determine the maximum. This is still doable. Go to Expressions, and use your right mouse button to edit the expressions in Command Editor, so you can copy paste the expressions and modify them as in a text editor.
I consider this as a bit silly and think it is easier to create a mesh on a small strip (as an interface) along the line of interest and monitor the maximum on this strip: maxVal(Temperature)@interface |
|
February 19, 2018, 20:15 |
|
#13 |
Member
Join Date: Oct 2017
Posts: 89
Rep Power: 8 |
I guess i will do the first option. Thanks for the help.
One more question: should the total run time increase a lot because of all the 30+ expressions defined? |
|
February 20, 2018, 05:32 |
|
#14 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
No, 30 simple expressions should not affect run time. But don't take my word for it, do a run with and without the expressions and see for yourself.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlet boundary condition in interFoam | Andrea_85 | OpenFOAM Running, Solving & CFD | 51 | July 20, 2017 13:31 |
Set "location" in CEL expression to local plotting location | Jonathan | CFX | 0 | July 1, 2015 07:21 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 06:25 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |