CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Problems with autoCreateK (http://www.cfd-online.com/Forums/openfoam-pre-processing/130745-problems-autocreatek.html)

MaLa March 3, 2014 19:19

Problems with autoCreateK
 
Hello,

I tried specifying in my turbulence model the following lines:

//START
k_
(
IOobject
(
"k",
runTime_.timeName(),
mesh_,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
autoCreateK("k", mesh_)
),
//END

When I compile the model in OpenFOAM version 2.2x, I get the following error:

In constructor ‘Foam::incompressible::RASModels::zetaF0::zetaF0(c onst volVectorField&, const surfaceScalarField&, Foam::transportModel&, const Foam::word&, const Foam::word&)’:
error: ‘autoCreateK’ was not declared in this scope

Does anybody know how to tackle this problem? Or what would be an alternate way to specify the same for this version of OF (22x)?
Thanks so much.


All times are GMT -4. The time now is 00:50.