|
[Sponsors] |
August 13, 2018, 00:05 |
Use autoCreateOmega in new solver
|
#1 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
Hi all,
I am trying to use the function autoCreateOmega which can be found in Code:
foam-extend-4.0/src/turbulenceModels/incompressible/RAS/lnInclude/backwardsCompatibilityWallFunctions.H Code:
#include "fvCFD.H" #include "simpleControl.H" #include "wallDist.H" #include "backwardsCompatibilityWallFunctions.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) { # include "setRootCase.H" # include "createTime.H" # include "createMesh.H" simpleControl simple(mesh); # include "createFields.H" Code:
Info<< "Reading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Reading field k\n" << endl; volScalarField k ( IOobject ( "k", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Reading field omega\n" << endl; //tmp<volScalarField> autoCreateOmega //volScalarField autoCreateOmega volScalarField omega ( IOobject ( "omega", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), //mesh autoCreateOmega("omega", mesh, U.db()) ); Code:
In file included from solver.C:48:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:50:46: error: ‘autoCreateOmega’ was not declared in this scope autoCreateOmega("omega", mesh, U.db()) ^ createFields.H:50:46: note: suggested alternative: In file included from solver.C:37:0: /home/foam/foam-extend-4.0/src/turbulenceModels/incompressible/RAS/lnInclude/backwardsCompatibilityWallFunctions.H:98:25: note: ‘Foam::incompressible::autoCreateOmega’ tmp<volScalarField> autoCreateOmega ^ solver.dep:714: recipe for target 'Make/linux64GccDPOpt/solver.o' failed make: *** [Make/linux64GccDPOpt/solver.o] Error 1 Last edited by Jack001; August 13, 2018 at 20:08. |
|
Tags |
c++, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent Adjoint Solver? | ex10148 | FLUENT | 16 | September 28, 2018 09:11 |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
Divergence problem | Smaras | FLUENT | 13 | February 21, 2013 06:03 |
3d vof | Smaras | FLUENT | 2 | February 19, 2013 07:58 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |