More types and units

This commit is contained in:
2026-07-22 11:38:07 +02:00
parent 48ac9e2f59
commit edefb23edc
21 changed files with 1355 additions and 760 deletions

21
BEdit/m_Test.mo Normal file
View File

@@ -0,0 +1,21 @@
model m_Test
model m_Constant0
output Real y(quantity="Length", unit="m");
parameter Real v = 2;
equation
y = v;
end m_Constant0;
model m_Gain0
input Real u;
output Real y;
parameter Real k(quantity="Current", unit="A") = 2.5;
equation
y = k*u;
end m_Gain0;
m_Constant0 Constant0;
m_Gain0 Gain0;
equation
Gain0.u = Constant0.y;
annotation(
experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-06, Interval = 0.002));
end m_Test;