|
[Sponsors] |
May 20, 2014, 04:23 |
Writing Equation
|
#1 |
New Member
Join Date: Mar 2014
Posts: 23
Rep Power: 12 |
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 |
|
May 20, 2014, 04:37 |
|
#2 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
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 +....) |
|
May 20, 2014, 04:54 |
|
#3 | |
New Member
Join Date: Mar 2014
Posts: 23
Rep Power: 12 |
Quote:
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 |
||
May 20, 2014, 05:00 |
|
#4 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
In CFD-Post--> click on Create Variable (little alpha) and select vector instead of scalar.
|
|
May 20, 2014, 05:04 |
|
#5 |
New Member
Join Date: Mar 2014
Posts: 23
Rep Power: 12 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with cyclic boundaries in Openfoam 1.5 | fs82 | OpenFOAM | 36 | January 7, 2015 01:31 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
How to add bodyforce in momentum equation in viscoelasticFluidFoam? | arshoon | OpenFOAM Running, Solving & CFD | 0 | April 9, 2013 11:03 |
How to? Extra term in k-e equation. Implicit-Explicit | be_inspired | OpenFOAM Programming & Development | 1 | March 19, 2013 11:50 |
Poisson equation vs continuity equation | DJ | Main CFD Forum | 1 | August 5, 2004 21:01 |