# User CEL Function and CFD Post

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

 November 21, 2011, 14:13 User CEL Function and CFD Post #1 New Member   John Chastain Join Date: Nov 2011 Posts: 3 Rep Power: 14 In CFX-Pre, I have defined an expression that calls a user cel function (FORTRAN). I am using this user cel function to quantify the spray angle in a continuous-continuous multiphase water nozzle analysis (water sprayed into air). I have monitored the output of this function during the steady state solution and the final calculated angle is reasonable. This is all great but when I go to CFD Post, my user cel function is not defined. I need to have access to the output of the user cel function, the spray angle, as a Workbench Output Parameter. How does one make CFD Post recognize user cel functions? Any work-arounds? __________________ John Chastain Analytical Engineer Techtronic Industries NA, Inc.

 November 21, 2011, 15:02 #2 Senior Member   Join Date: Apr 2009 Posts: 531 Rep Power: 21 You need to create an algebraic Additional Variable in CFX-Pre and assign its value as the output from the User CEL Function. The Additional Variable will be available in CFD-Post. chastain likes this.

 November 21, 2011, 17:40 #3 New Member   John Chastain Join Date: Nov 2011 Posts: 3 Rep Power: 14 worked like a charm!! __________________ John Chastain Analytical Engineer Techtronic Industries NA, Inc.

 November 21, 2011, 17:40 #4 New Member   John Chastain Join Date: Nov 2011 Posts: 3 Rep Power: 14 Many thanks, stumpy!!! __________________ John Chastain Analytical Engineer Techtronic Industries NA, Inc.

 September 24, 2013, 13:58 #5 New Member   Join Date: Jul 2013 Posts: 2 Rep Power: 0 Hi John and Stumpy, Right now I am playing with "Chapter 19: Air Conditioning Simulation" where user subroutine TStat_Control.F is used. Say, I want to see the TSET in CFD post which is defined in user subroutine as TSET = RET(1:NLOC,1) (i.e. an output from subroutine). I figured out that I need to declare algebraic additional variable and I need to define Add.var.value. Can you please let me know how to define Add.var.value? Note that I defined Add.var.value = Thermostat Function (T) but it gives error. Your help is highly appreciated