From c72d801ef8ac05844aaaffe625cd55c95954bbc7 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 28 Oct 2024 11:11:57 +0100 Subject: [PATCH] docs: ISQ part 4 released --- docs/blog/posts/isq-part-1-introduction.md | 1 + .../isq-part-2-problems-when-isq-is-not-used.md | 1 + docs/blog/posts/isq-part-3-modelling-isq.md | 1 + docs/blog/posts/isq-part-4-implemeting-isq.md | 12 ++++++++---- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/blog/posts/isq-part-1-introduction.md b/docs/blog/posts/isq-part-1-introduction.md index 0156af63..79b9ab8b 100644 --- a/docs/blog/posts/isq-part-1-introduction.md +++ b/docs/blog/posts/isq-part-1-introduction.md @@ -24,6 +24,7 @@ In this series, we will describe: - Part 1 - Introduction - [Part 2 - Problems when ISQ is not used](isq-part-2-problems-when-isq-is-not-used.md) - [Part 3 - Modelling ISQ](isq-part-3-modelling-isq.md) +- [Part 4 - Implementing ISQ](isq-part-4-implemeting-isq.md) ## Terms and Definitions diff --git a/docs/blog/posts/isq-part-2-problems-when-isq-is-not-used.md b/docs/blog/posts/isq-part-2-problems-when-isq-is-not-used.md index d7f06fde..2af73da8 100644 --- a/docs/blog/posts/isq-part-2-problems-when-isq-is-not-used.md +++ b/docs/blog/posts/isq-part-2-problems-when-isq-is-not-used.md @@ -26,6 +26,7 @@ library on just units or dimensions. - [Part 1 - Introduction](isq-part-1-introduction.md) - Part 2 - Problems when ISQ is not used - [Part 3 - Modelling ISQ](isq-part-3-modelling-isq.md) +- [Part 4 - Implementing ISQ](isq-part-4-implemeting-isq.md) ## Limitations of units-only solutions diff --git a/docs/blog/posts/isq-part-3-modelling-isq.md b/docs/blog/posts/isq-part-3-modelling-isq.md index 81903826..44b78184 100644 --- a/docs/blog/posts/isq-part-3-modelling-isq.md +++ b/docs/blog/posts/isq-part-3-modelling-isq.md @@ -25,6 +25,7 @@ language. - [Part 1 - Introduction](isq-part-1-introduction.md) - [Part 2 - Problems when ISQ is not used](isq-part-2-problems-when-isq-is-not-used.md) - Part 3 - Modelling ISQ +- [Part 4 - Implementing ISQ](isq-part-4-implemeting-isq.md) ## Dimension is not enough to describe a quantity diff --git a/docs/blog/posts/isq-part-4-implemeting-isq.md b/docs/blog/posts/isq-part-4-implemeting-isq.md index 0f43759b..e816d829 100644 --- a/docs/blog/posts/isq-part-4-implemeting-isq.md +++ b/docs/blog/posts/isq-part-4-implemeting-isq.md @@ -1,5 +1,4 @@ --- -draft: true date: 2024-10-28 authors: - mpusz @@ -189,12 +188,16 @@ inline constexpr auto Gibbs_function = Gibbs_energy; Again, the first parameter of `quantity_spec` determines the position in the tree. If a second argument is provided, it denotes a recipe for this quantity. +With the above simple definitions we've automatically addressed our _energy_-related issues from +the [Various quantities of the same dimension and kinds](isq-part-2-problems-when-isq-is-not-used.md#various-quantities-of-the-same-dimension-and-kinds) +chapter of the "Part 2" article. + ## Modeling a hierarchy of kind _dimensionless_ As the last example for this article, let's try to model and implement quantities of dimension one, often also called dimensionless quantities. This [quantity hierarchy](../../appendix/glossary.md#quantity-hierarchy) -that contains more than one [quantity kind](../../appendix/glossary.md#kind) and more than one unit in its tree: +contains more than one [quantity kind](../../appendix/glossary.md#kind) and more than one unit in its tree: ```mermaid flowchart TD @@ -238,8 +241,9 @@ but still allow the usage of `one` and its scaled versions for such quantities. !!! note - `dimensionless` is a special quantity, and it is predefined in the library's framework - (there is no way for the user to define it). + `dimensionless` is a special quantity which serves as an identity element in quantity + equations. It is predefined in the library's framework and there is no way for the user to + define it or something similar to it. ## To be continued...