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

Evaluating expression at a specific location in CFX Pre

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2017, 08:08
Default Evaluating expression at a specific location in CFX Pre
  #1
New Member
 
Brian
Join Date: Mar 2009
Posts: 17
Rep Power: 17
gotang is on a distinguished road
I am running a large transient simulation with a time-dependent, spatially varying source term in CFX. In order to verify that this source term is doing what I actually expect it to while the solution is in progress, I would like to set up a monitor to evaluate the source term expression (at a specific point) so that it is plotted in the Solver Manager/output to the monitors file. Could anyone help me with how to set this up please?

So far, the things I have tried that do not work are:
  • Output Control>Monitor>Monitor Points>Cartesian Coordinates does not work as it is an expression that I want to evaluate, not a variable
  • Output Control>Monitor>Monitor Points>Expression does not work as the expression varies at different locations
  • Creating the following expression (SparkLocation is a monitor point created at the correct location) does not work as the CFX solver will only accept a variable and not an expression as the argument for probe
    Code:
    probe(expression)@SparkLocation

I'm sure that there must be a very simple way to do this, but it still evades me despite trawling through the manuals and extensive use of Google. Any suggestions would be very much appreciated!

Last edited by gotang; August 17, 2017 at 10:13. Reason: Clarification in the question.
gotang is offline   Reply With Quote

Old   August 17, 2017, 10:56
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
That is a documented limitation with a known workaround.

Create an Additional Variable/Option = Algebraic Expression, say MyProbeExpression.

Then, probe(MyProbeExpression)@SparkLocation..
Opaque is offline   Reply With Quote

Old   August 17, 2017, 11:23
Default
  #3
New Member
 
Brian
Join Date: Mar 2009
Posts: 17
Rep Power: 17
gotang is on a distinguished road
Thank you, I think that is exactly what I am looking for. To ask a stupid question though: How do I assign a variable to the expression? I have used "Insert Additional Variable", set "Variable Type" to "Unspecified", but cannot for the life of me figure out how to specify to CFX that it should be defined by the algebraic expression. The closest to instructions that I can find in the documentation is in the CFX Solver Modelling Guide:

Quote:
For example, you could create an Additional Variable for a pressure coefficient by creating an unspecified Additional Variable with dimensionless units and assigning it to an expression
But I cannot figure out how to assign the Additional Variable to an expression. Apologies for the dumb question - I am still converting to CFX from Fluent, and I haven't quite got my head around how cases are set up yet!
gotang is offline   Reply With Quote

Old   August 17, 2017, 11:29
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Go to the domain where the Spark Location is, and activate the Additional Variable.

Additional variables require two steps: definition, and activation.
Opaque is offline   Reply With Quote

Old   August 17, 2017, 11:33
Default
  #5
New Member
 
Brian
Join Date: Mar 2009
Posts: 17
Rep Power: 17
gotang is on a distinguished road
Thank you! That fixes my issue entirely. Much obliged.
gotang 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
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 14:32
Error reading profile data in expression in cfx post banu CFX 4 March 27, 2015 10:03
Radiation interface hinca CFX 15 January 26, 2014 18:11
logical expression for cfx interrupt control wjy-c CFX 0 November 29, 2013 05:30
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 22:25


All times are GMT -4. The time now is 18:00.