A Wolfram U Daily Study Group focusing on modeling principles applicable to dynamic systems begins on the 9th of April.
Join @Vedat Senol, @Sergio Vargas, me and a group of fellow learners to learn modeling principles that will help you in creating models of real-world systems. We’ll explore a variety of examples, from simulating the spread of infectious diseases, analyzing the cash flow dynamics of subscription-based businesses, to creating music with a model of an analog synthesizer.
No prior Wolfram System Modeler or Wolfram Language experience is required to join the study group.
Please feel free to use this thread to collaborate and share ideas, materials and links to other resources with fellow learners.
We look forward to seeing you: April 9th-19th, 2024, 11am-12pm CT (4-5pm GMT)
Great presentation today!
I kind request. If there is the opportunity, please talk about taking advantage of the large amounts of models that have been developed in Modelica language that can be imported from Wolfram SystemModeler.
Thank you Ankit, You are a good presenter. A couple of points I would like to ask about.
I had opened the file Step 1 to create the Example 1 Coffee mug. Then saved it. Then reopened it, and using the right mouse button on it to open the class viewer. Although you had on your screen the assembled model as an icon, this was not on my screen. Can you explain why this happened?
Will you be covering the create Ctrl-N , save Ctrl-S of a new model and the associated simulation (*.sme) file ? Is it customary to save the sme files in the same directory as the model files?
I would like to ask a question, it is not clear to me in any system or subsytems, how many variables are “inputs” and how many “outputs” and where is this defined. I understand in a simulation all variables are then calculated for the entre time span
Not from System Modeler, but you can create such diagrams (Sankey diagram) using the Wolfram Language.
Once you are done with the simulation, you can extract the results from your simulation in Wolfram Language. Then use the results to create such diagrams. Here are some implementations that might be useful:
Thanks for the trial version of SM 14 it permits easily to follow along.
Granted this question is most likely not part of this training, however I ask in case you can lead me to a good reference on structuring a new Media in Modelica. The media I’m interested in are range from in-compressible liquid, compressible single and multi-component gases, and refrigerants. I find it quite hard to work through the Modelica supplied documentation so am hoping someone on this forum can point out a more comprehensive explanation of how to create such media models (packages).
The easiest way of recognising inputs and outputs, for example, in a give component, is by looking at the connectors that are available in the icon of the component. Depending on the physical quantity, the connectors have different graphical representations. These are usually triangles of different colours.
In a broader sense, if you write your models, you can make any variable and input, output or none. When you make a variable input or output, there are some restrictions applied to it. For example, you will get an error when trying to connect outputs to outputs. It’s like an extra level of safety when creating your model.
All the variables are calculated when simulation is running, and the inputs will be calculated based on the output that you have connected to it. There is a special case, a top-level input, which is an input in the highest hierarchy of your model. In that case, if left unconnected, it will take a default value of zero.
I once created a Media with constant properties using the WL. You can find it below. I have not had the time to look into the case where the properties change as the thermodynamics states change.
I am not able to follow the question. To view the icon of a model or a component, you can open the model by double-clicking on it then press Ctrl + 1 to view the Icon and Ctrl + 2 to get back to the diagram view. You can refer to Step 1 in the Solution folder to check if your Step 1 in the Exercises folder matches it.
I will probably cover the new file creation and the .sme file on Thursday next week. No, there is no requirement to save the .sme file with the model files.
I think the fact that you used a Sankey diagram in your charts is evidence enough that Wolfram should implement a function or package to make good Sankey diagrams. I don’t know why it’s missing in an otherwise superb graphing capability. The code to do it myself is still a bit intimidating…
Catching up with following along using my own System Modeler evaluation version.
When I first stored the plot, the text with the name of the new plot came out black in the top right hand corner, but when you did it it came out blue; and putting the cursor on the title no longer gave me any options to make changes to it, as it did when you did it live.
I installed System Modeler version 14 and then Mathematica version 14. After that, I started System Modeler and opened ModelingPrinciples. Then,
Unresolved dependency in ModelingPrinciples
ModelingPrinciples has a declared dependency on BusinessSimulation version 2.2.0-wsm.
No version of BusinessSimulation is currently loaded.
Would you tell me why it occurred and how to fix it? The day before, I installed System modeler only and started the System Modeler to open ModelingPrinciples. Then, the same error occurred. I though that it might be because I did not instsall Mathamatica. However, now I know that it was not the reason for it.
I opened the ModelingPrinciples. Then, only grided blank with Model 1 shows. The same error occurred - i.e., no difference of Mathematica installation.
If anyone knows about why it occurred and how to fix it, would you help me on it?
I posted the question during the class yesterday, but did not get the answer.
I already found it soon after I posted the question
Now I have the Businss Simulation Library installed in System Modeler. However, I can’t change the name of Model. Your Model name is “ModelingPrinciples.Coffee.Exercises.Step1.” My Model was named as “Model 1” when I opened “ModelingPrinciples.” I have not been able to find how to change the Model’s name. I even removed System Modeler, Mathematica, and models that I created to follow your lectures and started from the first beginning to downlod them. However, I still have the same issue. Why am I the only one who raises the issue? Am I the only one who has it? Or, am I the only one who asks about it?