Skip to content

Commit

Permalink
Change in QTra definition
Browse files Browse the repository at this point in the history
  • Loading branch information
annadellisola committed Oct 28, 2024
1 parent a1b567d commit b5b22ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion IDEAS/Buildings/Components/BoundaryWall.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ model BoundaryWall "Opaque wall with optional prescribed heat flow rate or tempe
final custom_q50=0,
final use_custom_q50=true,
final nWin=1,
QTra_design=if use_T_in or use_T_fixed then U_value*A*(TRefInt - T_in_nom) else -Q_in_nom,
dT_nominal_a=-1,
add_cracks=false,
QTra_design(fixed=false),
layMul(disableInitPortB=use_T_in or use_T_fixed, monLay(monLayDyn(each
addRes_b=(sim.lineariseDymola and (use_T_in or use_T_fixed))))));

Expand Down Expand Up @@ -69,6 +69,8 @@ protected
IDEAS.Buildings.Components.Interfaces.WeaBus weaBus(final numSolBus=sim.numIncAndAziInBus,
outputAngles=sim.outputAngles) "Weather bus"
annotation (Placement(transformation(extent={{40,-80},{60,-60}})));
initial equation
QTra_design=if use_T_in or use_T_fixed then U_value*A*(TRefInt - T_in_nom) else -Q_in_nom;
equation
assert(not (use_T_in and use_Q_in or use_T_in and use_T_fixed or use_Q_in and use_T_fixed),
"In "+getInstanceName()+": Only one of the following options can be used simultaneously: use_T_in, use_Q_in, use_T_fixed");
Expand Down
4 changes: 2 additions & 2 deletions IDEAS/Buildings/Components/Interfaces/PartialZone.mo
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ model PartialZone "Building zone model"
annotation(Dialog(tab="Advanced", group="Radiative heat exchange"));
parameter Modelica.Units.SI.Temperature defaultTRef=291.15 "Default zone temperature for calculation of design heat load"
annotation (Dialog(group="Design heat load", tab="Advanced"));
Modelica.Blocks.Interfaces.RealOutput TRef_zone[nSurf] "Reference zone temperature for the surfaces connected to this zone, for calculation of design heat load";
Modelica.Blocks.Interfaces.RealOutput TRef_zone[nSurf]=defaultTRef*ones(nSurf) "Reference zone temperature for the surfaces connected to this zone, for calculation of design heat load";
final parameter Modelica.Units.SI.Power QInf_design=1012*1.204*V/3600*n50_int
/n50toAch*(defaultTRef - sim.Tdes)
"Design heat losses from infiltration at reference outdoor temperature";
Expand Down Expand Up @@ -507,7 +507,7 @@ end for;
connect(setq50.use_custom_n50s, propsBusInt.use_custom_n50) annotation (Line(points={{-60.8,
-92.8},{-60,-92.8},{-60,-92},{-80.1,-92},{-80.1,39.9}}, color={
255,0,255}));
connect(TRef_zone[1:nSurf], propsBusInt[1:nSurf].TRef_zone);
connect(TRef_zone, propsBusInt.TRef_zone);
annotation (Dialog(group="Design heat load", tab="Advanced"),
Placement(transformation(extent={{
140,48},{100,88}})),
Expand Down
6 changes: 4 additions & 2 deletions IDEAS/Buildings/Components/InternalWall.mo
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ model InternalWall "interior opaque wall between two zones"
E(y=if sim.computeConservationOfEnergy then layMul.E else 0),
Qgai(y=(if sim.openSystemConservationOfEnergy or not sim.computeConservationOfEnergy
then 0 else sum(port_emb.Q_flow))),
QTra_design=U_value*A*(TRefInt - TRef_b),
q50_zone(v50_surf=0));
q50_zone(v50_surf=0),
QTra_design(fixed=false));
//using custom q50 since this model is not an external component

parameter Boolean linIntCon_b=sim.linIntCon
Expand Down Expand Up @@ -139,6 +139,8 @@ public
if hasCavity and sim.interZonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.OnePort
"1-port model for open door"
annotation (Placement(transformation(extent={{-10,58},{10,78}})));
initial equation
QTra_design=U_value*A*(TRefInt - TRef_b);
equation
assert(hasCavity == false or IDEAS.Utilities.Math.Functions.isAngle(incInt, IDEAS.Types.Tilt.Wall),
"In " + getInstanceName() + ": Cavities are only supported for vertical walls, but inc=" + String(incInt) + ". The model is not accurate.",
Expand Down

0 comments on commit b5b22ff

Please sign in to comment.