repeating variables in one equation
I am trying to introduce Cf as a volScalarField but I get errors when I compile the code. The issue is that there is another Cf in the right hand side of the equation!
volScalarField Cf = 1.0/(((mm*ubulk/nul)*Cf)/0.435+5.05); When I remove the Cf from the right hand side every thing works well. Any idea about writing this equation in OpenFOAM format? Thanks. |
The problem is not the equation. You can modify variables in this way.
But first you have to define Cf before you can use it on the right hand side of the equation. Code:
// define Cf |
All times are GMT -4. The time now is 08:14. |