Skip to content

Create Tutorial.md based on 1.4 tutorial #3672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

HansOlsson
Copy link
Collaborator

@HansOlsson HansOlsson commented Apr 14, 2025

Manually converted from pdf-document.

I no longer consider it a draft.

Most issues below are handled, and the rest (and unknown issues) can be handled after merging as it is now better than the old document.

  • Figures are missing
  • Missing table of contents, I haven't yet checked how to link to headings
  • References to the specification are likely incorrect. I would propose to link to HTML-version of specification.modelica.org (ideally development version to master and "released tutorial" to "released version", but focus on master)
  • I would propose to remove the changes-list and contributors to 1.4; similarly as we did for the specification
  • Need to update contents so that it is correct (due to changes, and stuff that never made it)
    • Graphical 1.4 primitives should be replaced by Modelica 2/3 annotations.
    • In some cases I would propose to remove the details, e.g., graphics.
    • Conditional components (as it instead had some enable idea that never made it)
    • Used MSL should correspond to actual MSL
      • The electric pin used Voltage instead of ElectricPotential. (It is correct in MSL.)
      • SI-units, new sub-packages
    • More?
  • The mapping of packages to files is likely a mess, I propose to remove that as well.
  • Should be linked from ReadMe
  • The references are at least missing recent ones, and possibly just outdated. I don't know how to best handle that. Preliminarily I made it into a readable list, and stated that they are references for the original design.

Less important ones (can be done after merging):

  • Lots of code as just text (I corrected anything with * to avoid italics
  • Lots of new constructs are not described; might add or link to MCP-documents, papers etc. Delayed
    • for-expressions might be useful (similarly as using if-equations instead of if-expressions makes the code more readable).

From casella - see 3674

Manually converted from pfd-document.
@HansOlsson
Copy link
Collaborator Author

HansOlsson and others added 16 commits April 14, 2025 16:47
Add link to tutorial
Add contents
Replace file mapping and MODELICAPATH by references.
- Basically the file mapping was too messy to quickly clean up for me. We could re-add it someone has the time.
- The MODELICAPATH information was outdated. We no longer recommend relying on an environment variable (since that creates a mess with multiple tool).
Update to Modelica 2 graphical annotations.

Remove most of the graphical annotations, since those details it don't fit with a tutorial.
Remove changes, and update references.
The enable-attribute does not exist, and they are now called "conditional components" not "conditional models".
Having a more detailed tutorial for state-machines would be good.
Be consistent with the Modelica standard library.
Updated link-references, internally, to spec, and to MSL.
Minor cleanup
Also propose if-equations, since if-expressions seems like a bad solution.
Introduce if-equations as a better alternative, and also update explanation to explain why.
Use if-equation for pendulum as well.
Add figures from 1.4 rationale, and fig5 from 1.4 tutorial.
@HansOlsson
Copy link
Collaborator Author

More work is needed, but it should now be as good as the original document.
One possibility is to just add as is, and then start working on improving it.

For recent changes I would propose a paragraph and then a link to MCP and/or paper.

@HansOlsson HansOlsson marked this pull request as ready for review April 15, 2025 08:26
Missed language setting
Indicate that it isn't just 1.4.
Use ElectricPotential instead of Voltage in the connectors.
Fix indentation
Modelica.SIunits -> Modelica.Units.SI and specific changes.
@HansOlsson HansOlsson requested a review from GallLeo April 16, 2025 14:34
Convert to code.
Updated some bad code to current Modelica.
Referencing SCCS and old version systems isn't good.
And saying that the history information is _comparable_ to version control systems no longer seem relevant with good version control systems.
so just deleted.
@HansOlsson
Copy link
Collaborator Author

Will move the rest to another issue.

Sensible reference.
@HansOlsson HansOlsson added this to the 2025-May milestone May 7, 2025
@HansOlsson
Copy link
Collaborator Author

Add:

  • newer features are missing.
  • not covered features (link to MCP etc if possible)

@HansOlsson

HansOlsson added 3 commits May 9, 2025 08:47
Closes modelica#3674

Adds a list of new features, and notes that the tutorial is up-to-date, but doesn't explain newer features.
Minor text change, and
Replaced examples-link to first workshop by link to all proceedings.
@HansOlsson
Copy link
Collaborator Author

Now updated with a list of newer features; we can later refine it.
@casella do you think it is good enough now?

Update homotopy with doi-link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants