File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ModelicaByExample/DiscreteBehavior/CoolingRevisited Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
within ModelicaByExample.DiscreteBehavior.CoolingRevisited;
2
- model NewtonCoolingMaxFunction "Cooling example with min function"
2
+ model NewtonCoolingMaxFunction "Cooling example with max function"
3
3
type Temperature= Real (unit= "K" , min = 0 );
4
4
type ConvectionCoefficient= Real (unit= "W/(m2.K)" , min = 0 );
5
5
type Area= Real (unit= "m2" , min = 0 );
@@ -14,7 +14,7 @@ model NewtonCoolingMaxFunction "Cooling example with min function"
14
14
Temperature T_inf "Ambient temperature" ;
15
15
Temperature T "Temperature" ;
16
16
initial equation
17
- der (T) = 0 "Steady state initial conditions " ;
17
+ der (T) = 0 "Steady state initial condition " ;
18
18
equation
19
19
T_inf = 298.15 - max (0 , 20 * (time- 0.5 ));
20
20
m* c_p* der (T) = h* A* (T_inf- T) "Newton's law of cooling" ;
You can’t perform that action at this time.
0 commit comments