CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Why do I only see 2 models when I'm using simpleFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2024, 14:46
Default 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
theGodfather1994 is on a distinguished road
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
theGodfather1994 is offline   Reply With Quote

Old   April 10, 2024, 06:51
Default
  #2
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9
SHUBHAM9595 is on a distinguished road
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
SHUBHAM9595 is offline   Reply With Quote

Old   April 10, 2024, 08:00
Default
  #3
New Member
 
Zhibo
Join Date: Feb 2021
Posts: 4
Rep Power: 5
theGodfather1994 is on a distinguished road
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.
theGodfather1994 is offline   Reply With Quote

Old   November 4, 2024, 22:48
Default
  #4
New Member
 
Join Date: Jun 2024
Posts: 7
Rep Power: 2
Huy_Nguyen is on a distinguished road
Hi, I also get the same issue, could you please provide more details on how you solved it? Thank you very much.
Huy_Nguyen is offline   Reply With Quote

Reply

Tags
simplefoam, viscosity models


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:20.