|
[Sponsors] |
September 28, 2014, 03:29 |
DEFINE_PROPERTY for solid density
|
#1 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
Hi,
I'm trying to set the density of aluminum via a very simple interpreted DEFINE_PROPERTY udf : Code:
#include "udf.h" DEFINE_PROPERTY(my_density, c, t) { real rho; rho=1000; return rho; } Last edited by macfly; September 28, 2014 at 13:44. |
|
September 28, 2014, 05:20 |
|
#2 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Maybe a bug?
Here is the same problem: http://www.cfd-online.com/Forums/flu...d-density.html However it seems fluent use the custom defined values for calculation. Which fluent version do you have? |
|
September 28, 2014, 08:21 |
|
#3 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
Yes, I saw that other thread.
I'm using 14.5.7 |
|
September 28, 2014, 14:41 |
|
#4 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
My udf works fine for setting the Specific Heat or Thermal Conductivity, it's just with the Density that it doesn't work.
|
|
September 29, 2014, 01:29 |
|
#5 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
Ok I retrieved the value of the solid density with C_R(c,t) within a DEFINE_EXECUTE_AT_END macro and I get the value I set in my udf. It looks as if it's just a postprocessing bug.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Current density visualisation (PEM fuel cell add-on module) | pchoopanya | FLUENT | 10 | August 21, 2023 15:33 |
How to model Salinity, density, fresh water & sea water | grayback87 | FLUENT | 3 | December 30, 2014 03:00 |
A problem about density in liquid air definition | alloveyou | CFX | 2 | June 14, 2012 15:20 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |