Questions tagged [system-modeler]

Questions on Wolfram SystemModeler, an environment for the modeling of systems with mechanical, electrical, thermal, chemical, biological, and other components, as well as combinations of different types of components.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

LQGRegulator Design Syntax and import to Systemmodeler

In learning how to import models to and from systemmodeler, I have taken a system I have built, and imported this into MMA and already created a statespacemodel. ...
1 vote
2 answers
58 views

Connection between two MultiBody SystemModels generated with Mathematica

I am trying to connect a set of SystemModels that I generated programmatically in Mathematica. I am interested in MultiBody models and I haven't tried other types of models. I am failing gloriously ...
5 votes
2 answers
231 views

How to enter vector inputs in SystemModelSimulate?

A support case with the identification [CASE:4272760] was created. I am having some difficulties to provide vector inputs for a Modelica model using Mathematica. ...
16 votes
4 answers
4k views

How to do System Dynamics simulations / diagrams in Mathematica?

System Dynamics is an approach to understanding the behaviour of complex systems over time. It deals with internal feedback loops and time delays that affect the behaviour of the entire system. What ...
2 votes
1 answer
92 views

How to install additional libraries in Wolfram language's SystemModel?

I have been using a command like the following to get models into Wolfram language: ...
1 vote
1 answer
41 views

Systemmodeler owner and other Mathematica owner [closed]

My daughter has Mathematica. I want to buy SystemModeler Wolfram. Can i use my daughter’s mathematica with my SystemModeler?
3 votes
1 answer
151 views

Can Modelica.Electrical.Spice3 or SPICELib be used in Wolfram SystemModeler?

I would like to make use of the SPICE models that are available for COTS (Commercial Off-the-Shelf) Op-Amps in Wolfram SystemModeler. There are some libraries such as SPICELib and Modelica.Electrical....
1 vote
1 answer
32 views

Parallel generation of SystemModel

I notices that it takes quite a long time to generate a lot of models. Therefore, it occures to me that maybe parallelization would help. However, the following example keeps evaluating and never ...
1 vote
1 answer
44 views

How would I save changes to a model in SystemModeler?

How would I save changes to a model in SystemModeler? The "File | Save" does not save any changes past the initial model creation. So far, the only way that I can save changes is to create a new ...
6 votes
1 answer
154 views

How to deal with equations from SystemModeler in NDSolve

I have a working SystemModel derived from Wolfram System Modeler and I imported it into Mathematica. The model works, as I can derive the solutions in SystemModeler itself as well as with the ...
0 votes
0 answers
19 views

Measure event time (SystemModeler question)

How do I measure (and report to other parts of the system), the time that an event is true (in SystemModeler)? There is a built-in block, Timer, that measures the time since an event became true. I ...
3 votes
1 answer
59 views

Poor speed of ConnectSystemModelComponents and CreateSystemModel

I'm trying to use SystemModel to simulate a large air conditioning system, but my kernel crashes from time to time when I try to connect my custom models with each ...
5 votes
0 answers
226 views

There seem to be severe issues with Mathematica 12.1 running System Modeler models and with WSM 12.1 itself on Windows 10

I am using Wolfram Mathematica 12.1 and the Wolfram System Modeler 12.1 on a Windows 10 (64 Bit) notebook. Pretty much exactly since yesterday (2020-04-10), I am experiencing severe and previously ...
1 vote
0 answers
42 views

How to use an InterpolatingFunction inside CreateSystemModel

I would like to to construct an equation with CreateSystemModel, e.g. $\dot{y}(t) = f(x(t))$, where $f$ is an interpolated function. I tried the following code <...
5 votes
1 answer
146 views

Why is a Boolean output not given as True/False by SystemModelSimulate?

Bug introduced in 11.3 and fixed in 12.1 I am a bit surprised that I am not getting a boolean output for the following simple Modelica model: ...
5 votes
1 answer
170 views

Do I need Mathematica use System Modeler?

I found a couple of interesting model examples that I would like to run in System Modeler. https://www.wolfram.com/system-modeler/examples/life-sciences/insulin-receptor-signaling.html Do I need to ...
7 votes
1 answer
266 views

Mathematica NDSolve for DAE and System Modeling

I'm a student for HVAC engineering and I've been using Mathematica for my study (mostly differential-algebraic equation system or Finite-Element-Analysis) and my hobby project for years. I really ...
4 votes
1 answer
113 views

How would I add noise to a voltage source in SystemModeler?

I have a simple circuit with a SawTooth voltage source in SystemModeler 12.0. How would I add a noise component to a sawtooth waveform? I have added a NormalNoise block named normalNoise1 to my ...
3 votes
1 answer
75 views

Can custom "operator records" be defined and used in Wolfram System Modeler (and the WL)?

From an answer to a Modelica-related question on SO I learned about the possibility to overload operators in Modelica by using spezialized class operator record. Looking into the Modelica specs for ...
0 votes
0 answers
66 views

Does SystemModeler have a spark gap among its analog electrical comonents?

I'm crafting a circuit to simulate, etc, and I can't find any spark gap component in its library. How could it be custom designed, or imported, if it's missing from the library? In the alternative, ...
0 votes
0 answers
99 views

Creating a prediction/distribution based on several years of data

So I have several years of data from a survey. For each year I've used FindDistribution and Predict to see if I can fit the data. Here's one example Where I used FindDistribution to get ...
2 votes
1 answer
103 views

Making a table of results from SystemModelSimulate [closed]

I am trying to simulate a model in SystemModeler from Mathematica 11.3. I wish to simulate this model for various parameter values and make a table of the output data. To attempt this I do the ...
3 votes
1 answer
388 views

How would I raise a number to a power in Modelica? [closed]

This is a very basic question that I cannot seem to find a solution to. The following line throws an error in Modelica: ...
1 vote
1 answer
182 views

Can a variable be used as the parameter k in a Gain block?

I am trying to model a system where gain is variable. I have created a simple two block model to first investigate the possibility of using a variable as the gain parameter. If this works, I would ...
9 votes
1 answer
169 views

Is it possible to call a Mathematica function from a SystemModeler component?

Is it possible to call Mathematica 11.3 functions from a SystemModeler 5.1 component? I see that Mathematica can run a SystemModeler simulation. Are there any examples of this? It would be very ...
42 votes
1 answer
1k views

In what way can M11.3's system modelling features be used by those who don't have SystemModeler?

Mathematica 11.3 includes some functionality from SystemModeler, but not the full SystemModeler environment. I assume that most people here are familiar with Mathematica, but not SystemModeler, or ...
13 votes
2 answers
932 views

Can Wolfram System Modeler models be published in CDFs?

Is it possible to publish or distribute Models generated with WSM in CDF format (to interested people that do not have Mathematica and/or WSM)
2 votes
1 answer
142 views

how do I link system modeler to Mathematica

I have a version of Mathematica 11.0.1 and it will not work with the latest system modeler, is there a way I can fix that
1 vote
1 answer
210 views

Is there a way to communicate wtih Modelica other than SystemModeler?

This is a full-featured, free (freedom and beer) interconnect between Mathematica and Matlab. Conversely, this is Wolfram's own commercial solution for connecting Modelica models to Mathematica. Is ...
1 vote
1 answer
249 views

How to plot a trajectory of Lorenz attractor system model (SystemModelSimulate - v11.3)

I'm using one of the system models provided with Mathematica 11.3. (I found it by evaluating SystemModelExamples[].) ...
12 votes
3 answers
747 views

Is it possible to use SystemModeler as a Modelica IDE (to create custom Modelica components)?

Wolfram's SystemModeler provides access to a large amount of components from the standard Modelica language, as is mentioned on this page. It can also be extended with Modelica libraries built by ...
4 votes
1 answer
287 views

Systems-Modeler returns comple error code 2 when building

I've been trying to get Systems-Molder to work of a few weeks now for a school project. I can make the models fine however when I try to run the simulation I get the following build errors: Building "...
2 votes
1 answer
109 views

SystemModeler Error: Could not read result file, missing data matrix, the file might be corrupt

I'm trying to run a Modelica code in SystemModeler on Windows: ...
8 votes
1 answer
275 views

Building an arch in SystemModeler

I'm trying to learn SystemModeler and struggling a little... Building on the chain pendulum example from Wolfram, I've happily made a chain with revolute joints with spring/dampeners connecting the ...
17 votes
2 answers
7k views

What is Mathematica's equivalent to MATLAB's Simulink?

MATLAB has Simulink and Simscape, Maple has MapleSim and Scilab has Xcos. What is the equivalent product for Mathematica?
1 vote
1 answer
86 views

System Modeler 4 on Mac X El Capitan does not work

I have installed the Mac version of System Modeler 4 in a MacBook Pro with OS X El Capitan . Also the Coder has been installed version 7 . But the System modeler can not find the C ++ compiler not is ...
5 votes
1 answer
223 views

How to use FindFit to optimize parameters of a WSM model via WSMLink for a parametric curve

I have I-V (current-voltage) data which I am trying to use to calibrate a PV solar cell model in WSM using WSMLink from mathematica. I am using the FindFit function which simulates the model with each ...
3 votes
1 answer
189 views

Network Analysis Problems with SystemModeler

Is it possible to analyse network problems like shortest path, minimum spanning tree, maximum flow, travelling salesman etc. with SystemModeler? If so where cm I find tutorials and examples?
1 vote
1 answer
180 views

WSMModelData Error

I am getting this error message when I run simulation in Mathematica that makes iterations to a SystemModeler model. ...
0 votes
1 answer
128 views

ArenaLib and WSM [closed]

The WSM documentation states that Typical tools for such purposes would include ARENA, and there exists also a Modelica implementation of that tool and modeling methodology, called the ARENALib. ...
7 votes
2 answers
233 views

Is it possible to add a node to a circuit model in SystemModeler?

I am putting together a basic electrical circuit model in Wolfram System Modeler. While the circuit does not technically need a common node, it makes the circuit easier to explain as branches may be ...
2 votes
0 answers
219 views

Creating an orrery

I am interested in creating an orrery, ideally with SystemModeler. I have been experimenting with the MultiBody library since that allows you to do animations. The most relevant example seems to be ...
3 votes
1 answer
198 views

SystemModeler join wires

I'm using SystemModeler and I'm trying to understand what is the equivalent for Simulink's Ctrl+drag to create a wire coming out of an existing wire. I am trying to make a wire come out of an existing ...
0 votes
1 answer
265 views

Is it possible to build/simulate/extract data from a System Modeler model completely inside a notebook using the MathModelica language syntax?

See examples in: http://www.mathematica-journal.com/issue/v10i1/contents/MathModelicaPaper/MathModelicaPaper_2.html It seems to be ruled out by the statement (Chapter 2 intro): "The subset of the ...
0 votes
1 answer
188 views

WSMModelData[] can not find my model

I have something like this in my notebook (SystemModeler is not running): ...
3 votes
2 answers
571 views

Change Temporary Directory

How to change the value of $TemporaryDirectory ? I need to change it because there is not enough space on the C drive and the calculation seems to stop after a while !
1 vote
0 answers
97 views

Parameters for modelica booleanExpression?

In SystemModeler, left-hand side, Libraries > Modelica > Blocks > Examples > ShowLogicalSources, we see a diagram with several disconnected blocks: The ...
2 votes
4 answers
2k views

System Modeler can't find g++ in Mac OS X Mavericks

I've just purchased SystemModeler (Mac OS X Mavericks) but can't verify the g++ compiler path. I assume it's in the Xcode package but nothing I've tried seems to work, for example, Applications/...
4 votes
1 answer
164 views

WSMSetValues function

I am trying to assign values to some model parameters using WSMSetValues function, however, it seems to be working only with values greater than 10^-4. Is this normal behavior or I am doing something ...
4 votes
1 answer
601 views

cannot open WSMLink

I'm evaluating Wolfram SystemModeler and I want to explore its capabilities together with Mathematica. Unfortunately, I don't manage to get WSMLink working. In the notebook I'm using I typed ...