CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Why do I only see 2 models when I'm using simpleFOAM (https://www.cfd-online.com/Forums/openfoam-solving/255114-why-do-i-only-see-2-models-when-im-using-simplefoam.html)

theGodfather1994 March 19, 2024 13:46

Why do I only see 2 models when I'm using simpleFOAM
 
I want to apply powerLaw model with simpleFOAM, but it shows the following error:

--> FOAM FATAL ERROR:
Unknown viscosity model powerLaw

Valid viscosity models are :

2
(
Newtonian
constant
)


From function static Foam::autoPtr<Foam::viscosityModel> Foam::viscosityModel::New(const Foam::fvMesh&, const Foam::word&)
in file viscosityModels/viscosityModel/viscosityModelNew.C at line 58.

How do I include the powerLaw model? Thank you

SHUBHAM9595 April 10, 2024 05:51

Hi Zhibo,


Can you provide more details on which version of FOAM u r using. Also, this maybe just a small typing error. A quick check would be the age old "banana" trick. Just replace/mis-spell the existing model name (Newtonian in this example) and you should be able to see something similar to what is shown below

Code:

Unknown viscosityModel type Newto

Valid viscosityModel types :

12
(
ArrheniusBirdCarreau
ArrheniusCasson
ArrheniusCrossPowerLaw
ArrheniusHerschelBulkley
ArrheniusNewtonian
BirdCarreau
Casson
CrossPowerLaw
HerschelBulkley
Newtonian
powerLaw
strainRateFunction
)


file: constant/transportProperties at line 17 to 19.

    From static Foam::autoPtr<Foam::viscosityModel> Foam::viscosityModel::New(const Foam::word&, const Foam::dictionary&, const volVectorField&, const surfaceScalarField&)
    in file viscosityModels/viscosityModel/viscosityModelNew.C at line 57.

And probably then directly copy the "powerLaw" from the terminal to the transportProperties

theGodfather1994 April 10, 2024 07:00

Thank you! The problem has been solved! It's because I use OpenFOAM10 but the example I followed is based on earlier versions. These non-Newtonian models have been moved to other places.


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