Skip to content

Commit

Permalink
#460 revised errors in fasthvac package
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaMans committed Oct 18, 2018
1 parent d4b4da8 commit b868957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AixLib/FastHVAC/Components/Pipes/BaseClasses/PipeBase.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ model PipeBase
/* *******************************************************************
Medium
******************************************************************* */
parameter Integer nNodes(min=3)=3 "Number of discrete flow volumes";
parameter Integer nNodes(min=1)=1 "Number of discrete flow volumes";
parameter FastHVAC.Media.BaseClasses.MediumSimple medium=
FastHVAC.Media.WaterSimple()
"Mediums charastics (heat capacity, density, thermal conductivity)"
Expand Down
4 changes: 2 additions & 2 deletions AixLib/FastHVAC/Components/Storage/BaseClasses/HeatingCoil.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
within AixLib.FastHVAC.Components.Storage.BaseClasses;
model HeatingCoil

parameter Integer dis_HC;
parameter Integer dis_HC(min=1);

parameter Media.BaseClasses.MediumSimple medium_HC=Media.WaterSimple()
"Mediums charastics (heat capacity, density, thermal conductivity)";
Expand All @@ -22,7 +22,7 @@ model HeatingCoil
parameterPipe=pipeRecordHC,
T_0=T_start,
length=lengthHC,
nNodes(min=1)=dis_HC,
nNodes=dis_HC,
alphaInsideFix=alphaInsideFix,
calculateAlpha=true) annotation (Placement(transformation(
extent={{-10,-10},{10,10}},
Expand Down

0 comments on commit b868957

Please sign in to comment.