CFD Online Logo CFD Online URL
Home > Forums > CFX

CCL / Monitor Object Problem

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 13, 2005, 15:21
Default CCL / Monitor Object Problem
James Date
Posts: n/a

Here's my problem I want to calculate the force on a hydrofoil in a different coordinate system from the global axis system and output the calculated value at each iteration. However, it seems that when I call the expression via the 'monitor object' field an error occurs when the .def file is passed to the solver. I think I've done anything right:

1) Created a new coordinate system

2) Created and expression which calculates the force in the new coordinate system

3) Created a monitor parameter which calls the force expression

Here's the command file expresson and monitor object & user coord commands used:




UsrAlpha = 0 [deg]

UsrDrag = (force_x_NewCoord()@Hydrofoil*cos(UsrAlpha))+(forc e_y_NewCoord()@Hydrofoil*sin(UsrAlpha)





Axis 3 Point = 0.25 [m], 0 [m], 1 [m]

Coord Frame Type = Cartesian

Option = Axis Points

Origin Point = 0.25 [m], 0 [m], 0 [m]

Plane 13 Point = 1 [m], 0 [m], 0 [m]

Reference Coord Frame = Coord 0






Expression Value = UsrDrag

Option = Expression




Error Message:

Error in setting: "UsrDrag" via the expression: (force_x_NewCoord()@Hydrofoil*cos(UsrAlpha))+(forc e_y_NewCoord()@Hydrofoil*sin(UsrAlpha)) (force_x_: read successfully, and then error found at item: NewCoord syntax error Error processing expression: Expression Value = UsrNormal


| An error has occurred in cfx5solve: | | | | C:\Program Files\Ansys Inc\CFX\CFX-5.7.1\bin\winnt\ccl2flow.exe | | exited with return code 3. |


Has anyone got any idea why this error is occuring? Is it possible to monitor forces in a different coordinate frame?


  Reply With Quote

Old   May 13, 2005, 17:07
Default Re: CCL / Monitor Object Problem
Juan Carlos
Posts: n/a
Dear James,

Unfortunately, the CFX solver does not support the coordinate frame syntax you are using.. Only CFX-Post does.

You probably have to modify your equations for converting from the global coordinate frame to the local coordinate frame..

Good luck, Juan Carlos
  Reply With Quote

Old   May 13, 2005, 18:37
Default Re: CCL / Monitor Object Problem
James Date
Posts: n/a
Cheers Carlos

I guess the best way to get around this problem is to transform the mesh so the new axis system is consistent with the global axis system and output the force is in this manner. A bit of a shame really, it would be quite straight forward for ANSYS to code the coordinate transform into CFX-5.7.1 to avoid having to do this. So really, the user coordinate system is only useful for setting up boundary conditions and possibly re-orientating mesh's.


  Reply With Quote

Old   September 28, 2010, 23:32
New Member
Join Date: Sep 2010
Posts: 8
Rep Power: 7
alac1407 is on a distinguished road
I have a problem to create inlet velocity condition.
I want to creat a funtion to simulate inlet velocity
This function is :
(S/2) * (n*3.14/30) * (sin(pi*t/30) + 0.5 * (1/3.2) * sin(pi*t/15))

With t is time ( that is reference variable in CFX language )

Thank you very much in advance !
alac1407 is offline   Reply With Quote

Old   September 29, 2010, 02:23
Senior Member
Join Date: Mar 2009
Posts: 556
Rep Power: 11
Lance is on a distinguished road
Make the sin functions dimensionless, like: (sin(pi*t/30[s]), and add a velocity unit somewhere in your expression. I guess you have defined S and n before?
Lance is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 08:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13

All times are GMT -4. The time now is 21:27.