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.

Attempt to evaluate nonintegral power of negative number.

Alex Moreno Bellostes

Please login with a confirmed email address before reporting spam

Hi, I am new to comsol when creating a model with a default mesh the model works, but to check the independence of the mesh I want to simulate the model with different sizes of mesh, to introduce a mesh finer I get the following error:

Attempt to evaluate nonintegral power of negative number.
- Function: ^
Failed to evaluate variable.
- Variable: comp1.ht.hf1.fLow
- Defined as: (((0.3387*comp1.ht.hf1.kExtFluid)*(comp1.ht.hf1.Pr^0.33333333333333331))*(comp1.ht.hf1.Re^0.5))/(comp1.ht.hf1.L*((1+((0.046800000000000001/comp1.ht.hf1.Pr)^0.66666666666666663))^0.25))
Failed to evaluate expression.
- Expression: nojac(2*((comp1.ht.hf1.fLow*comp1.ht.hf1.hsExprLow)+(comp1.ht.hf1.fHigh*comp1.ht.hf1.hsExprHigh)))
Failed to evaluate variable.
- Variable: comp1.ht.hf1.h_expr
- Defined as: nojac(2*((comp1.ht.hf1.fLow*comp1.ht.hf1.hsExprLow)+(comp1.ht.hf1.fHigh*comp1.ht.hf1.hsExprHigh)))
Failed to evaluate variable.
- Variable: comp1.ht.hf1.h
- Defined as: comp1.ht.hf1.h_expr
Failed to evaluate variable.
- Variable: comp1.ht.hf1.q0
- Defined as: comp1.ht.hf1.h*(comp1.ht.hf1.Text-comp1.ht.hf1.Tvar)
Failed to evaluate expression.
- Expression: (comp1.ht.hf1.q0*comp1.ht.d)*dvol
Failed to evaluate Jacobian of expression.
- Expression: (comp1.ht.hf1.q0*test(comp1.ht.hf1.Tvar)*comp1.ht.d)*(dvol)


How can I know what the error is?

0 Replies Last Post 2017年1月20日 GMT-5 05:33
COMSOL Moderator

Hello Alex Moreno Bellostes

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.