Volume fraction UDF in mixture model
Can I use C_VOF(c,pt[i]) in a UDF for the Multiphase Mixture model ?
FLUENT is giving me 'ACCESS_VIOLATION' error...
Can anybody suggest an alternative to get the volume fraction of a phase in my UDF ?, or even better, the pressure of a particular phase in the mixture ?
Can you show your UDF please.
I'm basically trying to calculate the partial pressure of water-vapour in a mixture of air, liquid water and water-vapour. I'm using the mixture model, with evaporation-condensation, and the 'DEFINE_PROPERTY' is used to obtain the saturation temperature to use in the model. I need the partial pressure of water-vapour in order to calculate the saturation temperature (via an experimental equation).
Thread *tm, **pt;
tm = THREAD_SUPER_THREAD(t);
pt = THREAD_SUB_THREADS(tm);
par_pres = C_VOF(c,pt)*C_P(c,t);
/*pt because 2nd secondary phase is water vapour*/
sat_temp = pow(par_pres,0.11);
My issue is that I cannot access the volume fraction C_VOF(c,pt) in FLUENT. THe code compiles well, but at initialisation, it gives me 'ACCESS VIOLATION' error.
Can you help ?
I have doubt if you can use the macro C_VOF(c,pt) with mixture model (Anyone?). That could be the issue. Can you test your code without 'C_VOF(c,pt)' and see if it works.
Yes, it does work without C_VOF...
Is there another way to get the volume or mass fraction with the mixture model ?
|All times are GMT -4. The time now is 23:38.|