|
[Sponsors] |
Why do I only see 2 models when I'm using simpleFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 19, 2024, 14:46 |
Why do I only see 2 models when I'm using simpleFOAM
|
#1 |
New Member
Zhibo
Join Date: Feb 2021
Posts: 4
Rep Power: 5 |
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 |
|
April 10, 2024, 06:51 |
|
#2 |
Member
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9 |
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. |
|
April 10, 2024, 08:00 |
|
#3 |
New Member
Zhibo
Join Date: Feb 2021
Posts: 4
Rep Power: 5 |
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.
|
|
November 4, 2024, 22:48 |
|
#4 |
New Member
Join Date: Jun 2024
Posts: 7
Rep Power: 2 |
Hi, I also get the same issue, could you please provide more details on how you solved it? Thank you very much.
|
|
Tags |
simplefoam, viscosity models |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Latest Developed Turbulence Models | Tobi | OpenFOAM Running, Solving & CFD | 15 | August 26, 2020 12:40 |
F1 Wing - Physics Models selection | dylz | Main CFD Forum | 0 | November 25, 2019 09:15 |
wall y+ and turbulence models | narayanan | FLUENT | 1 | May 13, 2019 11:18 |
Eddy viscosity hypothesis versus Reynolds stress models | JuPa | ANSYS | 0 | August 12, 2013 07:20 |
Differences between simpleFoam an turbFoam | francois | OpenFOAM Running, Solving & CFD | 3 | November 15, 2005 15:03 |