UDF: coupling between measurements and actuation
I have a question regarding UDFs in Fluent. I want to measure a pressure within a UDF, afterwards inject according this the measured pressure an amount of fuel. Is this principally possible and which macros should I use? For injecting fuel, I guess DEFINE_SOURCE is an promising option. What I have tried: Within the DEFINE_EXECUTE_AT_END the pressure is calculated and afterwards a value for injection is calculated using this pressure. This amount of mass is then injected using the DEFINE_SOURCE. The UDF compiles fine but I am getting the following error message during simulation: "/FLUENT/Fluent.Inc/fluent6.3.26/lnamd64/3d_host/fluent.6.3.26[0xd55e51] /lib64/libpthread.so.0[0x365440de60] libudf/lnamd64/3d_host/libudf.so(execute_at_end+0x1b5)[0x2aaaabb3dffa]" I have no idea what causes this error.
|All times are GMT -4. The time now is 19:30.|