Skip to content

Instantly share code, notes, and snippets.

Avatar

Dietmar Winkler dietmarw

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am dietmarw on github.
  • I am dietmarw (https://keybase.io/dietmarw) on keybase.
  • I have a public key ASBzKJB53BldshQ2JEbMTWlifvYI5zu8pSs0EAPCWGhI8Ao

To claim this, I am signing this object:

View gist:d9403c49425fcbd9f86c2ba36cc161b9
For equation
controller.BooleanExpression1.y = time > 2500;
found in class Modelica.Blocks.Interfaces, /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Blocks/Sources.mo at line 82, and used in component controller.BooleanExpression1.
The expression "time > 2500" will generate a state event and not a time event.
This is not an error, but it slightly decreases performance and is unlikely to be intentional.
The only supported variants for time-events are "time>=expr" and "time<expr", where expr is a discrete-time expression.
You can turn off this warning by setting Advanced.PedanticModelica=false.
For equation
View annotationtest.mo
model test
annotation (Documentation(info="<html>
<pre>
A = [1,2,3;
3,4,5;
2,1,4];
b = {10,22,12};
x = Matrices.solve(A,b);
Matrices.eigenValues(A);
@dietmarw
dietmarw / nbstripout.py
Created Jul 13, 2015
Removes a cell if "skip" is present in the metadata
View nbstripout.py
#!/usr/bin/env python
"""strip outputs from an IPython Notebook
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the `Clear All Output` command in the notebook UI.
(based on: https://gist.github.com/minrk/6176788)
View TODO.md
  • some task
    • some task
  • some task
    • some task
      • some task
  • some task
View INSTALL.md

Installation instructions of 32bit Dymola for Linux on a 64bit machine

Here the solution (it originates from Martin Sjölund of OM) wich I'm happy to share:

OK so I basically followed the following steps on my 64bit Ubuntu 13.10 bit machine.

Note: I got into trouble trying to get Dymola running with 32bit version of

@dietmarw
dietmarw / Modelica.xml
Created Aug 14, 2012 — forked from pclary/Modelica.xml
Modelica syntax highlighting for Notepad++
View Modelica.xml
<NotepadPlus>
<UserLang name="Modelica" ext="mo">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">000000</Keywords>
<Keywords name="Folder+">function model for parfor block class connector record package</Keywords>