wang890
wang890
> > In fact, the three structural parameters mean the same thing, but in the current MTK version, they cannot use the same variable name, > > That's interesting. What...
> > that is, when @mtkbuild, MTK already allows assigning parameters and structural parameters to child models, but not to grandchild models. If support many levels like "resistor__conditionalHeatPort__ ... __useHeatPort",...
> https://build.openmodelica.org/Documentation/ModelicaReference.Operators.%27homotopy()%27.html Same document but in Letex style: [https://specification.modelica.org/master/operators-and-expressions.html#homotopy](https://specification.modelica.org/master/operators-and-expressions.html#homotopy)
``` Julia 1.11.2, VScode 1.96.2 (system setup), vscode julia extension pre-release 1.134.1 [d360d2e6] ChainRulesCore v1.25.0 [2b5f629d] DiffEqBase v6.161.0 [06fc5a27] DynamicQuantities v0.13.2 [961ee093] ModelingToolkit v9.59.0 [1dea7af3] OrdinaryDiffEq v6.90.1 [91a5bcdd] Plots v1.40.9...
I added some `println` for the debugging. ```julia function parse_variable_arg(dict, mod, arg, varclass, kwargs, where_types) vv, def, metadata_with_exprs = parse_variable_def!( dict, mod, arg, varclass, kwargs, where_types) if !(vv isa Tuple)...
@AayushSabharwal The error may come from the `convert_units` function in `model_parsing.jl` `println(metadata_with_exprs) ` , the element in the print like: ```julia Dict{DataType, Expr}(ModelingToolkit.VariableUnit => :(u"ohm")) Dict{DataType, Expr}(ModelingToolkit.VariableUnit => :(u("Resistance"))) #...
To avoid the unit errors https://github.com/SciML/ModelingToolkit.jl/issues/3248#issuecomment-2774234741, I temporarily commented out the body of the` check_units` function in `unit_check.jl`, and canceled `unit` in the `parse_variable_arg` function in `model_parsing.jl`. ```julia if haskey(metadata_with_exprs,...
To avoid the `unit` errors https://github.com/SciML/ModelingToolkit.jl/issues/3247#issuecomment-2774215354, I temporarily commented out the body of the `check_units` function in `unit_check.jl`, and canceled `unit` in the `parse_variable_arg` function in `model_parsing.jl`. ```julia if haskey(metadata_with_exprs,...
@hersle @ChrisRackauckas This pull request is a good feature. I also wrote a module `Explore` using the API functions provided by MTK. `Explore` has two tool functions, `Explore.sys()` and `Explore.model()`....