|
[Sponsors] | |||||
UDF has two DEFINE_PROPERTY statemens, only one available in fluent |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
|
#1 | |
|
New Member
Augusto Fontan
Join Date: Aug 2012
Location: Brazil
Posts: 10
Rep Power: 2 ![]() |
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. |
||
|
|
|
||
|
|
|
#2 | |
|
Senior Member
Join Date: Jun 2011
Posts: 105
Rep Power: 4 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#3 |
|
New Member
Augusto Fontan
Join Date: Aug 2012
Location: Brazil
Posts: 10
Rep Power: 2 ![]() |
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. |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jun 2011
Posts: 105
Rep Power: 4 ![]() |
Compile sound_speed only and see if that appears in the list.
|
|
|
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Jan 2010
Location: United Kingdom
Posts: 26
Rep Power: 5 ![]() |
![]() 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)
{
..
}
|
|
|
|
|
|
|
|
|
#6 |
|
New Member
Augusto Fontan
Join Date: Aug 2012
Location: Brazil
Posts: 10
Rep Power: 2 ![]() |
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 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fluent udf, saving data in udf | mohsen zendehbad | Fluent UDF and Scheme Programming | 10 | February 26, 2013 04:38 |
| Transient pressure UDF for parallel fluent | droberts | Fluent UDF and Scheme Programming | 5 | October 11, 2010 04:13 |
| Using Fluent with a UDF frm a remote m/c | aarti | FLUENT | 2 | September 11, 2008 19:53 |
| UDF problem caused by various version of Fluent | Yurong | FLUENT | 3 | January 15, 2006 10:57 |
| Can somebody send me a Fluent 6 UDF manual?? | KKLAU | FLUENT | 4 | April 14, 2004 16:37 |