@@ -34,7 +34,7 @@ Additional kw arguments:
34
34
- `name`: Set name of the component model. Will be lifted from the System name.
35
35
- `extin=nothing`: Provide external inputs as pairs, i.e. `extin=[:extvar => VIndex(1, :a)]`
36
36
will bound the variable `extvar(t)` in the equations to the state `a` of the first vertex.
37
- - `ff_to_constraint=true`: Controlls , whether output transformations `g` which depend on inputs should be
37
+ - `ff_to_constraint=true`: Controls , whether output transformations `g` which depend on inputs should be
38
38
transformed into constraints. Defaults to true since ND.jl does not handle vertices with FF yet.
39
39
"""
40
40
function VertexModel (sys:: System , inputs, outputs; verbose= false , name= getname (sys),
96
96
Create a `EdgeModel` object from a given `System` created with ModelingToolkit for **single sided models**.
97
97
98
98
Here you only need to provide one list of output symbols: `dstout`.
99
- To make it clear how to handle the single-sided output definiton , you musst wrap
99
+ To make it clear how to handle the single-sided output definition , you must wrap
100
100
the symbol vector in
101
101
- `AntiSymmetric(dstout)`,
102
102
- `Symmetric(dstout)`, or
@@ -121,7 +121,7 @@ Additional kw arguments:
121
121
- `name`: Set name of the component model. Will be lifted from the System name.
122
122
- `extin=nothing`: Provide external inputs as pairs, i.e. `extin=[:extvar => VIndex(1, :a)]`
123
123
will bound the variable `extvar(t)` in the equations to the state `a` of the first vertex.
124
- - `ff_to_constraint=false`: Controlls , whether output transformations `g` which depend on inputs should be
124
+ - `ff_to_constraint=false`: Controls , whether output transformations `g` which depend on inputs should be
125
125
transformed into constraints.
126
126
"""
127
127
function EdgeModel (sys:: System , srcin, dstin, srcout, dstout; verbose= false , name= getname (sys),
@@ -141,7 +141,7 @@ function EdgeModel(sys::System, srcin, dstin, srcout, dstout; verbose=false, nam
141
141
singlesided = isnothing (srcout)
142
142
if singlesided && ! (dstout isa AnnotatedSym)
143
143
throw (ArgumentError (" If you only provide one output (single sided \
144
- model), it musst be wrapped either in `AntiSymmetric`, `Symmetric` or \
144
+ model), it must be wrapped either in `AntiSymmetric`, `Symmetric` or \
145
145
`Directed`!" ))
146
146
end
147
147
@@ -312,8 +312,8 @@ function generate_io_function(_sys, inputss::Tuple, outputss::Tuple;
312
312
mtkcompile (_sys; inputs= _openinputs, outputs= alloutputs, simplify= false )
313
313
catch e
314
314
if e isa ModelingToolkit. ExtraEquationsSystemException
315
- msg = " The system could not be compiled becaus of extra equations! \
316
- Somtimes , this can be related to fully implicit output equations. \
315
+ msg = " The system could not be compiled because of extra equations! \
316
+ Sometimes , this can be related to fully implicit output equations. \
317
317
Check `@doc implicit_output` for more information."
318
318
throw (ArgumentError (msg))
319
319
end
0 commit comments