Zhao Weijie |
March 7, 2019 05:54 |
segmentation fault in multiphase flow simulation
Hello everyone, I'm doing a multiphase flow simulation using mixture model. I want to calculate wall shear stress during iteration and store it for postprocessing purpose. I use the DEFINE_ON_DEMAND macro to achieve this, and the whole udf is in the screenshot below. Everything is fine when l build library and load this udf, which, I think, means compilation is no problem. But when I try to hook the compiled udf to Fluent, segmentation fault comes up as below. I've read some relevant posts on this forum, but their solution just don't work for me.:o:o:o Anyone can help?
https://www.cfd-online.com/Forums/me...stress-udf.png
https://www.cfd-online.com/Forums/me...tion-fault.png
Best regards,
Zhao
|