Error using nuEff
I am trying to add the following transport equation to rhoSimpleFoam:
Solve ( fvm::ddt(rho,Z) + fvm:: div(phi,Z) - fvm::laplacian(nuEff(),Z) ); When I compile, I get the following error : "'nuEff() not declared in this scope " How do I declare nuEff()? |
nuEff is not defined in rhoSimpleFoam.C What should quantity should be stored in the field. In multiphaseEulerFoam/UEqns.H a nuEff is defined (see https://github.com/OpenFOAM/OpenFOAM...am/UEqns.H#L13) You have to add a similar definition to your code (of course depending on the physical meaning of your field)
|
Thank you for your answer. The piece of code compiles when modified as follows:
volScalarField nuEff( turbulence->nut() + turbulence-> nu()); |
All times are GMT -4. The time now is 02:26. |