Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axisymmetric2D example no solving #2

Open
Foadsf opened this issue Jan 24, 2018 · 3 comments
Open

Axisymmetric2D example no solving #2

Foadsf opened this issue Jan 24, 2018 · 3 comments

Comments

@Foadsf
Copy link

Foadsf commented Jan 24, 2018

I tried to go through this tutorial. things went well just before solving. this is the error I got:

--> FOAM FATAL ERROR:
Unknown TurbulenceModel type RASModel

Valid TurbulenceModel types:

3
(
LES
RAS
laminar
)

From function static Foam::autoPtr<Foam::TurbulenceModel<Alpha, Rho, BasicTu rbulenceModel, TransportModel> > Foam::TurbulenceModel<Alpha, Rho, BasicTurbulen ceModel, TransportModel>::New(const alphaField&, const rhoField&, const volVecto rField&, const surfaceScalarField&, const surfaceScalarField&, const transportMo del&, const Foam::word&) [with Alpha = Foam::geometricOneField; Rho = Foam::geom etricOneField; BasicTurbulenceModel = Foam::incompressibleTurbulenceModel; Trans portModel = Foam::transportModel; Foam::TurbulenceModel<Alpha, Rho, BasicTurbule nceModel, TransportModel>::alphaField = Foam::geometricOneField; Foam::Turbulenc eModel<Alpha, Rho, BasicTurbulenceModel, TransportModel>::rhoField = Foam::geome tricOneField; Foam::volVectorField = Foam::GeometricField<Foam::Vector, Foam::fvPatchField, Foam::volMesh>; Foam::surfaceScalarField = Foam::GeometricFi eld<double, Foam::fvsPatchField, Foam::surfaceMesh>; Foam::TurbulenceModel<Alpha , Rho, BasicTurbulenceModel, TransportModel>::transportModel = Foam::transportMo del]
in file /opt/CFDSupportFOAM4.0/beta/OpenFOAM-dev/src/TurbulenceModels/turbul enceModels/lnInclude/TurbulenceModel.C at line 113.

@Foadsf Foadsf closed this as completed Jan 24, 2018
@Foadsf Foadsf reopened this Jan 24, 2018
@Foadsf
Copy link
Author

Foadsf commented Jan 24, 2018

As explained in this page apparently the syntax of turbulenceProperties in case/constant has changed.

@Foadsf
Copy link
Author

Foadsf commented Jan 24, 2018

I edited the turbulenceProperties file from:
simulationType RASModel;

to

`
simulationType RAS;

RAS
{
RASModel kEpsilon;

turbulence      on;

printCoeffs     on;
}

`

and now I get a new error:

FOAM FATAL IO ERROR:
attempt to read beyond EOF

file: .../Axisymmetric2D/case/system/fvSchemes.divSchemes.default at line 29.

From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&)
in file db/IOstreams/Tstreams/ITstream.C at line 82.

FOAM exiting

From this page it seems that either there is something wrong in the format (e.g. typing mistake) or obviously this tutorial is for an old depriciated version of OpenFOAM.

@Foadsf
Copy link
Author

Foadsf commented Jan 24, 2018

I was able to resolve the issue. I have explained the solution here in this post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant