Skip to content

Commit

Permalink
Added units
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Sep 14, 2023
1 parent ca1d4d7 commit 92b29c9
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@ within IBPSA.ThermalZones.ReducedOrder.Examples;
model SimpleRoomTwoElementsNonConstantTGround
"Illustrates the use of non-constant ground temperature for equivalent air temperature calculation"
extends Modelica.Icons.Example;
extends IBPSA.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements(eqAirTemp(
extends IBPSA.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements(
eqAirTemp(
wfWall={0.15,0.35},
wfGro=0.5,
TGroundFromInput=true));
TGroundFromInput=true));



Modelica.Blocks.Sources.Trapezoid TGroTrapezoidSource(
amplitude=10,
rising=7884000,
width=7884000,
falling=7884000,
period=31536000,
offset=280.15,
startTime=5184000) "Trapezoid-shaped source for ground temperature"
annotation (Placement(transformation(extent={{-42,-52},{-22,-32}})));
Modelica.Blocks.Sources.Trapezoid TGro(
amplitude(unit="K") = 10,
rising(displayUnit="d") = 7884000,
width(displayUnit="d") = 7884000,
falling(displayUnit="d") = 7884000,
period(displayUnit="d") = 31536000,
offset(
unit="K",
displayUnit="degC") = 280.15,
startTime(displayUnit="d") = 5184000)
"Trapezoid-shaped source for ground temperature"
annotation (Placement(transformation(extent={{-60,-60},{-40,-40}})));
equation

connect(TGroTrapezoidSource.y, eqAirTemp.TGro_in)
annotation (Line(points={{-21,-42},{-14,-42},{-14,-16}}, color={0,0,127}));
connect(TGro.y, eqAirTemp.TGro_in)
annotation (Line(points={{-39,-50},{-14,-50},{-14,-16}}, color={0,0,127}));
annotation ( Documentation(info="<html>
<p>
This example shows the application of
Expand Down

0 comments on commit 92b29c9

Please sign in to comment.