CFD Online Logo CFD Online URL
Home > Forums > CFX

Passing Values in Multiple points by 1 CEL Function

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

LinkBack Thread Tools Display Modes
Old   May 5, 2011, 16:06
Question Passing Values in Multiple points by 1 CEL Function
Join Date: Feb 2011
Location: Canada
Posts: 32
Rep Power: 8
Araz is on a distinguished road

Does anyone know haw we can pass multiple values from CFX to a compiled subroutine using one function?
In CFX documentation I can only find cFX expressions which pass only a single value to a subroutine.

For example, consider that we need to pass the values of static pressure, Temperature and X,Y,Z coordinates of all nodes located on a boundary to the subroutine (named TEST) using 1 function.
Is it right to define the arguments in the subroutine as following?

Output= RET(1:NLOC,1)
Do these statements include the corresponding variable at all nodes?
if yes,
Then I will create a User CEL Function in cfx and also write this function as an expression in our ccl file:
TEST= Blade Function (P,T,X,Y,Z,aitern)
and now I need to define these arguments in cfx (this part is the main problem) : can I write something like this:
Z=ZGlobal@blade ???

and since my output is displacement of nodes in Y direction, then I can write:
Ydisp= TEST,
and when it comes to specify my boundary conditions for the blade I will put this expression in the place where I specify the mesh motion in Y direction.
if this procedure is not correct, please provide me with some guidance.
Thank you,

Last edited by Araz; May 5, 2011 at 18:54.
Araz 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
CEL function in CFX ehsanshams CFX 3 October 14, 2010 21:27
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
help on mass sink using CEL function buhkuh CFX 0 March 19, 2008 00:57
ICEM clustering of mesh points and multiple edges webhaw CFX 4 July 25, 2007 16:29
CEL insertion of points into domain? Adrijana CFX 1 December 7, 2006 08:48

All times are GMT -4. The time now is 15:57.