Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Error in user-defined function

Please login with a confirmed email address before reporting spam

Time: 1833412.0064212149 s. Error in user-defined function. Function: comp1.mat1.def.k Failed to evaluate variable. Variable: comp1.ht.k effxx, Defined as: (unit W cfcomp1.mat1.def.k(comp1.ht.bm1.minput relativehumidity))/(unit m cfunit K cf) Failed to evaluate variable. Variable: comp1.ht.dfluxx, Defined as: ((comp1.Tx(-comp1.ht.k effxx))-((d(unit Pa cfcomp1.ht.bm1.fpsat(comp1.T/unit K cf),comp1.T)((comp1.ht.Lvcomp1.ht.delta p)comp1.ht.phi))comp1.Tx))-(d(comp1.ht.phi,x)(unit Pa cf((comp1.ht.Lvcomp1.ht.delta p)comp1.ht.bm1.fpsat(comp1.T/unit K cf)))) Failed to evaluate expression. Expression: dvol spatial(comp1.ht.dcomp1.ht.dfluxx) Failed to evaluate Jacobian of expression. Expression: (comp1.ht.dfluxxtest(comp1.Tx)comp1.ht.d)(dvol spatial) Error in user-defined function. Function: comp1.mat1.def.k Failed to evaluate variable. Variable: comp1.ht.k effxx, Defined as: (unit W cfcomp1.mat1.def.k(comp1.ht.bm1.minput relativehumidity))/(unit m cfunit K cf) Failed to evaluate variable. Variable: comp1.ht.dfluxx, Defined as: ((comp1.Tx(-comp1.ht.k effxx))-((d(unit Pa cfcomp1.ht.bm1.fpsat(comp1.T/unit K cf),comp1.T)((comp1.ht.Lvcomp1.ht.delta p)comp1.ht.phi))comp1.Tx))-(d(comp1.ht.phi,x)(unit Pa cf((comp1.ht.Lvcomp1.ht.delta p)*comp1.ht.bm1.fpsat(comp1.T/unit K cf)))) Failed to evaluate expression.


1 Reply Last Post 2023年11月27日 GMT-5 14:24
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 12 months ago 2023年11月27日 GMT-5 14:24
Updated: 12 months ago 2023年11月27日 GMT-5 14:15

Hello,

Without context, you are unlikely to receive feedback beyond what you've probably already understood, namely that at the time indicated the software is unable to evaluate the function comp1.mat1.def.k for some reason. Consider attaching your mph file and a description of what you are trying to model.

Best,

Jeff

-------------------
Jeff Hiller
Hello, Without context, you are unlikely to receive feedback beyond what you've probably already understood, namely that at the time indicated the software is unable to evaluate the function comp1.mat1.def.k for some reason. Consider attaching your mph file and a description of what you are trying to model. Best, Jeff

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.