|
[Sponsors] |
UDF has two DEFINE_PROPERTY statemens, only one available in fluent |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 28, 2012, 15:54 |
UDF has two DEFINE_PROPERTY statemens, only one available in fluent
|
#1 | |
New Member
Augusto Fontan
Join Date: Aug 2012
Location: Brazil
Posts: 13
Rep Power: 14 |
I have made a simple UDF for ideal gas, in order to compare the results with fluent's own ideal gas parameters running the same case. The UDF has two DEFINE_PROPERTY macros, one for the density, the other for the speed of sound, as follows:
Quote:
Thanks in advance for the help. |
||
August 29, 2012, 08:47 |
|
#2 | |
Member
Join Date: Jun 2011
Posts: 86
Rep Power: 15 |
Quote:
|
||
August 29, 2012, 18:39 |
|
#3 |
New Member
Augusto Fontan
Join Date: Aug 2012
Location: Brazil
Posts: 13
Rep Power: 14 |
Thanks for the reply, mali28.
I did as you suggested, compiling the macros as two separate UDF's. The compilation was succesful, but the problem persists. In the Create/Edit Materials, only fluid_density is visible in the dialog box after choosing user-defined. |
|
August 30, 2012, 04:55 |
|
#4 |
Member
Join Date: Jun 2011
Posts: 86
Rep Power: 15 |
Compile sound_speed only and see if that appears in the list.
|
|
August 30, 2012, 08:36 |
|
#5 |
New Member
Join Date: Jan 2010
Location: Netherlands
Posts: 28
Rep Power: 16 |
its a trivial error.. (and i can tell u that because i have myself been stuck there before) Code:
DEFINE_PROPERTY(fluid_density, c, t) { .. } DEFINE_PROPERTY (sound_speed, c,t) { .. } for some reason the macro is not loaded to the GUI if this happens. try using: Code:
DEFINE_PROPERTY(sound_speed, c,t) { .. } |
|
August 30, 2012, 18:09 |
|
#6 |
New Member
Augusto Fontan
Join Date: Aug 2012
Location: Brazil
Posts: 13
Rep Power: 14 |
Trivial indeed, and that sorted it out. Now it appears in the dialog boxes.
New problem, though: I get the ACCESS_VIOLATION error when trying to initialize it. I have the udf's in the same folder as the case, energy equation is on. Any ideas? Thank you very much, akm and mali28. |
|
Tags |
define_property, udf density, udf sound speed |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fluent udf, saving data in udf | mohsen zendehbad | Fluent UDF and Scheme Programming | 15 | June 14, 2017 00:23 |
Transient pressure UDF for parallel fluent | droberts | Fluent UDF and Scheme Programming | 5 | October 11, 2010 05:13 |
Using Fluent with a UDF frm a remote m/c | aarti | FLUENT | 2 | September 11, 2008 20:53 |
UDF problem caused by various version of Fluent | Yurong | FLUENT | 3 | January 15, 2006 11:57 |
Can somebody send me a Fluent 6 UDF manual?? | KKLAU | FLUENT | 4 | April 14, 2004 17:37 |