CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF{ C_VOF(c,pt[n]) } two phase flow (http://www.cfd-online.com/Forums/fluent/31325-udf-c_vof-c-pt-n-two-phase-flow.html)

ROOZBEH April 20, 2003 04:26

UDF{ C_VOF(c,pt[n]) } two phase flow
 
Hi all; I want to add mass sources to the mass equation of each phase of a multiphase flow(VOF), to model the mass transfer between the phases. My source terms contain the volume fraction of one of the phases. Therefore I have to use the multiphase macro ( C_VOF(c,pt[n]) ). When I written my UDF , during the initialization in Fluent, I encountered to an error : 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 think that I must use subdomain,subthread,getdomain,...etc. !? Please someone guide me . Thanks.

Murali April 20, 2003 11:46

Re: UDF{ C_VOF(c,pt[n]) } two phase flow
 
<font face = "courier new">This error could come coz of many reasons:

(1) When u try to use a variable which is yet not allocated.

(2) When u recompile your UDF code without restarting fluent

(3) When u try to access a variable which is not permitted to be accessed.

Check your code for these

Murali</font>

ROOZBEH April 21, 2003 04:09

Re: UDF{ C_VOF(c,pt[n]) } two phase flow
 
Hi; I think that this error appears from the using of the macro C_VOF(c,pt[n]).Because when I use this macro,this error appears and when I change this macro to the another macro,I have not any errors. do you have any informations about the using of this macro ? thanks.


All times are GMT -4. The time now is 06:20.