July 19, 2023 at 10:56 am
Atharva Nagarkar
Ansys Employee
Hello
SIGSEGV error is returned when there are issues related to storage/memory or data is missing in a place where it needs to be supplied.
The concern here is the macro defined as: Material *m = THREAD_MATERIAL(pt). The THREAD_MATERIAL macro returns a pointer that is associated with a cell thread (t) and NOT a phase thread (pt) as you have defined. Please have a look at the section 2.3.29.3 of the Ansys UDF User Manual for reference related to this and the 'mixture_species_loop' definition as well.
Link: 2.3.29. DEFINE_PROPERTY UDFs (ansys.com)
If you are not able to access the link, please refer to this forum discussion: Using Help with links (ansys.com)
Thanks!