|
[Sponsors] |
February 15, 2016, 04:18 |
UDF chip-exec and multiple UDF
|
#1 |
New Member
mohammad
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
Hi guys,
First, I interpreted a UDF in Fluent 16 and during the calculation it shows the following message ( but the calculation goes on without any intruption) chip-exec : UDF: argument 5: incorrect type (0) int pointer expectedchip-exe I don't know what is this about. Second, I want to load a udf for certain time in my calculations and after that i want to continue my calculation with another udf, i encounter with somthing like "signal fatal error"?!!! I don't know how to load a udf for some time steps and another one for the other time steps I wonder if anyone can help me especially with the second one. thanks |
|
February 15, 2016, 21:17 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
First, compile your UDFs instead of interpreting them (typically solves many issues). Second, explain in detail what you're doing and what UDFs you're using; conditional statements can be used to apply code at certain times (for example, t > t0).
|
|
February 16, 2016, 07:12 |
|
#3 | |
New Member
mohammad
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
Quote:
My UDF is as follows, SDOF UDF for a dropping box. A coupled force exerted on the box in 0.01 sec and after that, the box dropped freely. Instead of the coupled force in inserted an equivalent force and moment on the body I did first interpret this UDF: /************************************************** ***** SDOF property compiled UDF with external forces/moments ************************************************** *****/ #include "udf.h" DEFINE_SDOF_PROPERTIES(box, prop, dt, time, dtime) { prop[SDOF_MASS] = 15; prop[SDOF_IXX] = 1.56; prop[SDOF_IYY] = 2.5; prop[SDOF_IZZ] = 2.5; prop[SDOF_LOAD_F_Y] = -500; prop[SDOF_LOAD_M_Z] = -41.8; printf ("\nbox: updated 6DOF properties"); } And then I interpreted this one; /************************************************** ***** SDOF property compiled UDF with external forces/moments ************************************************** *****/ #include "udf.h" DEFINE_SDOF_PROPERTIES(box, prop, dt, time, dtime) { prop[SDOF_MASS] = 15; prop[SDOF_IXX] = 1.56; prop[SDOF_IYY] = 2.5; prop[SDOF_IZZ] = 2.5; prop[SDOF_LOAD_F_Y] = 0; prop[SDOF_LOAD_M_Z] = 0; printf ("\nbox: updated 6DOF properties"); } First, I don't know if my procedure is right or not?! Second, I interpreted the second UDF for the t>0.01 it worked fine ( but also the chip-exec argument incorrect as the first UDF) but the box rotates and do not stop after I zero the force and moment ( the mass force on the CG must rotate the box to the horizontal line) Third, I don't know whether the moment and force inserted on the CG or i have to define where to insert them? |
||
February 16, 2016, 07:25 |
|
#4 | ||
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
Quote:
|
|||
Tags |
fluent - udf, fluent 16.0, interpreted, interpreted udf |
Thread Tools | Search this Thread |
Display Modes | |
|
|