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

How to monitor an expression on a "ghost" location?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2018, 18:51
Default How to monitor an expression on a "ghost" location?
  #1
Member
 
Join Date: Oct 2017
Posts: 89
Rep Power: 8
Guille1811 is on a distinguished road
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?
Guille1811 is offline   Reply With Quote

Old   February 19, 2018, 01:47
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   February 19, 2018, 03:21
Default
  #3
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
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.
Gert-Jan is offline   Reply With Quote

Old   February 19, 2018, 10:25
Default
  #4
Member
 
Join Date: Oct 2017
Posts: 89
Rep Power: 8
Guille1811 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
I was rhinking to do somthing like that, but i need it to make it work in a bit more elegant way. Im thinking of th following:

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...
Guille1811 is offline   Reply With Quote

Old   February 19, 2018, 10:33
Default
  #5
Member
 
Join Date: Oct 2017
Posts: 89
Rep Power: 8
Guille1811 is on a distinguished road
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
Guille1811 is offline   Reply With Quote

Old   February 19, 2018, 10:53
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Monitor points are not mesh locators. So you cannot use them in expressions like maxVal
Gert-Jan is offline   Reply With Quote

Old   February 19, 2018, 10:59
Default
  #7
Member
 
Join Date: Oct 2017
Posts: 89
Rep Power: 8
Guille1811 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Monitor points are not mesh locators. So you cannot use them in expressions like maxVal
Yes indeed, i was not suggesting to use that specific function as the solution, it was just to make my intention clear. Sorry if i expressed myself badly.
Guille1811 is offline   Reply With Quote

Old   February 19, 2018, 11:03
Default
  #8
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
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.
Gert-Jan is offline   Reply With Quote

Old   February 19, 2018, 11:18
Default
  #9
Member
 
Join Date: Oct 2017
Posts: 89
Rep Power: 8
Guille1811 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
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.
Thanks for the response.

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) ?
Guille1811 is offline   Reply With Quote

Old   February 19, 2018, 11:54
Default
  #10
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
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.
Gert-Jan is offline   Reply With Quote

Old   February 19, 2018, 16:42
Default
  #11
Member
 
Join Date: Oct 2017
Posts: 89
Rep Power: 8
Guille1811 is on a distinguished road
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...
Guille1811 is offline   Reply With Quote

Old   February 19, 2018, 16:50
Default
  #12
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
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
Gert-Jan is offline   Reply With Quote

Old   February 19, 2018, 20:15
Default
  #13
Member
 
Join Date: Oct 2017
Posts: 89
Rep Power: 8
Guille1811 is on a distinguished road
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?
Guille1811 is offline   Reply With Quote

Old   February 20, 2018, 05:32
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks 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
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


All times are GMT -4. The time now is 11:20.