CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   how to define user variables (https://www.cfd-online.com/Forums/cfx/86124-how-define-user-variables.html)

Wendy1984 March 15, 2011 01:56

how to define user variables
 
Hello everyone,

I want to write a user variable in CFX-pre for shear stress since there is only shear strain rate available in CFX-post:

Shear stress = shear strain rate x dynamic viscocity

Is there an example for that?

Thanks,

Wendy

mfinke March 15, 2011 05:22

user variabels
 
Hi Wendy,

define your expression in CFX-Pre, after solving read in the result file in CFX-Post and define there a user scalar variable which references the expression defined in Pre.

best regards

Matthias

soni_sth June 20, 2012 16:40

Hi matthias,

I would happy if you could tel me how we can make user defined variables in CFX post.

I would really appreciate.

Thanks

mfinke June 22, 2012 05:32

user variable
 
Dear soni_sth,

for example if you are analyzing a pipe flow, you could add scalar or vector user definied variables into CFX-Post. For example i added "dynamic pressure"

- select "Variables" tab in CFX - Post
- right click into "Variables" white window
- select new or edit in command
- the data you want to use must be there, i mean a variable from solution or an expression defined in CFX - Pre

in the command edior your additional variable "dynamic pressure" should look like this:

USER SCALAR VARIABLE: dynamic pressure
Boundary Values = Conservative
Calculate Global Range = On
Expression = 0.5*Fluid.Density*(Fluid.Velocity)^2
Recipe = Expression
Variable to Copy = Pressure
Variable to Gradient = Pressure
END


hope this is what your are looking for,
best regards

MAtthias

soni_sth June 22, 2012 12:34

Thanks a lot Matthias.


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