CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   using DEFINE_ADJUST to calculate source term (http://www.cfd-online.com/Forums/fluent/40370-using-define_adjust-calculate-source-term.html)

shuqin March 30, 2006 04:02

using DEFINE_ADJUST to calculate source term
 
hi every! I want to add some calculated values as source term to species transport equation and I settle this by employing DEFINE_ADJUST to calculate the value and store it in udm ,and then retrieve it in DEFINE_SOURCE,ACCESS VIOlATION error came out,and when only use DEFINE_ADJUST to calculate the value and store it in udm without evaluating in DEFINE_SOURCE ,I can plot the conters of the udm,why I cannot use it in DEFINE_SOURCE? Any suggestions?

KP March 30, 2006 20:17

Re: using DEFINE_ADJUST to calculate source term
 
Did you allocate memory properly? KP

shuqin March 30, 2006 20:33

Re: using DEFINE_ADJUST to calculate source term
 
yes,I did,I can even plot the contours of udm when not retrieving in the DEFINE_SOURCE. but anyway,thanks for your attention!


All times are GMT -4. The time now is 19:22.