[Getdp] function of a discrete value defined piecewise

meyer at itwm.fraunhofer.de meyer at itwm.fraunhofer.de
Fri Jan 6 13:57:58 CET 2012


Hi All,

I'm trying to define a function that can take two different values
depending on whether my discrete function {T} is greater or less than a
certain constant T_c.

What I've done so far is:

Function {
  ...
  mu[] = $1 > T_c ? mu_1 : mu_2;
}

and in the Formulation I tried mu[{T}] and mu[Dof{T}], but I get the
following error:

Comparison of non scalar quantities: Form0 > Scalar

Thanks,
Max Meyer