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 "piecewise function is out of range"

Please login with a confirmed email address before reporting spam

Hello

I am trying to model the melting of a phase change material. I've defined the dynamic viscosity as a piecewise, continuous, second derivative function centered about melting point. When T<Tmelt, mu=10^8 and when T>Tmelt,mu=0.008 pa.s. However, during run comsol throws following error. Could anyone please help to resolve the error ?

  • Feature: Time-Dependent Solver 1 (sol1/t1) Piecewise function is out of range.
    • Function: comp1.mat2.def.mu Failed to evaluate variable.
    • Variable: comp1.mat2.def.mu
    • Defined as: (comp1.mat2.def.mu(comp1.T2/unit_K_cf)unit_Pa_cf)unit_s_cf

Thanks Alok Ray


0 Replies Last Post 07.10.2020, 20:12 GMT-4
COMSOL Moderator

Hello Alok Ray

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.