CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Writing Equation (https://www.cfd-online.com/Forums/cfx/135916-writing-equation.html)

brahmarishiraj May 20, 2014 03:23

Writing Equation
 
Dear Friends,

I have to calculate an expression which includes a term as written below:

|Ui-Vi|

Where Ui and Vi are velocity vectors of gas and particles.

Could you plz suggest me how to write these vectors in expression.
In results I found velocities in x, y and z direction available in drop down list.

Thanks

mvoss May 20, 2014 03:37

Subtract each component and save them in an Expression
myVelU = Fluid.Velocity u - Gas.Velocity u
myVelV =...
myVelW=...
and create a User Variable Vector from these 3 components.

Or you can skip the variable and apply the norm directly to you expression like
myVelNorm = sqrt((myVelU)^2 +....)

brahmarishiraj May 20, 2014 03:54

Quote:

Originally Posted by mvoss (Post 493004)
Subtract each component and save them in an Expression
myVelU = Fluid.Velocity u - Gas.Velocity u
myVelV =...
myVelW=...
and create a User Variable Vector from these 3 components.

Or you can skip the variable and apply the norm directly to you expression like
myVelNorm = sqrt((myVelU)^2 +....)


Dear Matthias,

Thank you for the reply, I will follow this:

"myVelNorm = sqrt((myVelU)^2 +....)"

At the same time could you plz suggest me on how to create a User Variable Vector?


Regards

mvoss May 20, 2014 04:00

In CFD-Post--> click on Create Variable (little alpha) and select vector instead of scalar.

brahmarishiraj May 20, 2014 04:04

Quote:

Originally Posted by mvoss (Post 493009)
In CFD-Post--> click on Create Variable (little alpha) and select vector instead of scalar.


Thank you again Matthias, its great.


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