UDF has two DEFINE_PROPERTY statemens, only one available in fluent
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. |
Quote:
|
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. |
Quote:
|
:)
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) for some reason the macro is not loaded to the GUI if this happens. try using: Code:
DEFINE_PROPERTY(sound_speed, c,t) |
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. |
All times are GMT -4. The time now is 08:01. |