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?
October 17, 2024 at 12:48 am
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.