T1[z_, t_] = (A1 Cos[z] + B1 Sin[z]) Exp[t];(*from z=0 to z=a=1*)
T2[z_, t_] = (A2 Cos[z] + B2 Sin[z]) Exp[t];(*from z=a=1 to z=b=2*)
T3[z_, t_] = (A3 Cos[z] + B3 Sin[z]) Exp[t];(*from z=b=2 to z=c=3*)
Interval1 = [0, a];
Interval2 = [a, b];
Interval3 = [b, c];
T[z_,t_]=...
This is basic definition of my problem. Is have temperature function depending on time t and location z.
I have 1D problem (z) where i have three different layers and in each layer, temperature has its own function T1,T2,T3. A1,A2,A3,B1,B2,B3 are known (random) constants (you can make them up for this example)
For each area/interval temperature changes by its presented function T1,T2,T3.
Is it possible to define globally mora general temperature function T[z_,t_]
where you can define that on certain/given interval takes form of the predefined Ti[z,t]
function, for instance when z=[0,a], T[z,t]=T1[z,t]
, when z is in [a,b],then T[z,t]=T2[z,t]
and so on...
Piecewise
. $\endgroup$