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

CFX-PRE monitor point... multi-variable arguments for locator based functions

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By stumpy
  • 2 Post By jaimesdiegop

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2011, 08:37
Default CFX-PRE monitor point... multi-variable arguments for locator based functions
  #1
New Member
 
Join Date: Mar 2011
Posts: 2
Rep Power: 0
luke84 is on a distinguished road
Is it somehow possible to do as the title of the thread reads, and define a multi-variable argument, locator based function?

A little more info:
My simulation involves a jet of fluid, pointing in the X positive direction. Using CFX_PRE V13
I want to find the spread angle of the jet, i.e angle between the majority of the vectors and the vector (1,0,0) (x-positive direction)

So I start with the equation for an angle between 2 vectors:
\alpha = \text{acos} \left( \frac{\vec{u} \bullet \vec{v}}{\left| \vec{u}\right| \left| \vec{v} \right|} \right)

where u is the vector (1,0,0) and v is the velocity vector at the mesh locator OUTLET.

since the u vector is fully dercribed in only one direction and is the unity vector, the formula can be simplified to:
\alpha = \text{acos} \left( \frac{v_{1} }{ \left| \vec{v} \right|} \right)
*Note; here alpha is actually defining the half spread angle.

This could be set as an expression as follows:
alpha=acos(Velocity u*1 [m s^-1]/(Velocity u^2+Velocity v^2+Velocity w^2))
*Note I multiply with 1 [m s^-1] to keep dimensions consistent.

Now if I set a monitor point as:
massFlowAve(alpha)@OUTLET
I get a error message along the lines of:

"The function 'massFlowAve' referenced in parameter 'Expression Value' in object '/FLOW:Flow Analysis 1/OUTPUT CONTROL/MONITOR OBJECTS/MONITOR POINT:ALPHA_MONITOR' has an invalid argument, 'alpha'. Only arguments that consist of a single recognised variable name are supported by the solver."

As far as I can tell, the problem above basically means that I can only define one variable (e.g Velocity u) and not 2 or 3 variables in the locator based function; massFlowAve().
Note that the exact same method DOES work for me in CFX-POST. Thas is defining the same expression, and using the function calculator.
So does anyone have an idea how to circumvent this problem in CFX-PRE??

Thanks in advance!
luke84 is offline   Reply With Quote

Old   November 17, 2011, 15:52
Default
  #2
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
There's an easy way to do this... create an algebraic Additional Variable equal to alpha and then use the AV as the argument to the locator based function.
Mazze[ITA] and aero_head like this.
stumpy is offline   Reply With Quote

Old   November 17, 2011, 16:22
Default
  #3
New Member
 
Join Date: Mar 2011
Posts: 2
Rep Power: 0
luke84 is on a distinguished road
You're right! works perfect. Thanks for the help.
luke84 is offline   Reply With Quote

Old   November 17, 2011, 23:16
Default
  #4
D.B
Member
 
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15
D.B is on a distinguished road
Hi,
I tried to do the same, but I am not getting how to define algebric additional variable. I was able to define AV but the problem is I am not getting an option of writing an expression for it or giveing its type as algebric, i searched CFX help but to no avail.
__________________
-D.B
D.B is offline   Reply With Quote

Old   November 18, 2011, 10:42
Default
  #5
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
After you create the AV, you need to edit your domain to enable the AV in that domain. It's in the domain settings that you say it's algebraic.
stumpy is offline   Reply With Quote

Old   November 19, 2011, 00:15
Default
  #6
D.B
Member
 
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15
D.B is on a distinguished road
Thanks,
Now I am getting it.
__________________
-D.B
D.B is offline   Reply With Quote

Old   February 8, 2015, 20:51
Default
  #7
New Member
 
Diego Jaimes
Join Date: Feb 2015
Posts: 8
Rep Power: 11
jaimesdiegop is on a distinguished road
Hi, I really tried to do the same that you posted. I am trying to set a boundary condition in a multi-phase simulation dependent of (Fluid1. Volume Fraction*Velocity v)=VC= my AV, but when I tried to define the boundary condition I got this messaje

"The Additional Variable 'VC' referenced in parameter 'Normal Speed' in object '/FLOW:Flow Analysis 1/DOMAINefault Domain/BOUNDARY:top/BOUNDARY CONDITIONS/MASS AND MOMENTUM' is fluid-dependent and therefore requires a fluid prefix."

How can I set a prefix on my AV?

Thank you for your help
hellowqy and Gita like this.

Last edited by jaimesdiegop; February 9, 2015 at 11:18.
jaimesdiegop is offline   Reply With Quote

Old   March 19, 2021, 01:25
Default
  #8
New Member
 
YangLu
Join Date: Sep 2020
Posts: 10
Rep Power: 5
yanglu is on a distinguished road
Quote:
Originally Posted by jaimesdiegop View Post
Hi, I really tried to do the same that you posted. I am trying to set a boundary condition in a multi-phase simulation dependent of (Fluid1. Volume Fraction*Velocity v)=VC= my AV, but when I tried to define the boundary condition I got this messaje

"The Additional Variable 'VC' referenced in parameter 'Normal Speed' in object '/FLOW:Flow Analysis 1/DOMAINefault Domain/BOUNDARY:top/BOUNDARY CONDITIONS/MASS AND MOMENTUM' is fluid-dependent and therefore requires a fluid prefix."

How can I set a prefix on my AV?

Thank you for your help
Hi, I have the same problem. Do you manage to solve this problem?

Thnaks.
yanglu is offline   Reply With Quote

Old   March 19, 2021, 05:41
Default
  #9
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,835
Rep Power: 27
Gert-Jan will become famous soon enough
In 2015, Diego wanted to evaluate Fluid1.Volume Fraction*Velocity v

I guess this has to be: Fluid1.Volume Fraction*Fluid1.Velocity v

In other words, the variable Velocity v that is evaluated needs to be linked to a defined material, which is Fluid1 in this particular case.
Gert-Jan 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
mesh from Workbench Simulation to Cfx Pre? Dai CFX 6 November 11, 2006 12:19
No.of Elements in ICEM and CFX Pre Manu CFX 1 August 25, 2006 07:20
CFX 5.7.1 PRE and solver won't start daniel CFX 1 January 20, 2006 10:09
Solving Additional Variable in CFX? Tuks CFX 6 November 18, 2005 11:40
CFX 5.7 pre Neser CFX 0 January 27, 2005 11:22


All times are GMT -4. The time now is 06:25.