CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Density as a function of height.

Register Blogs Community New Posts Updated Threads Search

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

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

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

Reply


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
can density be defined as function of pressure H.M.Tang FLUENT 7 July 7, 2019 00:53
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


All times are GMT -4. The time now is 14:07.