CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Implementating a new turbulence model (

wrangle August 21, 2008 04:37

Dear all I am trying to imp
Dear all

I am trying to implement a new turbulence model. I am trying to change the production of turbulent kinetic energy term which is given by the volScalarvector G term. I defined the necessary terms but I want to inlcude an if/else statement based on the vorticity and strain rate so that the volScalarvector G will have certain values. When I try to include an if/else statement I get an error.

no match for 'operator<' in 'N < 0'
/home/ilau/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/UList.C:158: note: candidates are: bool Foam::UList<t>::operator<(const>&) const [with T = double]

It does not seem to recognize the operator. Can anyone tell me what is the error

All times are GMT -4. The time now is 11:38.