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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2024, 13: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, 05:51
Default
  #2
Member
 
MNM
Join Date: Aug 2017
Posts: 67
Rep Power: 8
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, 07: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

Reply

Tags
simplefoam, viscosity models

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:40
F1 Wing - Physics Models selection dylz Main CFD Forum 0 November 25, 2019 08:15
wall y+ and turbulence models narayanan FLUENT 1 May 13, 2019 10:18
Eddy viscosity hypothesis versus Reynolds stress models JuPa ANSYS 0 August 12, 2013 06:20
Differences between simpleFoam an turbFoam francois OpenFOAM Running, Solving & CFD 3 November 15, 2005 14:03


All times are GMT -4. The time now is 10:22.