You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/basics/Validation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,7 +155,7 @@ future when `ModelingToolkit` is extended to support eliminating `DynamicQuantit
155
155
156
156
## Other Restrictions
157
157
158
-
`Unitful` provides non-scalar units such as`dBm`,`°C`, etc. At this time, `ModelingToolkit` only supports scalar quantities. Additionally, angular degrees (`°`) are not supported because trigonometric functions will treat plain numerical values as radians, which would lead systems validated using degrees to behave erroneously when being solved.
158
+
`DynamicQuantities` provides non-scalar units such as `°C`, etc. At this time, `ModelingToolkit` only supports scalar quantities. Additionally, angular degrees (`°`) are not supported because trigonometric functions will treat plain numerical values as radians, which would lead systems validated using degrees to behave erroneously when being solved.
159
159
160
160
## Troubleshooting & Gotchas
161
161
@@ -169,7 +169,7 @@ Parameter and initial condition values are supplied to problem constructors as p
169
169
170
170
```julia
171
171
functionremove_units(p::Dict)
172
-
Dict(k =>Unitful.ustrip(ModelingToolkit.get_unit(k), v) for (k, v) in p)
172
+
Dict(k =>DynamicQuantities.ustrip(ModelingToolkit.get_unit(k), v) for (k, v) in p)
173
173
end
174
174
add_units(p::Dict) =Dict(k => v * ModelingToolkit.get_unit(k) for (k, v) in p)
Copy file name to clipboardExpand all lines: src/systems/model_parsing.jl
+2-15Lines changed: 2 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -573,7 +573,7 @@ function get_t(mod, t)
573
573
get_var(mod, t)
574
574
catch e
575
575
if e isa UndefVarError
576
-
@warn("Could not find a predefined `t` in `$mod`; generating a new one within this model.\nConsider defining it or importing `t` (or `t_nounits`, `t_unitful` as `t`) from ModelingToolkit.")
576
+
@warn("Could not find a predefined `t` in `$mod`; generating a new one within this model.\nConsider defining it or importing `t` (or `t_nounitsas t`) from ModelingToolkit.")
0 commit comments