Skip to content

Instantly share code, notes, and snippets.

@thorade
Last active October 15, 2015 12:09
Show Gist options
  • Save thorade/cabcfb272bc5ab6459b0 to your computer and use it in GitHub Desktop.
Save thorade/cabcfb272bc5ab6459b0 to your computer and use it in GitHub Desktop.
for testing Modelica syntax highlight
within Modelica.Thermal;
package HeatTransfer
"Library of 1-dimensional heat transfer with lumped elements"
annotation (version="1.1", versionDate="2005-06-13",
preferedView="info", Icon(
Polygon(points=[-54, -6; -61, -7; -75, -15; -79, -24; -80, -34; -78, -42;
-73, -49; -64, -51; -57, -51; -47, -50; -41, -43; -38, -35; -40,
-27; -40, -20; -42, -13; -47, -7; -54, -5; -54, -6], style(color=10,
fillColor=8)),
Polygon(points=[-75, -15; -79, -25; -80, -34; -78, -42; -72, -49; -64, -
51; -57, -51; -47, -50; -57, -47; -65, -45; -71, -40; -74, -33; -76,
-23; -75, -15; -75, -15], style(color=0, fillColor=9)),
Polygon(points=[39, -6; 32, -7; 18, -15; 14, -24; 13, -34; 15, -42; 20, -
49; 29, -51; 36, -51; 46, -50; 52, -43; 55, -35; 53, -27; 53, -20;
51, -13; 46, -7; 39, -5; 39, -6], style(color=9, fillColor=8)),
Polygon(points=[18, -15; 14, -25; 13, -34; 15, -42; 21, -49; 29, -51; 36,
-51; 46, -50; 36, -47; 28, -45; 22, -40; 19, -33; 17, -23; 18, -
15; 18, -15], style(color=0, fillColor=9)),
Polygon(points=[-9, -23; -9, -10; 18, -17; -9, -23], style(
color=42,
fillColor=42,
fillPattern=1)),
Line(points=[-41, -17; -9, -17], style(color=42, thickness=2)),
Line(points=[-17, -40; 15, -40], style(color=42, thickness=2)),
Polygon(points=[-17, -46; -17, -34; -40, -40; -17, -46], style(
color=42,
fillColor=42,
fillPattern=1))));
end HeatTransfer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment