From 3eec2dbd7b7ab3fdddd9987dccf0a96883c05b9f Mon Sep 17 00:00:00 2001 From: "laura.maier" Date: Tue, 12 Dec 2023 16:54:32 +0100 Subject: [PATCH] HTML formatting and code formatting #1575 --- .../BaseClasses/PV/BaseClasses/Icons/package.mo | 2 ++ .../PV/BaseClasses/PVOptical/AirMass.mo | 13 +++++-------- .../PV/BaseClasses/PVOptical/package.mo | 2 +- .../PV/BaseClasses/PartialPVElectrical.mo | 4 ++-- .../BaseClasses/PartialPVElectricalSingleDiode.mo | 12 ++++++------ .../BaseClasses/PV/BaseClasses/lambertWSimple.mo | 2 +- .../BaseClasses/PV/PVElectricalSingleDiodeMPP.mo | 4 +--- IBPSA/Electrical/BaseClasses/PV/PVOpticalAbsRat.mo | 7 ++----- .../PV/PVThermalEmpMountCloseToGround.mo | 11 +++-------- .../PV/PVThermalEmpMountContactToGround.mo | 14 ++++++-------- .../BaseClasses/PV/PVThermalEmpMountOpenRack.mo | 4 +--- IBPSA/Electrical/BaseClasses/PV/package.mo | 1 + 12 files changed, 31 insertions(+), 45 deletions(-) diff --git a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/Icons/package.mo b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/Icons/package.mo index 6500f8690d..2701d4e858 100644 --- a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/Icons/package.mo +++ b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/Icons/package.mo @@ -1,5 +1,7 @@ within IBPSA.Electrical.BaseClasses.PV.BaseClasses; package Icons + extends Modelica.Icons.Package; + annotation(Documentation(info="

This package contains icons for the models in diff --git a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/AirMass.mo b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/AirMass.mo index 5eb7b13b55..f7bcff34ce 100644 --- a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/AirMass.mo +++ b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/AirMass.mo @@ -12,16 +12,13 @@ protected Modelica.Units.SI.Angle zen "Zenith angle internal use"; equation // Restriction for zenith angle - zen = if zenAng <= Modelica.Constants.pi/2 then - zenAng - else - Modelica.Constants.pi/2 "Zenith angle"; + zen = if zenAng <= Modelica.Constants.pi/2 then zenAng + else Modelica.Constants.pi/2 "Zenith angle"; - airMas = - exp(-0.0001184*alt)/(cos(zen) + 0.5057*(96.080 - - zen*180/Modelica.Constants.pi)^(-1.634)) "Air mass"; + airMas = exp(-0.0001184*alt)/(cos(zen) + + 0.5057*(96.080 - zen*180/Modelica.Constants.pi)^(-1.634)) "Air mass"; - annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( + annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( coordinateSystem(preserveAspectRatio=false)), Documentation(info="

The model computes the air mass, which is the number of particles in the atmosphere.
It bases on an exact empirical approach by Kasten et al. and bases on the zenith angle of the object as well as its height.

diff --git a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/package.mo b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/package.mo index 100d85d662..5693a2380e 100644 --- a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/package.mo +++ b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/package.mo @@ -1,6 +1,6 @@ within IBPSA.Electrical.BaseClasses.PV.BaseClasses; package PVOptical "Models for computing irradiance-related boundary conditions for PV systems" - + extends Modelica.Icons.Package; annotation(Documentation(info="

diff --git a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PartialPVElectrical.mo b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PartialPVElectrical.mo index 151e9fbc1e..4376c4ebcd 100644 --- a/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PartialPVElectrical.mo +++ b/IBPSA/Electrical/BaseClasses/PV/BaseClasses/PartialPVElectrical.mo @@ -2,7 +2,7 @@ within IBPSA.Electrical.BaseClasses.PV.BaseClasses; partial model PartialPVElectrical "Partial electrical model for PV module model" - replaceable parameter Data.PV.Generic dat constrainedby + replaceable parameter Data.PV.Generic dat constrainedby IBPSA.Electrical.Data.PV.Generic "PV Panel data definition" annotation (choicesAllMatching); @@ -84,7 +84,7 @@ protected smooth=Smooth.Bezier)}), Diagram( coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}})), Documentation(info=" -

This is a partial model for the electrical surrogate models of a photovoltaic model.

+

This is a partial model for the electrical surrogate models of a photovoltaic module.

", revisions="