Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
1
4.74k
code
stringlengths
69
637k
Package to compute airflow and contaminant transport between rooms
within AixLib; package Airflow "Package to compute airflow and contaminant transport between rooms" extends Modelica.Icons.Package; end Airflow;
Ideal model for the usage of an air curtain in the context of low order retail zones.
within AixLib.Airflow.AirCurtain; model AirCurtainSimplified "Ideal model for the usage of an air curtain in the context of low order retail zones" parameter Modelica.Units.SI.VolumeFlowRate V_flowAirCur=5 "Design volume flow rate of the air curtain"; parameter Modelica.Units.SI.TemperatureDifference TAddAirC...
Package of different air curtain models
within AixLib.Airflow; package AirCurtain "Package of different air curtain models" end AirCurtain;
This model is an example for the use of an air curtain in the low order model.
within AixLib.Airflow.AirCurtain.Examples; model AirCurtain "This model is an example for the use of an air curtain in the low order model" extends Modelica.Icons.Example; AirCurtainSimplified airCurtainSimplyfied( V_flowAirCur=5, TAddAirCur=5, etaAirCur=0.73, PAirCur=50000, ...
Air Handling Unit with Heat Recovery System, Cooling, Heating, Humidification (adiabatic), Dehumidification.
within AixLib.Airflow.AirHandlingUnit; model AHU "Air Handling Unit with Heat Recovery System, Cooling, Heating, Humidification (adiabatic), Dehumidification" extends AixLib.Airflow.AirHandlingUnit.BaseClasses.PartialAHU; /* indices and abbreviations: HRS = heat recovery system sup = supply air eta = extract...
No AHU. <span style=\"font-family: MS Shell Dlg 2;\">This model can be seen as a dummy. Connectors exist due to partialAHU but outputs are zero and inputs do not have any effect. As a conclusion it is easier to choose whether an AHU exist in a building or not. For an example see</span> <code>AixLib.Building.Low...
within AixLib.Airflow.AirHandlingUnit; model NoAHU "No AHU" extends AixLib.Airflow.AirHandlingUnit.BaseClasses.PartialAHU; Modelica.Blocks.Sources.Constant dummyPhi_supply(k=0.5) Modelica.Blocks.Sources.Constant zeroVFlowOut(k(unit="m3/s") = 0) Modelica.Blocks.Sources.Constant dummyT_supplyAirOut(k=293) Model...
Defines necessary parameters and connectors. <span style=\"font-family: MS Shell Dlg 2;\">Base class to provide connectors. Thus, it is possible to declare parameters in a general way in superior building model and give the opportunity whether an <a href=\"AixLib.Airflow.AirHandlingUnit.AHU\">AHU exist</a> or <...
within AixLib.Airflow.AirHandlingUnit.BaseClasses; partial model PartialAHU "Defines necessary parameters and connectors" parameter Real clockPeriodGeneric(min=0) = 1800 "time period in s for sampling (= converting time-continous into time-discrete) input variables. Recommendation: half of the duration of one s...
Example to test all states of the AHU model - Play with the possible modes (boolean parameters for: heating, cooling, de-/humidification.
within AixLib.Airflow.AirHandlingUnit.Examples; model AHU "Example to test all states of the AHU model - Play with the possible modes (boolean parameters for: heating, cooling, de-/humidification" extends Modelica.Icons.Example; Modelica.Blocks.Sources.Sine tempOutside( amplitude=10, f=1/86400, pha...
Contains examples for Air Handling Units
within AixLib.Airflow.AirHandlingUnit; package Examples "Contains examples for Air Handling Units" extends Modelica.Icons.ExamplesPackage; end Examples;
Facade Ventilation Unit (FVU) equipped with a recuperator
within AixLib.Airflow.FacadeVentilationUnit; model FacadeVentilationUnit "Facade Ventilation Unit (FVU) equipped with a recuperator" replaceable package Water = AixLib.Media.Water "Water Model in the system"; replaceable package Air = AixLib.Media.Air "Air Model in the system"; parameter AixLib.Airflo...
Package for decentralized air handling unit
within AixLib.Airflow; package FacadeVentilationUnit "Package for decentralized air handling unit" end FacadeVentilationUnit;
This model defines a specific mass flow rate based on the input power share
within AixLib.Airflow.FacadeVentilationUnit.BaseClasses; model SetPower "This model defines a specific mass flow rate based on the input power share" extends Modelica.Fluid.Interfaces.PartialTwoPort; parameter Modelica.Units.SI.MassFlowRate m_flow_nominal=0.05 "Nominal mass flow rate of fan"; paramet...
Contains parameter records of the facade ventilation unit
within AixLib.Airflow.FacadeVentilationUnit; package DataBase "Contains parameter records of the facade ventilation unit" extends Modelica.Icons.Package; end DataBase;
Example showing the use of facade ventilation unit and controller
within AixLib.Airflow.FacadeVentilationUnit.Examples; model FacadeVentilationUnit "Example showing the use of facade ventilation unit and controller" extends Modelica.Icons.Example; package Medium1 = AixLib.Media.Air; package Medium2 = AixLib.Media.Water; AixLib.Controls.AirHandling.FVUController FVUControl...
Powerlaw with coefficient for mass flow rate. This model describes the one-directional pressure driven air flow through an opening, using the equation
within AixLib.Airflow.Multizone; model Coefficient_m_flow "Powerlaw with coefficient for mass flow rate" extends AixLib.Airflow.Multizone.BaseClasses.PartialOneWayFlowElement( m_flow=rho*AixLib.Airflow.Multizone.BaseClasses.powerLawFixedM( C=C, dp=dp, m=m, a=a, b=b, ...
Power law with coefficient for volume flow rate. This model describes the one-directional pressure driven air flow through an opening, using the equation
within AixLib.Airflow.Multizone; model Coefficient_V_flow "Power law with coefficient for volume flow rate" extends AixLib.Airflow.Multizone.BaseClasses.PartialOneWayFlowElement( m_flow = V_flow*rho, V_flow = AixLib.Airflow.Multizone.BaseClasses.powerLawFixedM( C=C, dp=dp, m=m, a=a, ...
Door model using discretization along height coordinate. This model describes the bi-directional air flow through an open door.
within AixLib.Airflow.Multizone; model DoorDiscretizedOpen "Door model using discretization along height coordinate" extends AixLib.Airflow.Multizone.BaseClasses.DoorDiscretized; parameter Real CD=0.65 "Discharge coefficient" protected constant Real mFixed = 0.5 "Fixed value for flow coefficient"; constant ...
Door model using discretization along height coordinate. This model describes the bi-directional air flow through an open door.
within AixLib.Airflow.Multizone; model DoorDiscretizedOperable "Door model using discretization along height coordinate" extends AixLib.Airflow.Multizone.BaseClasses.DoorDiscretized; parameter Modelica.Units.SI.PressureDifference dpCloRat( min=0, displayUnit="Pa") = 4 "Pressure drop at rating condition o...
Door model for bi-directional air flow between rooms. Model for bi-directional air flow through a large opening such as a door.
within AixLib.Airflow.Multizone; model DoorOpen "Door model for bi-directional air flow between rooms" extends AixLib.Airflow.Multizone.BaseClasses.Door( final vAB = VAB_flow/AOpe, final vBA = VBA_flow/AOpe); parameter Real CD=0.65 "Discharge coefficient" parameter Real m = 0.5 "Flow coefficient" pr...
Door model for bi-directional air flow between rooms that can be open or closed. Model for bi-directional air flow through a large opening such as a door which can be opened or closed based on the control input signal <i>y</i>.
within AixLib.Airflow.Multizone; model DoorOperable "Door model for bi-directional air flow between rooms that can be open or closed" extends AixLib.Airflow.Multizone.BaseClasses.Door( final vAB = VAB_flow/A, final vBA = VBA_flow/A); parameter Real CDOpe=0.65 "Discharge coefficient of open door" param...
Effective air leakage area. This model describes the one-directional pressure driven air flow through a crack-like opening, using the equation
within AixLib.Airflow.Multizone; model EffectiveAirLeakageArea "Effective air leakage area" extends AixLib.Airflow.Multizone.Coefficient_V_flow( m=0.65, final C=L * CDRat * sqrt(2.0/rho_default) * dpRat^(0.5-m)); parameter Modelica.Units.SI.PressureDifference dpRat( min=0, displayUnit="Pa") = 4 "Pr...
Vertical shaft with no friction and no storage of heat and mass
within AixLib.Airflow.Multizone; model MediumColumn "Vertical shaft with no friction and no storage of heat and mass" replaceable package Medium = Modelica.Media.Interfaces.PartialMedium "Medium in the component" parameter Modelica.Units.SI.Length h(min=0) = 3 "Height of shaft"; parameter AixLib.Airflow.M...
Vertical shaft with no friction and storage of heat and mass
within AixLib.Airflow.Multizone; model MediumColumnDynamic "Vertical shaft with no friction and storage of heat and mass" extends AixLib.Fluid.Interfaces.LumpedVolumeDeclarations( final massDynamics=energyDynamics); replaceable package Medium = Modelica.Media.Interfaces.PartialMedium "Medium in the compo...
Orifice. This model describes the mass flow rate and pressure difference relation of an orifice in the form
within AixLib.Airflow.Multizone; model Orifice "Orifice" extends AixLib.Airflow.Multizone.Coefficient_V_flow( m=0.5, final C=CD*A*sqrt(2.0/rho_default)); parameter Modelica.Units.SI.Area A "Area of orifice" parameter Real CD=0.65 "Discharge coefficient" Modelica.Units.SI.Velocity v(nominal=1) = V_flow...
Package with models for multizone airflow and contaminant transport
within AixLib.Airflow; package Multizone "Package with models for multizone airflow and contaminant transport" extends Modelica.Icons.VariantsPackage; end Multizone;
Powerlaw with flow coefficient and flow exponent fitted based on 2 datapoints. Model that fits the flow coefficient of the massflow version of the orifice equation based on 2 datapoints of mass flow rate and pressure difference.
within AixLib.Airflow.Multizone; model Points_m_flow "Powerlaw with flow coefficient and flow exponent fitted based on 2 datapoints" extends AixLib.Airflow.Multizone.Coefficient_m_flow(final k= mMea_flow_nominal[1]/(dpMea_nominal[1]^m2), final m=m2); parameter Modelica.Units.SI.PressureDifference dpMea_n...
Powerlaw with flow coeffient fitted based on flow exponent and 1 datapoint. Model that fits the flow coefficient of the massflow version of the orifice equation based on 1 datapoint of mass flow rate and pressure difference, and given flow exponent.
within AixLib.Airflow.Multizone; model Point_m_flow "Powerlaw with flow coeffient fitted based on flow exponent and 1 datapoint" extends AixLib.Airflow.Multizone.Coefficient_m_flow(final k=mMea_flow_nominal/ (dpMea_nominal^m)); parameter Modelica.Units.SI.PressureDifference dpMea_nominal(displayUnit="Pa")...
Mass flow(y-axis) vs Pressure(x-axis) cubic spline fit model based from table data, with last two points linearly interpolated. This model describes the one-directional pressure driven air flow through an opening based on user-provided tabular data describing the relation between mass flow rate and pressure difference ...
within AixLib.Airflow.Multizone; model Table_m_flow "Mass flow(y-axis) vs Pressure(x-axis) cubic spline fit model based from table data, with last two points linearly interpolated" extends AixLib.Airflow.Multizone.BaseClasses.PartialOneWayFlowElement( m_flow = AixLib.Utilities.Math.Functions.interpolate( ...
Volume flow(y-axis) vs Pressure(x-axis) cubic spline fit model based on table data, with last two points linearly interpolated. This model describes the one-directional pressure driven air flow through an opening based on user-provided tabular data describing the relation between volume flow rate and pressure differenc...
within AixLib.Airflow.Multizone; model Table_V_flow "Volume flow(y-axis) vs Pressure(x-axis) cubic spline fit model based on table data, with last two points linearly interpolated" extends AixLib.Airflow.Multizone.Table_m_flow( final mMea_flow_nominal = VMea_flow_nominal*rho_default); parameter Modelica.Unit...
User's Guide
within AixLib.Airflow.Multizone; package UsersGuide "User's Guide" extends Modelica.Icons.Information; end UsersGuide;
Zonal flow with input air change per second. This model computes the air exchange between volumes.
within AixLib.Airflow.Multizone; model ZonalFlow_ACS "Zonal flow with input air change per second" extends AixLib.Airflow.Multizone.BaseClasses.ZonalFlow; parameter Boolean useDefaultProperties = false "Set to true to use constant density"; parameter Modelica.Units.SI.Volume V "Volume of room"; Modelica.B...
Zonal flow with input air change per second. This model computes the air exchange between volumes.
within AixLib.Airflow.Multizone; model ZonalFlow_m_flow "Zonal flow with input air change per second" extends AixLib.Airflow.Multizone.BaseClasses.ZonalFlow; Modelica.Blocks.Interfaces.RealInput mAB_flow "Mass flow rate from A to B, positive if flow from port_a1 to port_b1" Modelica.Blocks.Interfaces.RealInput m...
Partial door model for bi-directional flow
within AixLib.Airflow.Multizone.BaseClasses; partial model Door "Partial door model for bi-directional flow" extends AixLib.Fluid.Interfaces.PartialFourPortInterface( redeclare final package Medium1 = Medium, redeclare final package Medium2 = Medium, final allowFlowReversal1=true, final allowFlowRev...
Door model using discretization along height coordinate. This is a partial model for the bi-directional air flow through a door.
within AixLib.Airflow.Multizone.BaseClasses; partial model DoorDiscretized "Door model using discretization along height coordinate" extends AixLib.Airflow.Multizone.BaseClasses.TwoWayFlowElementBuoyancy; parameter Integer nCom=10 "Number of compartments for the discretization"; parameter Modelica.Units.SI.Pr...
Interface that defines parameters for error control. This is an interface that defines parameters used for error control.
within AixLib.Airflow.Multizone.BaseClasses; model ErrorControl "Interface that defines parameters for error control" parameter Boolean forceErrorControlOnFlow = true "Flag to force error control on m_flow. Set to true if interested in flow rate" end ErrorControl;
Package with base classes for AixLib.Airflow.Multizone
within AixLib.Airflow.Multizone; package BaseClasses "Package with base classes for AixLib.Airflow.Multizone" extends Modelica.Icons.BasesPackage; end BaseClasses;
Partial model for flow resistance with one-way flow. This partial model is used to model one way flow-elements. It holds the conservation equations and should be extended by definition of <u><b>one</b></u> of the following variables:
within AixLib.Airflow.Multizone.BaseClasses; partial model PartialOneWayFlowElement "Partial model for flow resistance with one-way flow" extends AixLib.Fluid.Interfaces.PartialTwoPortInterface( final allowFlowReversal=true); extends AixLib.Airflow.Multizone.BaseClasses.ErrorControl; constant Boolean homot...
Power law used in orifice equations. This model describes the mass flow rate and pressure difference relation of an orifice in the form
within AixLib.Airflow.Multizone.BaseClasses; function powerLaw "Power law used in orifice equations" extends Modelica.Icons.Function; input Real C "Flow coefficient, C = V_flow/ dp^m"; input Modelica.Units.SI.PressureDifference dp(displayUnit="Pa") "Pressure difference"; input Real m(min=0.5, max=1) "F...
Power law used in orifice equations when m is constant. This model describes the mass flow rate and pressure difference relation of an orifice in the form
within AixLib.Airflow.Multizone.BaseClasses; function powerLawFixedM "Power law used in orifice equations when m is constant" extends Modelica.Icons.Function; input Real C "Flow coefficient, C = V_flow/ dp^m"; input Modelica.Units.SI.PressureDifference dp(displayUnit="Pa") "Pressure difference"; input Re...
Power law resistance parameters. Parameters that are required for the components that implement a power law resistance.
within AixLib.Airflow.Multizone.BaseClasses; model PowerLawResistanceParameters "Power law resistance parameters" parameter Real m(min=0.5, max=1) "Flow exponent, m=0.5 for turbulent, m=1 for laminar"; protected constant Real gamma(min=1) = 1.5 "Normalized flow rate where dphi(0)/dpi intersects phi(1)"; ...
Flow resistance that uses the power law
within AixLib.Airflow.Multizone.BaseClasses; partial model TwoWayFlowElement "Flow resistance that uses the power law" extends AixLib.Fluid.Interfaces.PartialFourPortInterface( redeclare final package Medium1 = Medium, redeclare final package Medium2 = Medium, final allowFlowReversal1=true, final allo...
Flow resistance that uses the power law. This is a partial model for models that describe the bi-directional air flow through large openings.
within AixLib.Airflow.Multizone.BaseClasses; partial model TwoWayFlowElementBuoyancy "Flow resistance that uses the power law" extends AixLib.Airflow.Multizone.BaseClasses.TwoWayFlowElement; parameter Modelica.Units.SI.Length wOpe=0.9 "Width of opening" parameter Modelica.Units.SI.Length hOpe=2.1 "Height of op...
Wind pressure coefficient for low-rise buildings. This function computes the wind pressure coefficient for low-rise buildings with rectangular shape. The correlation is the data fit from Swami and Chandra (1987), who fitted a function to various wind pressure coefficients from the literature. The same correlation is al...
within AixLib.Airflow.Multizone.BaseClasses; function windPressureLowRise "Wind pressure coefficient for low-rise buildings" extends Modelica.Icons.Function; input Real Cp0 "Wind pressure coefficient for normal wind incidence angle"; input Modelica.Units.SI.Angle alpha "Wind incidence angle (0: normal to...
Flow across zonal boundaries of a room
within AixLib.Airflow.Multizone.BaseClasses; partial model ZonalFlow "Flow across zonal boundaries of a room" extends AixLib.Fluid.Interfaces.PartialFourPortInterface( redeclare final package Medium1 = Medium, redeclare final package Medium2 = Medium, final allowFlowReversal1 = false, final allowFlowR...
Collection of models that illustrate model use and test models
within AixLib.Airflow.Multizone.BaseClasses; package Examples "Collection of models that illustrate model use and test models" extends Modelica.Icons.ExamplesPackage; end Examples;
Test model for power law function. This examples demonstrates the <a href=\"modelica://AixLib.Airflow.Multizone.BaseClasses.powerLaw\"> Buildings.Airflow.Multizone.BaseClasses.powerLaw</a> function.
within AixLib.Airflow.Multizone.BaseClasses.Examples; model PowerLaw "Test model for power law function" extends Modelica.Icons.Example; parameter Real C = 2/10^m "Flow coefficient, k = V_flow/ dp^m"; parameter Real m(min=0.5, max=1) = 0.5 "Flow exponent, m=0.5 for turbulent, m=1 for laminar"; parameter Mo...
Test model for power law function. This examples demonstrates the <a href=\"modelica://AixLib.Airflow.Multizone.BaseClasses.powerLaw\"> Buildings.Airflow.Multizone.BaseClasses.powerLaw</a> and <a href=\"modelica://AixLib.Airflow.Multizone.BaseClasses.powerLawFixedM\"> Buildings.Airflow.Multizone.BaseClasses.powerLawFix...
within AixLib.Airflow.Multizone.BaseClasses.Examples; model PowerLawFixedM "Test model for power law function" extends Modelica.Icons.Example; parameter Real C = 2/10^m "Flow coefficient, C = V_flow/ dp^m"; constant Real m(min=0.5, max=1) = 0.5 "Flow exponent, m=0.5 for turbulent, m=1 for laminar"; paramet...
Test model for wind pressure function. This examples demonstrates the <a href=\"modelica://AixLib.Airflow.Multizone.BaseClasses.windPressureLowRise\"> AixLib.Airflow.Multizone.BaseClasses.windPressureLowRise</a> function.
within AixLib.Airflow.Multizone.BaseClasses.Examples; model WindPressureLowRise "Test model for wind pressure function" extends Modelica.Icons.Example; parameter Real Cp0 = 0.6 "Wind pressure coefficient for normal wind incidence angle"; Modelica.Units.SI.Angle incAng "Wind incidence angle (0: normal to wall)...
Test model for wind pressure profile function. This examples demonstrates the <a href=\"modelica://AixLib.Airflow.Multizone.BaseClasses.windPressureProfile\"> AixLib.Airflow.Multizone.BaseClasses.windPressureProfile</a> function.
within AixLib.Airflow.Multizone.BaseClasses.Examples; model WindPressureProfile "Test model for wind pressure profile function" extends Modelica.Icons.Example; parameter Modelica.Units.SI.Angle incAngSurNor[:]( each displayUnit="deg")= {0, 45, 90, 135, 180, 225, 270, 315}*Modelica.Constants.pi/180 ...
Model with chimney effect and a steady-state model of a shaft
within AixLib.Airflow.Multizone.Examples; model ChimneyShaftNoVolume "Model with chimney effect and a steady-state model of a shaft" extends Modelica.Icons.Example; package Medium = Modelica.Media.Air.SimpleAir; AixLib.Fluid.MixingVolumes.MixingVolume roo( V=2.5*5*5, energyDynamics=Modelica.Fluid.Types...
Model with chimney effect and a dynamic model of a shaft
within AixLib.Airflow.Multizone.Examples; model ChimneyShaftWithVolume "Model with chimney effect and a dynamic model of a shaft" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; AixLib.Fluid.MixingVolumes.MixingVolume roo( V=2.5*5*5, energyDynamics=Modelica.Fluid.Types.Dynamics.Fixed...
Model with three closed doors
within AixLib.Airflow.Multizone.Examples; model ClosedDoors "Model with three closed doors" extends Modelica.Icons.Example; package Medium = AixLib.Media.Specialized.Air.PerfectGas; AixLib.Airflow.Multizone.DoorDiscretizedOperable dooAB( redeclare package Medium = Medium, LClo=20*1E-4, forceErrorCont...
Model with transport of CO2 through buoyancy driven flow
within AixLib.Airflow.Multizone.Examples; model CO2TransportStep "Model with transport of CO2 through buoyancy driven flow" extends AixLib.Airflow.Multizone.Validation.ThreeRoomsContam( volWes(nPorts=5), volTop(nPorts=3), volEas(nPorts=6)); AixLib.Fluid.Sensors.TraceSubstances CO2SenTop( redeclare ...
Model with flow reversal due to density difference
within AixLib.Airflow.Multizone.Examples; model NaturalVentilation "Model with flow reversal due to density difference" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; AixLib.Fluid.MixingVolumes.MixingVolume volA( redeclare package Medium = Medium, V=2.5*10*5, energyDynamics=Mod...
Model with an effective air leakage area
within AixLib.Airflow.Multizone.Examples; model OneEffectiveAirLeakageArea "Model with an effective air leakage area" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; AixLib.Fluid.MixingVolumes.MixingVolume volA( redeclare package Medium = Medium, V=2.5*5*5, nPorts=2, energyDyna...
Model with one open and one closed door
within AixLib.Airflow.Multizone.Examples; model OneOpenDoor "Model with one open and one closed door" extends Modelica.Icons.Example; package Medium = Modelica.Media.Air.SimpleAir; AixLib.Airflow.Multizone.DoorDiscretizedOpen dooOpe( redeclare package Medium = Medium) "Discretized door" AixLib.Fluid.Mixi...
Model with one room for the validation of the multizone air exchange models
within AixLib.Airflow.Multizone.Examples; model OneRoom "Model with one room for the validation of the multizone air exchange models" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; AixLib.Fluid.MixingVolumes.MixingVolume volEas( redeclare package Medium = Medium, energyDynamics=Mod...
Model with an orifice
within AixLib.Airflow.Multizone.Examples; model Orifice "Model with an orifice" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; AixLib.Airflow.Multizone.Orifice ori(redeclare package Medium = Medium, A= 0.2) "Orifice" AixLib.Fluid.Sources.Boundary_pT roo1( redeclare package Medium...
Collection of models that illustrate model use and test models
within AixLib.Airflow.Multizone; package Examples "Collection of models that illustrate model use and test models" extends Modelica.Icons.ExamplesPackage; end Examples;
Model with powerlaw models
within AixLib.Airflow.Multizone.Examples; model PowerLaw "Model with powerlaw models" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; Coefficient_m_flow pow_m_flow( redeclare package Medium = Medium, m=0.59, k=3.33e-5) "Mass flow rate based on powerlaw, direct input for m and C" A...
Model showing how the 'Powerlaw_1DataPoint' model can be used when data is available from a pressurization test.
within AixLib.Airflow.Multizone.Examples; model PressurizationData "Model showing how the 'Powerlaw_1DataPoint' model can be used when data is available from a pressurization test." extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; parameter Real n50=3 "ACH50, air changes at 50 Pa"; Boundar...
Model with four rooms and buoyancy-driven air circulation that reverses direction
within AixLib.Airflow.Multizone.Examples; model ReverseBuoyancy "Model with four rooms and buoyancy-driven air circulation that reverses direction" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; AixLib.Fluid.MixingVolumes.MixingVolume volBotEas( redeclare package Medium = Medium, ene...
Model with three rooms and buoyancy-driven air circulation that reverses direction
within AixLib.Airflow.Multizone.Examples; model ReverseBuoyancy3Zones "Model with three rooms and buoyancy-driven air circulation that reverses direction" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; AixLib.Fluid.MixingVolumes.MixingVolume volEas( redeclare package Medium = Medium, ...
Model with a trickle vent modelled using the models with flow based on tabulated data
within AixLib.Airflow.Multizone.Examples; model TrickleVent "Model with a trickle vent modelled using the models with flow based on tabulated data" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; BoundaryConditions.WeatherData.ReaderTMY3 weaDat( filNam=Modelica.Utilities.Files.loadReso...
Model with prescribed air exchange between two volumes
within AixLib.Airflow.Multizone.Examples; model ZonalFlow "Model with prescribed air exchange between two volumes" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air; parameter Modelica.Units.SI.Volume volA=100 "Volume of room A"; parameter Modelica.Units.SI.Volume volB=1 "Volume of room B"; Ai...
Package with type definitions
within AixLib.Airflow.Multizone; package Types "Package with type definitions" extends Modelica.Icons.TypesPackage; end Types;
Model with operable door and door that is always open
within AixLib.Airflow.Multizone.Validation; model DoorOpenClosed "Model with operable door and door that is always open" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air "Medium model"; Fluid.Sources.Boundary_pT bouA( redeclare package Medium = Medium, p(displayUnit="Pa") = 101330, ...
Validation model to verify one way flow implementation
within AixLib.Airflow.Multizone.Validation; model OneWayFlow "Validation model to verify one way flow implementation" extends Modelica.Icons.Example; package Medium = AixLib.Media.Specialized.Air.PerfectGas; Modelica.Units.SI.PressureDifference dP = ela.dp "Pressure difference over the tested elements"; Mode...
Model with open door and buoyancy driven flow only
within AixLib.Airflow.Multizone.Validation; model OpenDoorBuoyancyDynamic "Model with open door and buoyancy driven flow only" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air "Medium model"; AixLib.Airflow.Multizone.DoorOpen doo( redeclare package Medium = Medium) "Door" AixLib.Fl...
Model with open door and buoyancy and pressure driven flow
within AixLib.Airflow.Multizone.Validation; model OpenDoorBuoyancyPressureDynamic "Model with open door and buoyancy and pressure driven flow" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air "Medium model"; AixLib.Airflow.Multizone.DoorOpen doo(redeclare package Medium = Medium) "Door" ...
Model with one open door and only pressure-driven flow
within AixLib.Airflow.Multizone.Validation; model OpenDoorPressure "Model with one open door and only pressure-driven flow" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air "Medium model"; AixLib.Airflow.Multizone.DoorOpen doo( redeclare package Medium = Medium) "Door" Fluid.Source...
Model with one open door and only temperature-driven flow
within AixLib.Airflow.Multizone.Validation; model OpenDoorTemperature "Model with one open door and only temperature-driven flow" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air "Medium model"; AixLib.Airflow.Multizone.DoorOpen doo( redeclare package Medium = Medium) "Door" Fluid....
Collection of validation models
within AixLib.Airflow.Multizone; package Validation "Collection of validation models" extends Modelica.Icons.ExamplesPackage; end Validation;
Model with three rooms for the validation of the multizone air exchange models
within AixLib.Airflow.Multizone.Validation; model ThreeRoomsContam "Model with three rooms for the validation of the multizone air exchange models" extends Modelica.Icons.Example; package Medium = AixLib.Media.Air(extraPropertiesNames={"CO2"}); AixLib.Fluid.MixingVolumes.MixingVolume volEas( redeclare pac...
Model with three rooms for the validation of the multizone air exchange models
within AixLib.Airflow.Multizone.Validation; model ThreeRoomsContamDiscretizedDoor "Model with three rooms for the validation of the multizone air exchange models" extends AixLib.Airflow.Multizone.Validation.ThreeRoomsContam( redeclare AixLib.Airflow.Multizone.DoorDiscretizedOperable dooOpeClo( redeclare pac...
Package of different window ventilation models
within AixLib.Airflow; package WindowVentilation "Package of different window ventilation models" end WindowVentilation;
Partial model for empirical expressions of ventilation flow rate. This partial model provides a base class of models that estimate ventilation volume flow.
within AixLib.Airflow.WindowVentilation.BaseClasses; partial model PartialEmpiricalFlow "Partial model for empirical expressions of ventilation flow rate" parameter Modelica.Units.SI.Length winClrWidth(min=0) "Width of the window clear opening"; parameter Modelica.Units.SI.Height winClrHeight(min=0) "Heig...
Partial model for empirical expressions with stack effect considered. This partial model provides a base class of models that estimate ventilation volume flow. The model has indoor and ambient temperature input ports to account for the thermal stack effect.
within AixLib.Airflow.WindowVentilation.BaseClasses; partial model PartialEmpiricalFlowStack "Partial model for empirical expressions with stack effect considered" extends AixLib.Airflow.WindowVentilation.BaseClasses.PartialEmpiricalFlow; Modelica.Blocks.Interfaces.RealInput TRoom( final unit="K", min=273, m...
Partial model for empirical expressions with stack effect and wind incidence angle considered. This partial model provides a base class of models that estimate ventilation volume flow. The model has a wind direction input port to account for the wind incidence.
within AixLib.Airflow.WindowVentilation.BaseClasses; partial model PartialEmpiricalFlowStackWindIncidence "Partial model for empirical expressions with stack effect and wind incidence angle considered" extends PartialEmpiricalFlowStack; parameter Modelica.Units.SI.Angle aziRef(displayUnit="deg")=0 "Azimuth an...
Calculation of window opening area, unspecified type. This partial model provides a base class of window opening area.
within AixLib.Airflow.WindowVentilation.BaseClasses; partial model PartialOpeningArea "Calculation of window opening area, unspecified type" extends Modelica.Blocks.Icons.Block; parameter Modelica.Units.SI.Length winClrWidth(min=0) "Width of the window clear opening"; parameter Modelica.Units.SI.Height winC...
End of preview. Expand in Data Studio

YAML Metadata Warning:The task_categories "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

ModelicaDat_v1.0

Total entries: 3935

Dataset Collection Pipeline

1. Source Identification (Manual)

Identify and select open-source repositories containing models and libraries with clean code and well-written descriptions.

2. Data Collection (Automated)

For each model in the selected repositories, extract the following information:

  • Name
  • Location
  • Type
  • Code
  • Description Store this information in a JSONL file.

3. Data Cleaning (Manual & Automated)

Remove irrelevant descriptions and overly long code snippets through a combination of automated scripts and manual review. Specifically:

  • Exclusions:
    • Omit visualization resources, such as icons and visualization-specific components.
    • Exclude human-oriented text descriptions (e.g., "UsersGuide").
    • Skip test components like "ModelicaTest."
  • Annotations Handling:
    • Use documentation found within annotations as descriptions, if available.
    • Remove annotations containing only visualization details.

4. Pairing and Storage (Automated)

Convert the cleaned data into text (description) and code (model) pairs. Save these pairs in a JSONL file format.

5. Prompt Generation and Enhancement (Automated)

Utilize an LLM to optimize and transform each text description into a more structured prompt, such as: "Generate a model/package using the xxx library for [specific purpose]." Update the text entries with these refined prompts in the JSONL file.

6. Final Cleanup (Manual)

Conduct a final manual review to ensure all entries are accurate, relevant, and ready for fine-tuning.

Error Handling

To improve the dataset's utility, common Modelica modeling errors and their solutions have been included. These entries help users identify and resolve typical issues, benefiting both beginners and experienced users.

The pipeline utilizes an LLM and an experienced Modelica user to generate and verify error-handling entries, ensuring that solutions are both practical and actionable.

List of Considered Repos

The current focus is on energy systems modeling. Therefore, only a representative repositories in these fields have been selected.

Repo Version & Release Date Description Number of Entries
Standard Library v4.1.0 (2024-02-06) Modelica Standard library 1806
AixLib v2.0.0 (2024-08-19) Building performance simulations 2029
PhotoVoltaics v2.0.0 (2021-07-19) Simulation of photo voltaic cells and modules 47
OMCompiler - Collection of basic examples 6
Modelica University - Classic examples 27
Error Handling - Prompt pairs for error handling 20
Downloads last month
10

Models trained or fine-tuned on neighborwang/modelica_libraries