Last active
October 21, 2015 13:48
-
-
Save thorade/9b2d074aa376632e607f to your computer and use it in GitHub Desktop.
testing syntax highlighting
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 SurfaceToAir "cool model" | |
Modelica.Electrical.Analog.Basic.Resistor inRes[3,3]; | |
Modelica.Electrical.Analog.Basic.Resistor outRes[3,3]; | |
equation | |
for j in 1:3 loop | |
for k in 1:3 loop | |
if inRes[j,k].R > 0 then | |
outRes[j,k].R = Modelica.Math.cos(inRes[j,k].R - inRes[k,j].R); | |
elseif inRes[j, k].R > 2 then | |
outRes[j,k].R = Modelica.Math.cos( inRes[j,k].R - inRes[k,j].R); | |
elseif inRes[j, k].R > 3 then | |
outRes[j,k].R = Modelica.Math.sin(inRes[j, k].R - inRes[k,j].R); | |
else | |
outRes[j,k].R = 0; | |
end if; | |
end for; | |
end for; | |
annotation (uses(Modelica(version="3.2.1"))); | |
end SurfaceToAir; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment