Skip to content

Commit

Permalink
Updates for first release
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGautier committed Sep 1, 2023
1 parent fc57f64 commit 096bcf2
Show file tree
Hide file tree
Showing 8 changed files with 261 additions and 144 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.env.development.local
.env.test.local
.env.production.local
.vscode

npm-debug.log*
yarn-debug.log*
Expand Down
335 changes: 207 additions & 128 deletions docs/guide.mdx → docs/guide.md

Large diffs are not rendered by default.

32 changes: 27 additions & 5 deletions docs/more/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,39 @@ sidebar_position: 1

# Glossary

## Templating

### System

See [below](#component-system).

### Configuration

A system configuration corresponds to the specification of the type and layout of the equipment and the corresponding control logic. Systems with different capacities may have the same configuration, provided they have the same control software and hardware type.

### Parameterization

By parameterization we mean all possible class modifications, such as changing parameter values and redeclaring components or classes, which we refer to as class parameterization.

### Structural and value parameters

We use the term structural parameters if a parameter affects the number and structure of the equations, and value parameters if they do not. An example of a structural parameter is a parameter used to specify an array size.

### Template

A template, or template class, is defined as a Modelica model that can be parameterized (as defined above) to represent a particular system configuration.


## HVAC Systems

### Source, Load

We adopt the definitions from [ASHRAE (2021)](./references#Ashrae21) Section 5.1.19.1.

> A component is a “source” if it provides resources to a downstream component, such as a chiller providing chilled water (CHW) to an AHU.
>
> A component is a “load” if it receives resources from an upstream component, such as an AHU that receives CHW from a chiller.
>
> A component is a “source” if it provides resources to a downstream component, such as a chiller providing chilled water (CHW) to an AHU.<br />
> A component is a “load” if it receives resources from an upstream component, such as an AHU that receives CHW from a chiller.<br />
> The same component may be both a load (receiving resources from an upstream source) and a source (providing resources to a downstream load).

### Component, System

We adopt the definitions from [ASHRAE (2021)](./references#Ashrae21) Section 5.1.19.1.
Expand Down
21 changes: 15 additions & 6 deletions docs/more/nomenclature.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ sidebar_position: 2

# Nomenclature

This provides conventions mainly for variable naming, marginally for component naming.
This section provides conventions mainly for variable naming, marginally for component naming.


## Example of Control Point Naming

By way of introduction, here is an example of how the following rules translate into practical nomenclature for the CHW plant template.

<iframe src="https://docs.google.com/document/d/1LeutsY9__ClaIEjmvRHkIAMGX5dlW0Xo1BFGvJTHjs4/preview" frameborder="0" allowfullscreen width="100%" height="500"></iframe>


## Control Points
Expand Down Expand Up @@ -68,7 +75,7 @@ In the CamelCase instance name:

Similarly (exhaustive list):

- `TOut` (air implied)
- `TOut` or `phiOut` (air implied)
- `TZon` (air implied)
- `pBui_rel` (air implied)

Expand All @@ -80,7 +87,7 @@ All CamelCase morphemes should be used before the first underscore&mdash;such as

:::danger NO

Three-letter capital abbreviations are only allowed&mdash;and encouraged&mdash;in documentation and description strings.
3-letter capital abbreviations are only allowed&mdash;and encouraged&mdash;in documentation and description strings.

:::

Expand Down Expand Up @@ -112,6 +119,7 @@ Tolerated exceptions:
<details>

`min` and `max` are attributes of primitive types in Modelica, same as `nominal`, and should have the same notation, not Min and Max in CamelCase.

</details>

- For design conditions use `_nominal` not `Des`
Expand Down Expand Up @@ -157,11 +165,11 @@ For instance a sensor for supply air temperature should be named `TAirSup` inste

### Various

`Set` for a set point, always as the last morpheme. So `TZonHeaOccSet` not `TZonHeaSetOcc`.
`Set` for a set point, always as the last morpheme: so `TZonHeaOccSet` not `TZonHeaSetOcc`.

The letter `n` is used to represent a number of something (as opposed to num).
The letter `n` is used to represent a number of something (as opposed to `num`).

The letter `y` is used to represent a fractional quantity (speed, opening, load) taking 1 as maximum value, for instance `yLoa` for PLR.
The letter `y` is used to represent a fractional quantity (speed, opening, load) taking $1$ as maximum value, for instance `yLoa` for PLR.

:::tip

Expand All @@ -170,6 +178,7 @@ The letter `y` is used to represent a fractional quantity (speed, opening, load
- Prefer `cfg` to `con` for a configuration.

- Prefer `lck` to `loc` for lock-out as the latter is too loose: local, etc.

:::


Expand Down
4 changes: 2 additions & 2 deletions docs/more/references.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ sidebar_position: 3

ASHRAE (2021). Guideline 36 &ndash; High-performance sequences of operation for HVAC systems. ASHRAE.

<!-- <a id="Gautier23"></a>
<a id="Gautier23"></a>

[Gautier, A., Wetter, M., Hu, J., & Tummescheit, H. (In press). HVAC and control templates for the Modelica Buildings library. *Proceedings of the 15th International Modelica Conference*.](/pdf/2023_modelica_templates.pdf) -->
Gautier, A., Wetter, M., Hu, J., & Tummescheit, H. (In press). HVAC and control templates for the Modelica Buildings library. *Proceedings of the 15th International Modelica Conference*.

<a id="Modelica21"></a>

Expand Down
5 changes: 5 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const config = {
tagline: 'Modelica Template Development Guide',
favicon: 'img/favicon.ico',

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',

// Set the production url of your site here
url: 'https://antoinegautier.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
Expand Down Expand Up @@ -64,6 +67,8 @@ const config = {
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down
2 changes: 1 addition & 1 deletion src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const FeatureList = [
title: 'Version',
description: (
<>
0.x (draft)
1.0 (first release)
</>
),
}
Expand Down
5 changes: 3 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Heading from '@theme/Heading';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';

Expand All @@ -18,7 +19,7 @@ function HomepageHeader() {
<Link
className="button button--secondary button--lg"
to="/guide">
Go to guide
Get Started
</Link>
</div>
</div>
Expand All @@ -30,7 +31,7 @@ export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
title={`Home`}
description="Description will go into a meta tag in <head />">
<HomepageHeader />
<main>
Expand Down

0 comments on commit 096bcf2

Please sign in to comment.