CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   User CEL Function and CFD Post (

chastain November 21, 2011 15:13

User CEL Function and CFD Post
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?

stumpy November 21, 2011 16:02

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 November 21, 2011 18:40

worked like a charm!!

chastain November 21, 2011 18:40

Many thanks, stumpy!!!

Sujan Dutta September 24, 2013 13:58

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

All times are GMT -4. The time now is 22:01.