Skip to content

Commit

Permalink
Merge pull request #159 from RWTH-EBC/issue155_symbol
Browse files Browse the repository at this point in the history
Issue155 symbol
  • Loading branch information
PRemmen committed Feb 16, 2016
2 parents ccbdc9d + 6662133 commit 84b7811
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions AixLib/Building/Components/Weather/BaseClasses/Sun.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
within AixLib.Building.Components.Weather.BaseClasses;
within AixLib.Building.Components.Weather.BaseClasses;
model Sun "Computes the sun's altitude of the current site"

import Modelica.SIunits.Conversions.from_deg;
Expand Down Expand Up @@ -45,7 +45,7 @@ equation
"the difference between the UTC and the time standard is given by DiffWeatherDataTime and Diff_lokalStandardTime Longitude";

// hour angle of sun, first term calculates local time of day from continuous time signal
HourAngleSun = (SolarTime-12) * 360/24 "HourAngleSun=0° means sun peak";
HourAngleSun = (SolarTime-12) * 360/24 "HourAngleSun=0 deg means sun peak";
if (HourAngleSun > 180) then
OutHourAngleSun = HourAngleSun - 360;
elseif (HourAngleSun < -180) then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
within AixLib.Building.Components.Weather.RadiationOnTiltedSurface;
within AixLib.Building.Components.Weather.RadiationOnTiltedSurface;
model RadOnTiltedSurf_Perez
"Calculates solar radiation on tilted surfaces according to Perez"
extends RadiationOnTiltedSurface.BaseClasses.PartialRadOnTiltedSurf;
Expand All @@ -20,7 +20,7 @@ model RadOnTiltedSurf_Perez
//constants
protected
constant Real a_rho=0.45
"estimated on measured Albedo from NREL USA (Latitude=39.742°)";
"estimated on measured Albedo from NREL USA (Latitude=39.74 deg)";
constant Real b_rho=0.013 "estimated on measured Albedo from NREL USA";
constant Real c_rho=0.2 "estimated on measured Albedo from NREL USA";
constant Real rho_avg=1/0.27055
Expand Down Expand Up @@ -176,7 +176,7 @@ equation
cos_theta = (cos_theta_help + abs(cos_theta_help))/2;
theta_out = to_deg(acos(cos_theta));

// calculation of R factor [Duffie/Beckman, p.25], but in order not to divide by zero it is determined like a/b in the Model of Perez [Duffie/Beckman, p.94] where the minimum b is set to cos(85°);
// calculation of R factor [Duffie/Beckman, p.25], but in order not to divide by zero it is determined like a/b in the Model of Perez [Duffie/Beckman, p.94] where the minimum b is set to cos(85 deg);
// R is manually set to 0 for theta_z_pos >= 80 degrees (-> 90 degrees means sunset)__old solution for the numerical problems of dividing by zero;
//if noEvent(cos_theta_z <= 0.08715574274) then
// R_help = cos_theta_z*cos_theta;
Expand Down
12 changes: 6 additions & 6 deletions AixLib/HVAC/AirHandlingUnit/AHU.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
within AixLib.HVAC.AirHandlingUnit;
within AixLib.HVAC.AirHandlingUnit;
model AHU
"Air Handling Unit with Heat Recovery System, Cooling, Heating, Humidification (adiabatic), Dehumidification"
/*
Expand Down Expand Up @@ -117,7 +117,7 @@ model AHU
constant Modelica.SIunits.SpecificHeatCapacityAtConstantPressure c_pL_iG=1E3;
constant Modelica.SIunits.SpecificHeatCapacityAtConstantPressure c_pW_iG=1.86E3;
constant Modelica.SIunits.SpecificEnthalpy r_0=2465E3
"enthalpy of vaporization at temperature between T_dew(X_sup=0.008)=11 °C and T_sup = 22 °C";
"enthalpy of vaporization at temperature between T_dew(X_sup=0.008)=11 degC and T_sup = 22 degC";
constant Modelica.SIunits.Density rho=1.2;
constant Modelica.SIunits.Pressure p_0=101325;
constant Modelica.SIunits.SpecificEnthalpy dhV=2501.3E3;
Expand Down Expand Up @@ -303,14 +303,14 @@ model AHU
X_surface, 0.00001);

p_sat_surface = 611.2*exp(17.62*(T_surface - T_0)/(243.12 + T_surface - T_0));
//Magnus formula over water, improved by Sonntag (1990), Range: -45 °C to +60 °C
//Magnus formula over water, improved by Sonntag (1990), Range: -45 degC to +60 degC
/*
2 Alternatives for calculation of water vapor pressure, which are not so stable during simulation:
p_sat_surface = 10^(-7.90298*(373.15/T_surface - 1)
+5.02808*log10(373.15/T_surface)
-1.3816*10^(-7)*(10^(11.344*(1 - T_surface/373.15))-1)
+8.1328*10^(-3)*(10^(-3.49149*(373.15/T_surface - 1))-1)
+log10(1013.246))*100; //The Goff Gratch equation for the vapor pressure over liquid water covers a region of -50 °C to +102 °C.
+log10(1013.246))*100; //The Goff Gratch equation for the vapor pressure over liquid water covers a region of -50 degC to +102 degC.
p_sat_surface = Modelica.Media.Air.MoistAir.saturationPressure(T_surface);
*/
X_surface = molarMassRatio*p_sat_surface/(p_0 - p_sat_surface);
Expand Down Expand Up @@ -383,14 +383,14 @@ p_sat_surface = Modelica.Media.Air.MoistAir.saturationPressure(T_surface);
X_surface, 0.00001);

p_sat_surface = 611.2*exp(17.62*(T_surface - T_0)/(243.12 + T_surface - T_0));
//Magnus formula over water, improved by Sonntag (1990), Range: -45 °C to +60 °C
//Magnus formula over water, improved by Sonntag (1990), Range: -45 degC to +60 degC
/*
2 Alternatives for calculation of water vapor pressure, which are not so stable during simulation:
p_sat_surface = 10^(-7.90298*(373.15/T_surface - 1)
+5.02808*log10(373.15/T_surface)
-1.3816*10^(-7)*(10^(11.344*(1 - T_surface/373.15))-1)
+8.1328*10^(-3)*(10^(-3.49149*(373.15/T_surface - 1))-1)
+log10(1013.246))*100; //The Goff Gratch equation for the vapor pressure over liquid water covers a region of -50 °C to +102 °C.
+log10(1013.246))*100; //The Goff Gratch equation for the vapor pressure over liquid water covers a region of -50 degC to +102 degC.
p_sat_surface = Modelica.Media.Air.MoistAir.saturationPressure(T_surface);
*/
X_surface = molarMassRatio*p_sat_surface/(p_0 - p_sat_surface);
Expand Down
1 change: 0 additions & 1 deletion AixLib/UsersGuide/package.order
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
UsersGuide
Acknowledgements
Contact
Copyright
Expand Down
2 changes: 1 addition & 1 deletion AixLib/package.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
within ;
package AixLib
annotation(uses(Modelica(version = "3.2.1")), version = "0.2.3", Documentation(info = "<html>
annotation(uses(Modelica(version = "3.2.1")), version = "0.2.4", Documentation(info = "<html>
<p>The free open-source <code>AixLib</code> library is being developed for research and teaching purposes. It aims at dynamic simulations of thermal and hydraulic systems to develop control strategies for HVAC systems and analyse interactions in complex systems. It is used for simulations on component, building and city district level. As this library is developed mainly for academic purposes, user-friendliness and model robustness is not a main task. This research focus thus influences the layout and philosophy of the library. </p>
<p>Various connectors of the Modelica Standard Library are used, e.g. <code>Modelica.Fluid</code> and <code>Modelica.HeatTransfer</code>. These are accompanied by own connectors for simplified hydraulics (no <code>fluid.media</code>, incompressible, one phase) , shortwave radiation (intensity), longwave radiation (heat flow combined with a virtual temperature) and combined longwave radiation and thermal. The pressure in the connectors is the total pressure. The used media models are simplified from the <code>Modelica.Media</code> library. If possible and necessary, components use continuously differentiable equations. In general, zero mass flow rate and reverse flow are supported.</p>
<p>Most models have been analytically verified. In addition, hydraulic components are compared to empirical data such as performance curves. High and low order building models have been validated using a standard test suite provided by the ANSI/ASHRAE Standard 140 and VDI 6007 Guideline. The library has only been tested with Dymola.</p>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Parts of **AixLib** have been developed within public funded projects and with f

### Version

The current version 0.2.3 is a pre-release.
The current version 0.2.4 is a pre-release.

### How to contribute to the development of AixLib

Expand Down

0 comments on commit 84b7811

Please sign in to comment.