Error while running UDF - Fluent
I get the following error message while I run the simulation with an UDF
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()
I have no problems in compiling and interpreting this UDF. I have found that the problem is linked to following part of the code below.
Thread *tc = THREAD_SUPER_THREAD(thread); /*obtain mixture thread */
Thread **pt = THREAD_SUB_THREADS(tc); /* pointer to sub_threads */
Thread *tp = pt[P_PHASE]; /* primary phase thread */
When I run the simulation with the UDF and I specify solute_mass_frac=0.5 (for example 0.5) the simulation runs without errors. So, this has to be linked to C_YI(cell,tp,0). Or probably to the way ''tp'' is set.
Does anybody could tell me what I am doing wrong?
thank you in advance
I have exactly the same problem, I narrowed it down to solute_mass_frac = C_YI(cell,tp,0);
Did you manage to solve it? Thanks in advance.
I found the answer in the manual, C_YI isn't defined so you have to use Pdf_Yi(cell,tp,0)
|All times are GMT -4. The time now is 19:51.|