CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Error using nuEff (https://www.cfd-online.com/Forums/openfoam-programming-development/181134-error-using-nueff.html)

mariojsn December 8, 2016 00:53

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()?

jherb December 8, 2016 06:26

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)

mariojsn December 9, 2016 00:39

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.