WSMLink`
WSMLink`
WSMCreateModelString
WSMCreateModelString is being phased out in favor of CreateSystemModel, which was introduced experimentally in Version 11.3.
WSMCreateModelString["newmodel",sys]
creates a string with the Modelica model "newmodel", of systems model sys.
WSMCreateModelString["newmodel",eqns,t]
creates a string for the system equations eqns with independent variable t.
WSMCreateModelString["newmodel",…,tspecs]
creates a string with type specifications tspecs for variables and parameters.
WSMCreateModelString["newmodel"∈"interface",eqns,t]
creates a string extending the specification given by "interface".
Details and Options
- WSMCreateModelString takes the same arguments and options as WSMCreateModel.
- Instead of committing newmodel to the System Modeler kernel, WSMCreateModelString returns a Modelica string representation.
Examples
open allclose allBasic Examples (4)
Load Wolfram System Modeler Link:
Generate a model string based on a StateSpaceModel:
Create a model based on a TransferFunctionModel:
Properties & Relations (1)
Use WSMCreateModel to create a model in the System Modeler kernel: