CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF message error (SEGMENTATION VIOLATION" C_H_G (https://www.cfd-online.com/Forums/fluent/66465-udf-message-error-segmentation-violation-c_h_g.html)

louiza July 16, 2009 04:38

UDF message error (SEGMENTATION VIOLATION" C_H_G
 
Hello every body,

I am solving the energy equation with the enthalpy formulation. I would like to add a source term via UDF that includes the gradient of enthalpy but I get an Access Violation error when I try to use the *C_H_G*(c,t) macro. "access violation"

I was able to work around the problem by storing enthalpy in a UDS and then calculating the gradient using a C_UDSI_G macro. but a have also message error in compilation.
physics formule is: (dh/dx+dh/dr); deriverd enthalpy axial+ derived enthalpy radial.

please help me

Thank you!


All times are GMT -4. The time now is 00:35.