|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我现在在学习气液两相流之间的质量交换问题。
气体-水蒸气;液体—水。
考虑水-水蒸气蒸发时的质量交换。基本上照抄udf帮助4-104上的define_exchange_property上的udf:
#include "udf.h"
#include "sg_mphase.h"
#define T_SAT 373.15
DEFINE_EXCHANGE_PROPERTY(liq_gas_src,cell,thread,liq_i, gas_i)
{
Thread *liq_th, *gas_th;
real m_lg;
liq_th = THREAD_SUB_THREAD(thread,liq_i);
gas_th = THREAD_SUB_THREAD(thread, gas_i);
m_lg=0.;
if(C_T(cell, liq_th)>=T_SAT)
{
m_lg = -0.1*C_VOF(cell, liq_th)*C_R(cell, liq_th)*
fabs(C_T(cell, liq_th) - T_SAT)/T_SAT;
}
if((m_lg==0.)&&(C_T(cell,gas_th)<=T_SAT))
{
m_lg = 0.1*C_VOF(cell,gas_th)*C_R(cell,gas_th)*
fabs(T_SAT-C_T(cell,gas_th))/T_SAT;
}
return m_lg;
}
编译通过了,但是在solve-->initialize-->initialize的时候出现如下错误:
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: ()
有没有高手看看怎么回事?还有,这个水-水蒸气之间的质量交换公式出处在哪里?
盼指教!
|
|