CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Compressible nonNewtonian solver (

berryk September 26, 2008 14:52

Hi all I wonder if there is
Hi all

I wonder if there is a compressible nonNewtonian solver available for OpenFOAM..?

If not: would it be possible to alter the current compressible solver to handle nonNewtonian fluids?

And finally: I added a new viscosity model by copying and then changing the BirdCarreau model, but after compiling it's not working, since it is unknown to the solver:

Unknown viscosityModel type vModel

Valid viscosityModels are :

How can I let the nonNewtonianIcoFoam solver 'know' I added a new model?

I hope you can help me with this.

Kind regards,

floooo September 30, 2008 07:41

In order to add a new viscosit
In order to add a new viscosity model you have to recompile the transport library

- copy the new viscosityModels folder in
OpenFOAM-1.5\src\transportModels\incompressible\viscosityMo dels

- add a new line in the file "files" in order to add your new model during compilation


- compile everything

Cd ~/OpenFOAM/OpenFOAM-1.5/src/transportModels
wmake libso incompressible

a new will be created

now you can recompile nonNewtonianIcoFoam and the new model will be added

I don't know if you can creat a compressible model in the folder incompressible

All times are GMT -4. The time now is 00:29.