From b868957fc539aa8075cc71c1f38c1e34aa671f1e Mon Sep 17 00:00:00 2001 From: MichaMans Date: Thu, 18 Oct 2018 09:38:30 +0200 Subject: [PATCH] #460 revised errors in fasthvac package --- AixLib/FastHVAC/Components/Pipes/BaseClasses/PipeBase.mo | 2 +- AixLib/FastHVAC/Components/Storage/BaseClasses/HeatingCoil.mo | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AixLib/FastHVAC/Components/Pipes/BaseClasses/PipeBase.mo b/AixLib/FastHVAC/Components/Pipes/BaseClasses/PipeBase.mo index 2c34b25a61..0500923ca6 100644 --- a/AixLib/FastHVAC/Components/Pipes/BaseClasses/PipeBase.mo +++ b/AixLib/FastHVAC/Components/Pipes/BaseClasses/PipeBase.mo @@ -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)" diff --git a/AixLib/FastHVAC/Components/Storage/BaseClasses/HeatingCoil.mo b/AixLib/FastHVAC/Components/Storage/BaseClasses/HeatingCoil.mo index 12186ea22b..c84205ffc4 100644 --- a/AixLib/FastHVAC/Components/Storage/BaseClasses/HeatingCoil.mo +++ b/AixLib/FastHVAC/Components/Storage/BaseClasses/HeatingCoil.mo @@ -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)"; @@ -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}},