Modelica file | modelicaSublimeTextPackage | atom-language-modelica |
---|---|---|
Modelica.Electrical.Analog.Lines.mo | http://bit.ly/1KHRZGk | http://bit.ly/1vbcuYi |
Modelica.Mechanics.Translational.mo | http://bit.ly/1AWOxWH | http://bit.ly/1EJuoRA |
Modelica.Media.Icompressible.mo | http://bit.ly/1CgrfsJ | http://bit.ly/1AhMR7b |
ThermoPower.PowerPlants.mo | http://bit.ly/1yeRACy | http://bit.ly/17lt7Fm |
Buildings.Controls.Continuous.PIDHysteresisTimer.mo | http://bit.ly/1zKEqlM | http://bit.ly/17e1K09 |
[Buildings.Media.Air. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Windows PowerShell script | |
# recursively deletes LaTeX temporary files | |
# from all folder below itself | |
# get current directory | |
$curDir = Split-Path -Parent $MyInvocation.MyCommand.Path | |
Write-Host $curDir | |
# delete files | |
get-childitem $curDir -include *.aex, *.aux, *.auxlock, *.bcf, *.blg, *.dpth, *.ilg, *.lof, *.log, *.lol, *.lot, *.nlo, *.nls, *.out, *.pyg, *.run.xml, *.synctex.gz, *.toc, *.xdv -recurse | foreach ($_) {remove-item $_.fullname} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This PowerShell Script will recursively scan all files in the given $scanDir | |
# and print a list of all file extensions it finds | |
# | |
# get current directory | |
$curPath = Split-Path -Parent $MyInvocation.MyCommand.Path | |
$curDir = Split-Path -Leaf -Path $curPath | |
$scanDir = "BuildingSystems" | |
$scanPath = $curPath + "\" + $scanDir | |
$outFile = $scanPath + "\fileExtensions.txt" | |
# print the list of file extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This PowerShell Script will recursively scan all files in the given $scanDir | |
# and normalize the EOF by removing unnecessary whitespace and adding an EOL character to the last line of text | |
# Additionally, the script can normalize every EOL by trimming the trailing white space | |
cls; | |
$scanDir = "EnEffBIM-Framework" | |
$normalizeEOL = $TRUE | |
# get current directory, build scanPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
within ; | |
function printString "this function can print strings" | |
import Modelica.Utilities.Streams.print; | |
// just a comment | |
input String foo="some text" "foo doc-string"; | |
input Real bar=21 "bar doc-string"; | |
protected | |
Real baz=21 "baz doc-string"; | |
algorithm | |
print(myString + " " + String(bar+baz)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
within ; | |
model HeatingResistor_Comment "Heating resistor" | |
extends Modelica.Icons.Example; | |
Modelica.Electrical.Analog.Basic.HeatingResistor heatingResistor( | |
R_ref=100, | |
alpha=1e-3, // taken from Meyer 2016 paper | |
T_ref=293.15, // this is 20C | |
i(start=0)); | |
Modelica.Electrical.Analog.Basic.Ground G; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"alt-require": true, | |
"attr-lowercase": true, | |
"attr-no-duplication": true, | |
"attr-unsafe-chars": true, | |
"attr-value-double-quotes": false, | |
"attr-value-not-empty": false, | |
"doctype-first": true, | |
"doctype-html5": true, | |
"head-script-disabled": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s realfile symlink | |
ln -s /opt/dymola/Modelica/Library/Modelica\ 3.2.1/Resources/Library/linux32/libModelicaStandardTables.a /opt/dymola/bin/lib/libModelicaStandardTables.a | |
===================================================== | |
mklink symlink realfile | |
mklink "C:\Program Files (x86)\Dymola 2015 FD01\bin\lib\libModelicaStandardTables.a" "C:\Program Files (x86)\Dymola 2015 FD01\Modelica\Library\Modelica 3.2.1\Resources\Library\win64\libModelicaStandardTables.a" | |
mklink "C:\Program Files (x86)\Dymola 2015 FD01\bin\lib\ModelicaStandardTables.lib" "C:\Program Files (x86)\Dymola 2015 FD01\Modelica\Library\Modelica 3.2.1\Resources\Library\win64\ModelicaStandardTables.lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type trigger_type=enumeration( | |
event_trig "Event", | |
cyclic_trig "Cyclic", | |
cyclic_event_trig "Cyclic + Event", | |
initial_trig "At Start only", | |
terminal_trig "At Stop only") "Use as trigger"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
within ; | |
model ENCO_testing "code for investigating Dymola encoding problems" | |
Real TempC "Temperature in °C"; | |
parameter Real someNumber "description string german üöäß"; | |
Integer greekInt=4 "description string greek αβδεηζμθ"; | |
// a comment with math symbols: °²³~µ | |
equation | |
TempC = if greekInt > 3 then someNumber*5 else someNumber/3; | |
end ENCO_testing; |