Implementing a UDS for anisotropic diffusivity in FLUENT
I am trying to implement the following UDF in my model in FLUENT. ( I have very limited knowledge of UDF coding).
------------------------------------ #include "udf.h" DEFINE_ANISOTROPIC_DIFFUSIVITY (gamma_DalyHarlow, c, t, i, dmatrix) { real Cth = 0.3; real k = C_K(c,t); real eps = C_D(c,t); real LAMBDA= C_K_L(c,t); real CP = C_CP(c,t); real RHO = C_R(c,t); dmatrix[0][0] = LAMBDA/CP+RHO*Cth*k/eps*C_RUU(c,t); dmatrix[1][1] = LAMBDA/CP+RHO*Cth*k/eps*C_RVV(c,t); dmatrix[0][1] = RHO*Cth*k/eps*C_RUV(c,t); dmatrix[1][0] = dmatrix[0][1]; } ------------------------------------ After implementation, according to the ANSYS UDF manual for the ANISOTROPIC_DIFFUSIVITY macro, ( interpreting this UDF - introducing a UDS - load UDS as new additional material property) an error appears. Using ANSYS FLUENT 18.2, the error is as follows: "node 0 process 24008: Received Signal SIGSEGV - MPI application rank 0 exited before MPI_Finalize() with status 2 " I tried running the model in serial mode instead of parallel, however, the error remained. Does anybody have a suggestion? Thanks a million! |
All times are GMT -4. The time now is 02:16. |