|
[Sponsors] |
can user define a location dependent density in Define_property udf macro? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Peter Maroul
Join Date: May 2018
Posts: 52
Rep Power: 8 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 ![]() |
The Fluent manual shows how to make it depend on temperature. The example reads temperature as
Code:
real T = C_T(c,t); Code:
real xc[ND_ND]; C_CENTROID(xc,c,t); Code:
1000+0.00001*cx[0]+0.00001*cx[1] |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Peter Maroul
Join Date: May 2018
Posts: 52
Rep Power: 8 ![]() |
Thank you Sir for your kind help.
That worked excellent. Good Luck and best wishes. |
|
![]() |
![]() |
![]() |
Tags |
define_property, density, udf, viscosity |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time dependent sinus velocity inlet UDF | LinW | Fluent UDF and Scheme Programming | 2 | December 7, 2018 11:22 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 11:48 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 10:19 |
DEFINE_DPM_OUTPUT macro UDF HELP | Puneet | FLUENT | 3 | November 28, 2003 10:55 |