CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Density as a function of height.

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   September 26, 2000, 05:01
Default Density as a function of height.
BÝrge Kvingedal
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
  Reply With Quote

Old   September 26, 2000, 06:35
Default Re: Density as a function of height.
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
  Reply With Quote

Old   September 26, 2000, 07:39
Default Re: Density as a function of height.
BÝrge Kvingedal
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....
  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
UDF for density as a function of something not necessarily temperature! rmousavibt FLUENT 0 May 12, 2009 10:12
Solver and density function for high speed vapour christian OpenFOAM Running, Solving & CFD 17 April 12, 2007 02:41
User defined function for density gradient ben akih CFX 3 October 10, 2006 21:47
can density be defined as function of pressure H.M.Tang FLUENT 5 March 5, 2003 04:11

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