We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Fluids Help: How to link the primary and auxiliary fluid cell in non-equibrilium model? Reply To: Help: How to link the primary and auxiliary fluid cell in non-equibrilium model?

yf70512
Subscriber

Hello Rob,

The code can not run and the fluent crashed with error "999999: mpt_accept: error: accept failed : No such file or directory". My UDF was following:

DEFINE_SOURCE(Solid_source,c,t,dS,eqn) 
{
    real Tf, Ts;
    real hfs = HFS_CONSTANT;  // Placeholder value for heat transfer coefficient
    real Afs = AFS_CONSTANT;    // Placeholder value for interfacial area density
    real source;
    const char sv_t;
 
    // Obtain fluid and solid temperatures
    Ts = C_T(c, t);  // 
    Tf =  C_DHX_NBR_T(c,t); 
 
    // Calculate the source term based on the modified expression
    source = hfs * Afs * (pow(Tf, 4.0) - pow(Ts, 4.0));
 
    // Set the derivative of the source term with respect to Tf
    dS[eqn] = - 4.0 * hfs * Afs * pow(Ts, 3.0);
    return source;
}
The maro "C_DHX_NBR_T(c,t)" is in the header file "dual_cell.h". But the fluent also crashed with the same error. I am not sure if it is able to modify the energy source of the non-equibrilium model. The error "999999" always occurred.