Skip to content

Commit 1f4e149

Browse files
committed
doc update
1 parent f957caa commit 1f4e149

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/catalyst_functionality/chemistry_related_functionality.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# [Chemistry-related functionality](@id chemistry_functionality)
22

33
While Catalyst has primarily been designed around the modelling of biological systems, reaction network models are also common across chemistry. This section describes two types of functionality, that while of general interest, should be especially useful in the modelling of chemical systems.
4-
- The `@compound` option, allowing the user to designate that a specific species is composed of certain subspecies.
5-
- The `balance_reaction` function enabling the user to balance a reaction so the same number of components occur on both sides.
4+
- The `@compound` option, which enables the user to designate that a specific species is composed of certain subspecies.
5+
- The `balance_reaction` function, which enables the user to balance a reaction so the same number of components occur on both sides.
66

77
## Modelling with compound species
88

99
#### Creating compound species programmatically
10-
We will first show how to create compound species through [programmatic construction](@ref programmatic_CRN_construction), and then demonstrate using the DSL. To create a compound species, use the `@compound` macro, first designating the compound, followed by its components (and stoichiometries). In this example, we will create a CO₂ molecule, consisting of one C atom and two O atoms. First, we create species corresponding to the components:
10+
We will first show how to create compound species through [programmatic model construction](@ref programmatic_CRN_construction), and then demonstrate using the DSL. To create a compound species, use the `@compound` macro, first designating the compound, followed by its components (and their stoichiometries). In this example, we will create a CO₂ molecule, consisting of one C atom and two O atoms. First, we create species corresponding to the components:
1111
```@example chem1
1212
using Catalyst
1313
@variables t
@@ -53,7 +53,7 @@ When multiple compounds are created, they can be created simultaneously using th
5353
end
5454
```
5555

56-
#### Creating compound species programmatically
56+
#### Creating compound species within the DSL
5757
It is also possible to declare species as compound species within the `@reaction_network` DSL, using the `@compounds` options:
5858
```@example chem1
5959
rn = @reaction_network begin
@@ -88,7 +88,7 @@ Default values are designated using `=`, and provided directly after the compoun
8888
```@example chem1
8989
@compound (CO2 = 2.0) ~ C + 2O
9090
```
91-
If both default values and meta data are provided, the metadata is provided after teh default value:
91+
If both default values and meta data are provided, the metadata is provided after the default value:
9292
```@example chem1
9393
@compound (CO2 = 2.0, [unit="mol"]) ~ C + 2O
9494
```

0 commit comments

Comments
 (0)