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.

Using one piece wise function as an argument of another function.

Please login with a confirmed email address before reporting spam

Hi,

I did define a piecewise function g.

Temperature-range Value of g
298K - 1400K 0
1400K - 1600K ((T-T_m)/(T_l-T_m))^(1/(Ke-1))
1600K - 1750K 1


T_m, T_l, Ke were defined in global parameters as 1712K, 1600K, 0.3

now I want to use this piecewise function as an argument and define another function Cp_iron such that

Range of g(T) Cp_iron
0 - 0.25 0
0.25 - 1 450

when I try to plot the graph for C_p, error message shows unknown function or operator.
- Name: g
- Plot: plot1 (Line graph)
- Function: cp_iron

What am I doing wrong?
Can I not use one function as an argument of another function in comsol?

Please help.

Attaching the graph of function g.


0 Replies Last Post Feb 6, 2017, 2:11 a.m. EST
COMSOL Moderator

Hello Tushar Telmasre

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.