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

CCL / Monitor Object Problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2005, 16:21
Default CCL / Monitor Object Problem
  #1
James Date
Guest
 
Posts: n/a
Hi

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:

LIBRARY:

CEL:

EXPRESSIONS:

UsrAlpha = 0 [deg]

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

END

END

------------------------------------------------------

COORD FRAME: NewCoord

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

END

------------------------------------------------------

OUTPUT CONTROL:

MONITOR OBJECTS:

MONITOR POINT: MonitorDrag

Expression Value = UsrDrag

Option = Expression

END

END

------------------------------------------------------

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?

Thanks

James
  Reply With Quote

Old   May 13, 2005, 18:07
Default Re: CCL / Monitor Object Problem
  #2
Juan Carlos
Guest
 
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, 19:37
Default Re: CCL / Monitor Object Problem
  #3
James Date
Guest
 
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.

Thanks

James
  Reply With Quote

Old   September 29, 2010, 00:32
Default
  #4
New Member
 
hoaiphuong
Join Date: Sep 2010
Posts: 8
Rep Power: 16
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, 03:23
Default
  #5
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
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

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
[Other] engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 09:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


All times are GMT -4. The time now is 16:05.