|
[Sponsors] |
September 26, 2000, 06:01 |
Density as a function of height.
|
#1 |
Guest
Posts: n/a
|
Hello, I want to define a density profile as a function of height only. I do not want to use temperature in my simulation. Is this possible. I am planning to simulate waves over a mountain in a stratified ocean. Is is possible to define a profile in the materials panel?? Thanks for any help....
Regards Børge |
|
September 26, 2000, 07:35 |
Re: Density as a function of height.
|
#2 |
Guest
Posts: n/a
|
I think you have to write a user defined function in c++. Than you have to compile it in Fluent!Some examples are given in the fluent manual. I don't think that this is possible to define in the materials panel. Only the temperature dependence can be defined in the material panel.
Regards Philipp |
|
September 26, 2000, 08:39 |
Re: Density as a function of height.
|
#3 |
Guest
Posts: n/a
|
I have tried to write a UDF with the density varying whith height but I can not get it right. I have defined the velocity as a function of height, using UDF and that works well. I have now also defined the temperature at the inlet as function of height, but it does not work for density. Maybe I just have to use the temperature profile as a reference for the density although this is not what I wanted to do. This leads to unwanted convections....
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
can density be defined as function of pressure | H.M.Tang | FLUENT | 7 | July 7, 2019 01:53 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
UDF for density as a function of something not necessarily temperature! | rmousavibt | FLUENT | 0 | May 12, 2009 11:12 |
Solver and density function for high speed vapour | christian | OpenFOAM Running, Solving & CFD | 17 | April 12, 2007 03:41 |
User defined function for density gradient | ben akih | CFX | 3 | October 10, 2006 22:47 |