CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Compressible nonNewtonian solver (http://www.cfd-online.com/Forums/openfoam-solving/58514-compressible-nonnewtonian-solver.html)

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 :
<list>
-------

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

I hope you can help me with this.

Kind regards,
Berry

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

OpenFOAM-1.5\src\transportModels\incompressible\Make\files

- compile everything

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

a new libincompressibleTransportModels.so 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.