|
- <?xml version="1.0" encoding="UTF-8"?>
- <Document>
- <Model version="4.8" build="4.8.2.10124">
- <Sidops><![CDATA[model 128 184
- description '<Information>
- <Description>
- <Version>4.8</Version>
- <IsMainModel>0</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Motor\stepper_103H5208.emx</LibraryPath>
- <TimeStamp>2020-7-22 15:08:02</TimeStamp>
- </Description>
- </Information>';
- type Mainmodel
- end;
- implementation bg
- submodels
- C 976 392
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\C.emx</LibraryPath>
- <TimeStamp>2011-11-29 15:58:35</TimeStamp>
- </Description>
- </Information>';
- type C
- ports
- power in p;
- signal out state;
- restrictions
- causality preferred out p;
- end;
- icon bg bottom
- figures
- text 'C' 976 392 color 0 18 bold;
- end;
- implementation eq
- parameters
- real c = 0.00001;
- equations
- state = int(p.f);
- p.e = state / c;
- implementation_end;
- Cycloid 184 224
- description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Sources\SignalGenerator-Cycloid.emx</LibraryPath>
- <TimeStamp>2007-9-27 16:0:53</TimeStamp>
- </Description>';
- type 'SignalGenerator-Cycloid'
- ports
- signal out output;
- end;
- icon bg bottom
- figures
- rectangle 168 208 200 240 color 0 fill 15132390;
- line 170.9 232 197.1 232 color 0;
- line 173.1 216 173.1 234.2 color 0;
- spline 173 232 177.8 230.1 184.2 220.8 196.3 218.7 color 16711680 fill 15132390;
- line 193.8 232 193.8 218.7 color 0 fill 15132390 dotted;
- end;
- implementation eq
- parameters
- real amplitude = 3.1415 {none};
- real start_time = 1.0 {s};
- real stop_time = 1.3{s};
- variables
- real hidden tDelta, cycl;
- boolean hidden change;
- equations
- "calculate at least at the start and stop time"
- change = timeevent (start_time) or timeevent (stop_time);
-
- "calculate the cycliod signal"
- tDelta = 2 * pi * (time - start_time) / (stop_time - start_time);
- cycl = amplitude * (tDelta - sin (tDelta)) / twopi;
- output = if tDelta < 0.0 then
- 0
- else
- if tDelta >= 0.0 and tDelta <= twopi then
- cycl
- else
- amplitude
- end
- end;
- implementation_end;
- I2 1024 272
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\I.emx</LibraryPath>
- <TimeStamp>2011-11-29 15:55:55</TimeStamp>
- </Description>
- </Information>';
- type I
- ports
- power in p;
- signal out state;
- restrictions
- causality preferred in p;
- end;
- icon bg bottom
- figures
- text 'I' 1024 272 color 0 18 bold;
- end;
- implementation eq
- parameters
- real i = 8e-5 {kg.m2};
- equations
- state = int(p.e);
- p.f = state / i;
- implementation_end;
- Integrate 656 336
- description '<Information>
- <Description>
- <Version>4.3</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
- <TimeStamp>2013-3-8 14:47:42</TimeStamp>
- </Description>
- </Information>';
- type Integrate
- ports
- signal in input;
- signal out output;
- end;
- icon bg bottom
- figures
- rectangle 640 320 672 352 color 0 fill 15132390;
- text '∫' 656 336.3 color 16711680 'Lucida Sans' 21 italic;
- end;
- implementation eq
- parameters
- real initial = 0; // initial value
- equations
- output = int (input, initial);
- implementation_end;
- Integrate1 720 336
- description '<Information>
- <Description>
- <Version>4.3</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
- <TimeStamp>2013-3-8 14:47:42</TimeStamp>
- </Description>
- </Information>';
- type Integrate
- ports
- signal in input;
- signal out output;
- end;
- icon bg bottom
- figures
- rectangle 704 320 736 352 color 0 fill 15132390;
- text '∫' 720 336.3 color 16711680 'Lucida Sans' 21 italic;
- end;
- implementation eq
- parameters
- real initial = 0; // initial value
- equations
- output = int (input, initial);
- implementation_end;
- OneJunction 1024 336
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:17:51</TimeStamp>
- </Description>
- </Information>';
- knot OneJunction
- ports
- rotation knot duplicatable none p [1];
- signal knot out flow [1];
- restrictions
- causality constraint one_out p;
- end;
- icon bg
- figures
- text '1' 1024 336 color 0 18 bold;
- end;
- implementation eq
- equations
- sum (direct (p.e)) = 0;
- equal (collect (p.f));
- flow = first (p.f);
- implementation_end;
- OneJunction1 936 392
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:17:51</TimeStamp>
- </Description>
- </Information>';
- knot OneJunction
- ports
- rotation knot duplicatable none p [1];
- signal knot out flow [1];
- restrictions
- causality constraint one_out p;
- end;
- icon bg
- figures
- text '1' 936 392 color 0 18 bold;
- end;
- implementation eq
- equations
- sum (direct (p.e)) = 0;
- equal (collect (p.f));
- flow = first (p.f);
- implementation_end;
- PD 568 336
- description '<Description>
- <Version>4.0</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Control\PID Control\Continuous\PD.emx</LibraryPath>
- <TimeStamp>2008-1-17 10:49:7</TimeStamp>
- </Description>';
- type PD
- ports
- signal in error;
- signal out output;
- end;
- icon bg bottom
- figures
- rectangle 552 320 584 352 color 0 fill 15132390;
- text 'PD' 568.5 336.1 color 16711680 18 bold;
- end;
- implementation eq
- parameters
- real kp = 6 {}; // Proportional gain
- real tauD = 7.5 {s}; // Derivative time constant: tauD > 0
- real beta = 0.4 {}; // Tameness constant: 0 < beta << 1
- real maximum = 100;
- variables
- real state, rate;
- equations
- rate = (kp * error - output) / (beta * tauD);
- state = int (rate);
- output = state + kp * error / beta;
- implementation_end;
- PD1 432 336
- description '<Description>
- <Version>4.0</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Control\PID Control\Continuous\PD.emx</LibraryPath>
- <TimeStamp>2008-1-17 10:49:7</TimeStamp>
- </Description>';
- type PD
- ports
- signal in error;
- signal out output;
- end;
- icon bg bottom
- figures
- rectangle 416 320 448 352 color 0 fill 15132390;
- text 'PD' 432.5 336.1 color 16711680 18 bold;
- end;
- implementation eq
- parameters
- real kp = 3 {}; // Proportional gain
- real tauD = 50 {s}; // Derivative time constant: tauD > 0
- real beta = 0.4 {}; // Tameness constant: 0 < beta << 1
- real maximum = 25;
- variables
- real state, rate;
- equations
- rate = (kp * error - output) / (beta * tauD);
- state = int (rate);
- output = state + kp * error / beta;
- implementation_end;
- PlusMinus1 392 336
- description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
- <TimeStamp>2007-9-27 10:15:13</TimeStamp>
- </Description>';
- knot PlusMinus
- ports
- signal knot duplicatable in plus [1];
- signal knot duplicatable in minus [1];
- signal knot out output [1];
- end;
- icon bg ellipse
- figures
- ellipse 384 328 400 344 color 0 fill 16777215;
- end;
- implementation eq
- equations
- output = sum (collect (plus)) - sum (collect (minus));
- implementation_end;
- PlusMinus2 528 336
- description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
- <TimeStamp>2007-9-27 10:15:13</TimeStamp>
- </Description>';
- knot PlusMinus
- ports
- signal knot duplicatable in plus [1];
- signal knot duplicatable in minus [1];
- signal knot out output [1];
- end;
- icon bg ellipse
- figures
- ellipse 520 328 536 344 color 0 fill 16777215;
- end;
- implementation eq
- equations
- output = sum (collect (plus)) - sum (collect (minus));
- implementation_end;
- R 896 392
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\R.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:35:37</TimeStamp>
- </Description>
- </Information>';
- type R
- ports
- power in p;
- end;
- icon bg bottom
- figures
- text 'R' 896 392 color 0 18 bold;
- end;
- implementation eq
- parameters
- real r = 100;
- equations
- p.e = r * p.f;
- implementation_end;
- SignalLimiter1 480 336
- description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
- <TimeStamp>2007-9-26 12:47:40</TimeStamp>
- </Description>';
- type 'SignalLimiter-Limit'
- ports
- signal in input;
- signal out output;
- end;
- icon bg bottom
- figures
- group
- rectangle 464 320 496 352 color 0 fill 15132390;
- line 479.9 324.5 479.9 349 color 0 fill 15132390;
- line 467 336.2 492.7 336.2 color 0 fill 15132390;
- spline 473.9 343.1 485.9 329.4 color 16711680 fill 15132390 width 2;
- spline 485.3 330.2 493.9 329.8 color 16711680 fill 15132390 width 2;
- spline 467 343.6 473.9 343.1 color 16711680 fill 15132390 width 2;
- end;
- end;
- implementation eq
- parameters
- real maximum = 25;
- real minimum = -25;
- equations
- output = limit (input, minimum, maximum);
- implementation_end;
- SignalLimiter2 616 336
- description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
- <TimeStamp>2007-9-26 12:47:40</TimeStamp>
- </Description>';
- type 'SignalLimiter-Limit'
- ports
- signal in input;
- signal out output;
- end;
- icon bg bottom
- figures
- group
- rectangle 600 320 632 352 color 0 fill 15132390;
- line 615.9 324.5 615.9 349 color 0 fill 15132390;
- line 603 336.2 628.7 336.2 color 0 fill 15132390;
- spline 609.9 343.1 621.9 329.4 color 16711680 fill 15132390 width 2;
- spline 621.3 330.2 629.9 329.8 color 16711680 fill 15132390 width 2;
- spline 603 343.6 609.9 343.1 color 16711680 fill 15132390 width 2;
- end;
- end;
- implementation eq
- parameters
- real maximum = 100;
- real minimum = -100;
- equations
- output = limit (input, minimum, maximum);
- implementation_end;
- Splitter2 304 336
- description '<Description><Version>4.0</Version>
- <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
- <TimeStamp>2008-01-17 11:28:29</TimeStamp>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- </Description>';
- knot Splitter
- ports
- signal knot duplicatable out output [1];
- signal knot in input [1];
- end;
- icon bg ellipse
- figures
- ellipse 300.8 332.8 307.2 339.2 color -1 fill 0;
- ellipse 299.7 331.7 308.3 340.3 color -1;
- terminals
- input 304 336 fixed;
- end;
- implementation eq
- equations
- collect (output) = input;
- implementation_end;
- Splitter3 688 336
- description '<Description><Version>4.0</Version>
- <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
- <TimeStamp>2008-01-17 11:28:29</TimeStamp>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- </Description>';
- knot Splitter
- ports
- signal knot duplicatable out output [1];
- signal knot in input [1];
- end;
- icon bg ellipse
- figures
- ellipse 684.8 332.8 691.2 339.2 color -1 fill 0;
- ellipse 683.7 331.7 692.3 340.3 color -1;
- terminals
- input 688 336 fixed;
- end;
- implementation eq
- equations
- collect (output) = input;
- implementation_end;
- Splitter4 752 336
- description '<Description><Version>4.0</Version>
- <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
- <TimeStamp>2008-01-17 11:28:29</TimeStamp>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- </Description>';
- knot Splitter
- ports
- signal knot duplicatable out output [1];
- signal knot in input [1];
- end;
- icon bg ellipse
- figures
- ellipse 748.8 332.8 755.2 339.2 color -1 fill 0;
- ellipse 747.7 331.7 756.3 340.3 color -1;
- terminals
- input 752 336 fixed;
- end;
- implementation eq
- equations
- collect (output) = input;
- implementation_end;
- Square 216 336
- description '<Description>
- <Version>4.0</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Sources\WaveGenerator-Square.emx</LibraryPath>
- <TimeStamp>2009-3-5 16:05:33</TimeStamp>
- </Description>';
- type 'WaveGenerator-Square'
- ports
- signal out output;
- end;
- icon bg bottom
- figures
- rectangle 200.1 320 231.9 352 color 0 fill 15132390;
- line 204.1 323.9 203.9 350.2 color 0 fill 0;
- line 201.9 348.1 227.9 348.1 color 0 fill 0;
- line 204.1 348.1 208 348.1 208 336 color 16711680 fill 0;
- line 216 336 208 336 216 336 color 16711680 fill 0;
- line 216 348.1 216 336 216 348.1 color 16711680 fill 0;
- line 224 336 224 348.1 224 336 color 16711680 fill 0;
- line 227.9 336.1 223.7 336.1 color 16711680 fill 0;
- line 216 348.1 224 348.1 color 16711680 fill 0;
- end;
- implementation eq
- parameters
- real amplitude = 1.0; // amplitude of the wave
- real omega = 0.1 {rad/s}; // angular frequency of the wave
- variables
- real hidden s, half;
- boolean hidden change;
- equations
- "calculate at least 2 points per period
- (just after the change in sign)"
- half = pi / omega;
- change = frequencyevent (half, 1e-14);
-
- "calculate the square wave"
- s = sign (sin (omega * time));
- output = if( s == 0 ) then
- amplitude
- else
- (amplitude / 2) * (s + 1)
- end;
- implementation_end;
- Step 528 472
- description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Signal\Sources\SignalGenerator-Step.emx</LibraryPath>
- <TimeStamp>2007-9-27 16:2:44</TimeStamp>
- </Description>';
- type 'SignalGenerator-Step'
- ports
- signal out output;
- end;
- icon bg bottom
- figures
- group
- rectangle 512 456 544 488 color 0 fill 15132390;
- line 521.6 468.8 538.6 468.8 color 16711680 width 2;
- line 514.9 480 541.1 480 color 0;
- line 517.1 480.1 521.7 480.1 521.7 468.7 color 16711680 width 2;
- line 517.1 464 517.1 482.2 color 0;
- end;
- end;
- implementation eq
- parameters
- real amplitude = 25;
- real start_time = 1.0 {s};
- variables
- boolean hidden change;
- equations
- "calculate at least at the start time"
- change = timeevent (start_time);
-
- "calculate the step signal"
- output = amplitude * step (start_time); implementation_end;
- Submodel1 304 200
- description '<Description><Version>4.0</Version>
- <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <TimeStamp>2007-11-1 22:32:1</TimeStamp>
- <AllowLibraryUpdate>False</AllowLibraryUpdate>
- </Description>';
- type 'Submodel-Equation'
- ports
- signal in input;
- signal out output;
- end;
- implementation eq
- parameters
- real angleStep = 1.8 {deg};
- real C = 5 {none};
- real D = 3 {none};
- real omega_max = 27.5 {rad/s};
- variables
- real a_max {rad/s2};
- real currentAngle {rad};
- real omega {rad/s};
- real acc {rad/s2};
- initialequations
- currentAngle = 0;
- omega = 0;
- equations
- a_max = C * exp(D * abs(omega));
- acc = limit(input - currentAngle, -a_max, a_max);
- omega = limint(acc, -omega_max, omega_max);
- currentAngle = int(omega);
- output = currentAngle;
- /*
- parameters
- real kp = 0.1 {}; // Proportional gain
- real tauD = 2.0 {s}; // Derivative time constant: tauD > 0
- real beta = 0.1 {}; // Tameness constant: 0 < beta << 1
- variables
- real state, rate;
- equations
- rate = (kp * error - output) / (beta * tauD);
- state = int (rate);
- output = state + kp * error / beta;*/
-
- implementation_end;
- Submodel3 832 336
- description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel></Description><Attributes><GlobalRelations>parameters
- real I_phase = 3.4 {mH};
- real R_phase = 2.9 {ohm};
- real u_max = 3.4 {V};
- real RotorInertia = 5.6e-6 {kg.m2};
- real StepperMass = 0.29 {kg};
- real angle_step = 1.8 {deg};
- real n_phase = 2 {none};
- real fluxLinkage = 0.0022 {Wb};
- real detentTorque = 0.01 {N.m};
- variables
- real omega;
- real p; // rotor division
- initialequations
- p = 2 * pi / (2 * n_phase * angle_step);
- omega = 200;</GlobalRelations></Attributes></Information>';
- type Submodel
- ports
- signal in angle;
- rotation out p;
- end;
- implementation bg
- submodels
- I 560 104
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\I.emx</LibraryPath>
- <TimeStamp>2011-11-29 15:55:55</TimeStamp>
- </Description>
- </Information>';
- type I
- ports
- power in p;
- signal out state;
- restrictions
- causality preferred in p;
- end;
- icon bg bottom
- figures
- text 'I' 560 104 color 0 18 bold;
- end;
- implementation eq
- parameters
- real global I_phase;
- equations
- state = int(p.e);
- p.f = state / I_phase;
- implementation_end;
- I1 608 328
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\I.emx</LibraryPath>
- <TimeStamp>2011-11-29 15:55:55</TimeStamp>
- </Description>
- </Information>';
- type I
- ports
- power in p;
- signal out state;
- restrictions
- causality preferred in p;
- end;
- icon bg bottom
- figures
- text 'I' 608 328 color 0 18 bold;
- end;
- implementation eq
- parameters
- real global I_phase;
- equations
- state = int(p.e);
- p.f = state / I_phase;
- implementation_end;
- I2 752 160
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\I.emx</LibraryPath>
- <TimeStamp>2011-11-29 15:55:55</TimeStamp>
- </Description>
- </Information>';
- type I
- ports
- power in p;
- signal out state;
- restrictions
- causality preferred in p;
- end;
- icon bg bottom
- figures
- text 'I' 752 160 color 0 18 bold;
- end;
- implementation eq
- parameters
- real i = 8e-5 {kg.m2};
- real global RotorInertia;
- equations
- state = int(p.e);
- p.f = state / (RotorInertia);
- implementation_end;
- MGY_a 656 160
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:03:53</TimeStamp>
- </Description>
- </Information>';
- type MGY
- ports
- power in p1;
- power out p2;
- signal in r;
- restrictions
- causality constraint equal p1 p2;
- end;
- icon bg bottom
- figures
- text 'MGY' 656 160 color 0 18 bold;
- end;
- implementation eq
- equations
- p1.e = r * p2.f;
- p2.e = r * p1.f;
- implementation_end;
- MGY_b 656 272
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:03:53</TimeStamp>
- </Description>
- </Information>';
- type MGY
- ports
- power in p1;
- power out p2;
- signal in r;
- restrictions
- causality constraint equal p1 p2;
- end;
- icon bg bottom
- figures
- text 'MGY' 656 272 color 0 18 bold;
- end;
- implementation eq
- equations
- p1.e = r * p2.f;
- p2.e = r * p1.f;
- implementation_end;
- MSe_a 512 160
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:12:33</TimeStamp>
- </Description>
- </Information>';
- type MSe
- ports
- electric out p;
- signal in effort;
- restrictions
- causality fixed out p;
- end;
- icon bg bottom
- figures
- text 'MSe' 512 160 color 0 18 bold;
- end;
- implementation eq
- variables
- real flow;
- equations
- p.e = effort;
- flow = p.f;
- implementation_end;
- MSe_b 512 272
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:12:33</TimeStamp>
- </Description>
- </Information>';
- type MSe
- ports
- electric out p;
- signal in effort;
- restrictions
- causality fixed out p;
- end;
- icon bg bottom
- figures
- text 'MSe' 512 272 color 0 18 bold;
- end;
- implementation eq
- variables
- real flow;
- equations
- p.e = effort;
- flow = p.f;
- implementation_end;
- plug angle 200 216;
- plug p 1472 216;
- OneJunction1 840 216
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:17:51</TimeStamp>
- </Description>
- </Information>';
- knot OneJunction
- ports
- rotation knot duplicatable none p [1];
- signal knot out flow [1];
- restrictions
- causality constraint one_out p;
- end;
- icon bg
- figures
- text '1' 840 216 color 0 18 bold;
- end;
- implementation eq
- equations
- sum (direct (p.e)) = 0;
- equal (collect (p.f));
- flow = first (p.f);
- implementation_end;
- OneJunction2 584 160
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:17:51</TimeStamp>
- </Description>
- </Information>';
- knot OneJunction
- ports
- electric knot duplicatable none p [1];
- signal knot out flow [1];
- restrictions
- causality constraint one_out p;
- end;
- icon bg
- figures
- text '1' 584 160 color 0 18 bold;
- end;
- implementation eq
- equations
- sum (direct (p.e)) = 0;
- equal (collect (p.f));
- flow = first (p.f);
- implementation_end;
- OneJunction3 584 272
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:17:51</TimeStamp>
- </Description>
- </Information>';
- knot OneJunction
- ports
- electric knot duplicatable none p [1];
- signal knot out flow [1];
- restrictions
- causality constraint one_out p;
- end;
- icon bg
- figures
- text '1' 584 272 color 0 18 bold;
- end;
- implementation eq
- equations
- sum (direct (p.e)) = 0;
- equal (collect (p.f));
- flow = first (p.f);
- implementation_end;
- OneJunction4 752 216
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:17:51</TimeStamp>
- </Description>
- </Information>';
- knot OneJunction
- ports
- rotation knot duplicatable none p [1];
- signal knot out flow [1];
- restrictions
- causality constraint one_out p;
- end;
- icon bg
- figures
- text '1' 752 216 color 0 18 bold;
- end;
- implementation eq
- equations
- sum (direct (p.e)) = 0;
- equal (collect (p.f));
- flow = first (p.f);
- implementation_end;
- R 608 104
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\R.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:35:37</TimeStamp>
- </Description>
- </Information>';
- type R
- ports
- power in p;
- end;
- icon bg bottom
- figures
- text 'R' 608 104 color 0 18 bold;
- end;
- implementation eq
- parameters
- real global R_phase;
- equations
- p.e = R_phase * p.f;
- implementation_end;
- R1 560 328
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\R.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:35:37</TimeStamp>
- </Description>
- </Information>';
- type R
- ports
- power in p;
- end;
- icon bg bottom
- figures
- text 'R' 560 328 color 0 18 bold;
- end;
- implementation eq
- parameters
- real global R_phase;
- equations
- p.e = R_phase * p.f;
- implementation_end;
- R2 824 264
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\R.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:35:37</TimeStamp>
- </Description>
- </Information>';
- type R
- ports
- power in p;
- end;
- icon bg bottom
- figures
- text 'R' 824 264 color 0 18 bold;
- end;
- implementation eq
- parameters
- real r = 1.0e-3;
- equations
- p.e = r * p.f;
- implementation_end;
- RotorAngle 656 216
- description '<Description><Version>4.0</Version>
- <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <TimeStamp>2007-11-1 22:32:1</TimeStamp>
- <AllowLibraryUpdate>False</AllowLibraryUpdate>
- </Description>';
- type Submodel
- ports
- signal out output_b;
- signal out output_a;
- signal in omega {rad/s} ;
- signal out output_d;
- end;
- icon bg
- figures
- rectangle 616 200 696 232 color 0 fill 15132390;
- text 'name' 656 216 color 0 'Clear Sans' 16;
- end;
- implementation eq
- parameters
- real global fluxLinkage;
- real global detentTorque;
- variables
- real global p;
- real angle {rad};
- equations
- angle = int(omega);
- output_a = -p * fluxLinkage * sin(p * angle);
- output_b = p * fluxLinkage * sin(p * angle - pi / 2);
- output_d = detentTorque * sin(2 * p * angle);
- implementation_end;
- Se 752 272
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:12:33</TimeStamp>
- </Description>
- </Information>';
- type MSe
- ports
- power out p;
- signal in effort;
- restrictions
- causality fixed out p;
- end;
- icon bg bottom
- figures
- text 'MSe' 752 272 color 0 18 bold;
- end;
- implementation eq
-
- variables
- real flow;
- equations
- p.e = effort;
- flow = p.f;
- implementation_end;
- Submodel2 512 216
- description '<Description><Version>4.0</Version>
- <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <TimeStamp>2007-11-1 22:32:1</TimeStamp>
- <AllowLibraryUpdate>False</AllowLibraryUpdate>
- </Description>';
- type Submodel
- ports
- signal in angle;
- signal out a;
- signal out b;
- end;
- icon bg
- figures
- rectangle 472 200 552 232 color 0 fill 15132390;
- text 'name' 512 216 color 0 'Clear Sans' 16;
- end;
- implementation eq
- parameters
- real global u_max {V};
- real global angle_step;
- real max_a {m/s2};
- variables
- real current_angle;
- real c,s;
- real global p;
- boolean hidden eventa, eventb;
- equations
- a = u_max * (cos (p*angle));
- eventa = event(a);
- b = u_max * -(sin (p*angle));
- eventb = event(b);
- current_angle = angle;
-
-
-
- implementation_end;
- end;
- connections
- angle -> Submodel2\angle;
- I2\p <= OneJunction4\p;
- MGY_a\p2 => OneJunction4\p;
- MGY_b\p2 => OneJunction4\p;
- MSe_b\p => OneJunction3\p;
- OneJunction1\p => p;
- OneJunction2\p <= MSe_a\p;
- OneJunction2\p => I\p;
- OneJunction2\p => MGY_a\p1;
- OneJunction2\p => R\p;
- OneJunction3\p => I1\p;
- OneJunction3\p => MGY_b\p1;
- OneJunction3\p => R1\p;
- OneJunction4\flow -> RotorAngle\omega;
- OneJunction4\p => OneJunction1\p;
- OneJunction4\p => R2\p;
- RotorAngle\output_a -> MGY_a\r;
- RotorAngle\output_b -> MGY_b\r;
- RotorAngle\output_d -> Se\effort;
- Se\p => OneJunction4\p;
- Submodel2\a -> MSe_a\effort;
- Submodel2\b -> MSe_b\effort;
- end;
- implementation_end;
- ZeroJunction1 936 336
- description '<Information>
- <Description>
- <Version>4.2</Version>
- <IsMainModel>1</IsMainModel>
- <KeepParameterValues>False</KeepParameterValues>
- <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
- <TimeStamp>2011-11-29 16:45:16</TimeStamp>
- </Description>
- </Information>';
- knot ZeroJunction
- ports
- rotation knot duplicatable none p [1];
- signal knot out effort [1];
- restrictions
- causality constraint one_in p;
- end;
- icon bg
- figures
- text '0' 936 336 color 0 18 bold;
- end;
- implementation eq
- equations
- sum (direct (p.f)) = 0;
- equal (collect (p.e));
- effort = first (p.e);
- implementation_end;
- end;
- connections
- C\p <= OneJunction1\p;
- Integrate\output -> Splitter3\input;
- Integrate1\output -> Splitter4\input;
- OneJunction\p => I2\p;
- OneJunction1\p => R\p;
- PD\output -> SignalLimiter2\input;
- PD1\output -> SignalLimiter1\input;
- PlusMinus1\output -> PD1\error;
- PlusMinus2\output -> PD\error;
- SignalLimiter1\output -> PlusMinus2\plus;
- SignalLimiter2\output -> Integrate\input;
- Splitter2\output -> PlusMinus1\plus;
- Splitter2\output -> Submodel1\input;
- Splitter3\output -> Integrate1\input;
- Splitter3\output -> PlusMinus2\minus 688 288 528 288;
- Splitter4\output -> PlusMinus1\minus 752 384 392 384;
- Splitter4\output -> Submodel3\angle;
- Square\output -> Splitter2\input;
- Submodel3\p => ZeroJunction1\p;
- ZeroJunction1\p => OneJunction\p;
- end;
- implementation_end;
- ]]>
- </Sidops>
- </Model>
- <Experiments>
- <DefaultExperiment><![CDATA[Experiment 1]]>
- </DefaultExperiment>
- <Experiment>
- <Name>Experiment 1</Name>
- <CreatedBy></CreatedBy>
- <Info></Info>
- <ExpData>
- <VersionNumber>4.8</VersionNumber>
- <ModelProperties>
- </ModelProperties>
- <Variables>
- <Constants>
- </Constants>
- <Parameters>
- <Variable>
- <Name>Submodel3\Submodel2\max_a</Name>
- <Unit>m/s2</Unit>
- <Value>0</Value>
- </Variable>
- </Parameters>
- <Initials>
- <Variable>
- <Name>C\state_initial</Name>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>I2\state_initial</Name>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>PD1\state_initial</Name>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>PD\state_initial</Name>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>Submodel1\currentAngle_initial</Name>
- <Unit>rad</Unit>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>Submodel1\omega_initial</Name>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>Submodel3\I1\state_initial</Name>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>Submodel3\I\state_initial</Name>
- <Value>0</Value>
- </Variable>
- <Variable>
- <Name>Submodel3\RotorAngle\angle_initial</Name>
- <Unit>rad</Unit>
- <Value>0</Value>
- </Variable>
- </Initials>
- </Variables>
- <PlotSpecs>
- <VarNames>
- <VarName>time</VarName>
- <VarName>Submodel3\I2\p.e</VarName>
- <VarName>Submodel3\I2\p.f</VarName>
- <VarName>Submodel3\RotorAngle\angle</VarName>
- <VarName>Submodel3\MSe_a\effort</VarName>
- <VarName>Submodel3\MSe_b\effort</VarName>
- <VarName>Submodel3\Submodel2\a</VarName>
- <VarName>Submodel3\Submodel2\b</VarName>
- <VarName>Integrate\input</VarName>
- <VarName>Integrate\output</VarName>
- <VarName>Integrate1\output</VarName>
- <VarName>Square\output</VarName>
- <VarName>PD\error</VarName>
- <VarName>PD1\error</VarName>
- </VarNames>
- <Plots>
- <Plot>
- <PlotType>GraphPlot</PlotType>
- <BasePlot>
- <PlotId>1</PlotId>
- <UseWindowsBGColor>false</UseWindowsBGColor>
- <BGColor>16777215</BGColor>
- <PlotIsVisible>true</PlotIsVisible>
- </BasePlot>
- <Grid>
- <DrawGrid>true</DrawGrid>
- <GridColor>15780518</GridColor>
- <GridBorderLineColor>12624260</GridBorderLineColor>
- <GridZeroLineColor>0</GridZeroLineColor>
- <XTicks>10</XTicks>
- <YTicks>10</YTicks>
- <ZTicks>10</ZTicks>
- <Use3DLook>false</Use3DLook>
- </Grid>
- <PlotBGColor>16777215</PlotBGColor>
- <ShowPlotTitle>true</ShowPlotTitle>
- <TitlePosition>1</TitlePosition>
- <PlotTitle>model</PlotTitle>
- <ShowXValues>true</ShowXValues>
- <Fonts>
- <TitleFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </TitleFont>
- <LabelFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LabelFont>
- <ValuesFont>
- <Name>Arial</Name>
- <Height>10</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </ValuesFont>
- <LegendFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LegendFont>
- </Fonts>
- <SharedXAxis>true</SharedXAxis>
- <SharedYAxis>false</SharedYAxis>
- <SharedZAxis>false</SharedZAxis>
- <XAxes>
- <Axis>
- <Minimum>0.0</Minimum>
- <Maximum>1.8</Maximum>
- <Linear>true</Linear>
- <Scaling>3</Scaling>
- <Label>time</Label>
- </Axis>
- </XAxes>
- <YAxes>
- <Axis>
- <Minimum>-0.005</Minimum>
- <Maximum>0.005</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>I2\p.e</Label>
- </Axis>
- <Axis>
- <Minimum>-2.0</Minimum>
- <Maximum>8.0</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>I2\p.f</Label>
- </Axis>
- </YAxes>
- <ZAxes>
- </ZAxes>
- <Curves>
- <Curve>
- <LineColor>3355111</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>3355111</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Submodel3\I2\p.e</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>6076255</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>6076255</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Submodel3\I2\p.f</VarName>
- </YCurveData>
- </Curve>
- </Curves>
- <Legenda>
- <ShowLegenda>true</ShowLegenda>
- <BorderPenColor>0</BorderPenColor>
- <BackgroundColor>16777215</BackgroundColor>
- </Legenda>
- </Plot>
- <Plot>
- <PlotType>GraphPlot</PlotType>
- <BasePlot>
- <PlotId>2</PlotId>
- <UseWindowsBGColor>false</UseWindowsBGColor>
- <BGColor>16777215</BGColor>
- <PlotIsVisible>true</PlotIsVisible>
- </BasePlot>
- <Grid>
- <DrawGrid>true</DrawGrid>
- <GridColor>15780518</GridColor>
- <GridBorderLineColor>12624260</GridBorderLineColor>
- <GridZeroLineColor>0</GridZeroLineColor>
- <XTicks>10</XTicks>
- <YTicks>10</YTicks>
- <ZTicks>10</ZTicks>
- <Use3DLook>false</Use3DLook>
- </Grid>
- <PlotBGColor>16777215</PlotBGColor>
- <ShowPlotTitle>true</ShowPlotTitle>
- <TitlePosition>1</TitlePosition>
- <PlotTitle>model(2)</PlotTitle>
- <ShowXValues>true</ShowXValues>
- <Fonts>
- <TitleFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </TitleFont>
- <LabelFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LabelFont>
- <ValuesFont>
- <Name>Arial</Name>
- <Height>10</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </ValuesFont>
- <LegendFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LegendFont>
- </Fonts>
- <SharedXAxis>true</SharedXAxis>
- <SharedYAxis>true</SharedYAxis>
- <SharedZAxis>false</SharedZAxis>
- <XAxes>
- <Axis>
- <Minimum>0.0</Minimum>
- <Maximum>1.8</Maximum>
- <Linear>true</Linear>
- <Scaling>3</Scaling>
- <Label>time</Label>
- </Axis>
- </XAxes>
- <YAxes>
- <Axis>
- <Minimum>-0.39999999999999986</Minimum>
- <Maximum>1.6</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>angle</Label>
- </Axis>
- <Axis>
- <Minimum>-1.5</Minimum>
- <Maximum>3.5</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>output</Label>
- </Axis>
- </YAxes>
- <ZAxes>
- </ZAxes>
- <Curves>
- <Curve>
- <LineColor>3355111</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>3355111</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Submodel3\RotorAngle\angle</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>6076255</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>6076255</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Square\output</VarName>
- </YCurveData>
- </Curve>
- </Curves>
- <Legenda>
- <ShowLegenda>true</ShowLegenda>
- <BorderPenColor>0</BorderPenColor>
- <BackgroundColor>16777215</BackgroundColor>
- </Legenda>
- </Plot>
- <Plot>
- <PlotType>GraphPlot</PlotType>
- <BasePlot>
- <PlotId>3</PlotId>
- <UseWindowsBGColor>false</UseWindowsBGColor>
- <BGColor>16777215</BGColor>
- <PlotIsVisible>true</PlotIsVisible>
- </BasePlot>
- <Grid>
- <DrawGrid>true</DrawGrid>
- <GridColor>15780518</GridColor>
- <GridBorderLineColor>12624260</GridBorderLineColor>
- <GridZeroLineColor>0</GridZeroLineColor>
- <XTicks>10</XTicks>
- <YTicks>10</YTicks>
- <ZTicks>10</ZTicks>
- <Use3DLook>false</Use3DLook>
- </Grid>
- <PlotBGColor>16777215</PlotBGColor>
- <ShowPlotTitle>true</ShowPlotTitle>
- <TitlePosition>1</TitlePosition>
- <PlotTitle>model(1)</PlotTitle>
- <ShowXValues>true</ShowXValues>
- <Fonts>
- <TitleFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </TitleFont>
- <LabelFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LabelFont>
- <ValuesFont>
- <Name>Arial</Name>
- <Height>10</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </ValuesFont>
- <LegendFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LegendFont>
- </Fonts>
- <SharedXAxis>true</SharedXAxis>
- <SharedYAxis>true</SharedYAxis>
- <SharedZAxis>false</SharedZAxis>
- <XAxes>
- <Axis>
- <Minimum>0.0</Minimum>
- <Maximum>1.8</Maximum>
- <Linear>true</Linear>
- <Scaling>3</Scaling>
- <Label>time</Label>
- </Axis>
- </XAxes>
- <YAxes>
- <Axis>
- <Minimum>-60.0</Minimum>
- <Maximum>140.0</Maximum>
- <Linear>true</Linear>
- <Scaling>1</Scaling>
- <Label>a</Label>
- </Axis>
- <Axis>
- <Minimum>-400.0</Minimum>
- <Maximum>600.0</Maximum>
- <Linear>true</Linear>
- <Scaling>1</Scaling>
- <Label>v</Label>
- </Axis>
- <Axis>
- <Minimum>-400.0</Minimum>
- <Maximum>600.0</Maximum>
- <Linear>true</Linear>
- <Scaling>1</Scaling>
- <Label>x</Label>
- </Axis>
- <Axis>
- <Minimum>-400.0</Minimum>
- <Maximum>600.0</Maximum>
- <Linear>true</Linear>
- <Scaling>1</Scaling>
- <Label>error v</Label>
- </Axis>
- <Axis>
- <Minimum>-400.0</Minimum>
- <Maximum>600.0</Maximum>
- <Linear>true</Linear>
- <Scaling>1</Scaling>
- <Label>error x</Label>
- </Axis>
- </YAxes>
- <ZAxes>
- </ZAxes>
- <Curves>
- <Curve>
- <LineColor>3355111</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>3355111</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Integrate\input</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>6076255</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>6076255</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Integrate\output</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>12553035</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>12553035</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Integrate1\output</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>15086320</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>15086320</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>PD\error</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>15790150</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>15790150</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>PD1\error</VarName>
- </YCurveData>
- </Curve>
- </Curves>
- <Legenda>
- <ShowLegenda>true</ShowLegenda>
- <BorderPenColor>0</BorderPenColor>
- <BackgroundColor>16777215</BackgroundColor>
- </Legenda>
- </Plot>
- <Plot>
- <PlotType>GraphPlot</PlotType>
- <BasePlot>
- <PlotId>4</PlotId>
- <UseWindowsBGColor>false</UseWindowsBGColor>
- <BGColor>16777215</BGColor>
- <PlotIsVisible>true</PlotIsVisible>
- </BasePlot>
- <Grid>
- <DrawGrid>true</DrawGrid>
- <GridColor>15780518</GridColor>
- <GridBorderLineColor>12624260</GridBorderLineColor>
- <GridZeroLineColor>0</GridZeroLineColor>
- <XTicks>10</XTicks>
- <YTicks>10</YTicks>
- <ZTicks>10</ZTicks>
- <Use3DLook>false</Use3DLook>
- </Grid>
- <PlotBGColor>16777215</PlotBGColor>
- <ShowPlotTitle>true</ShowPlotTitle>
- <TitlePosition>1</TitlePosition>
- <PlotTitle>Window 2</PlotTitle>
- <ShowXValues>true</ShowXValues>
- <Fonts>
- <TitleFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </TitleFont>
- <LabelFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LabelFont>
- <ValuesFont>
- <Name>Arial</Name>
- <Height>10</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </ValuesFont>
- <LegendFont>
- <Name>Arial</Name>
- <Height>12</Height>
- <PitchFamily>34</PitchFamily>
- <Weight>400</Weight>
- <Italic>0</Italic>
- <UnderLine>0</UnderLine>
- <StrikeOut>0</StrikeOut>
- <Color>0</Color>
- </LegendFont>
- </Fonts>
- <SharedXAxis>true</SharedXAxis>
- <SharedYAxis>true</SharedYAxis>
- <SharedZAxis>false</SharedZAxis>
- <XAxes>
- <Axis>
- <Minimum>0.0</Minimum>
- <Maximum>1.8</Maximum>
- <Linear>true</Linear>
- <Scaling>3</Scaling>
- <Label>time</Label>
- </Axis>
- </XAxes>
- <YAxes>
- <Axis>
- <Minimum>-5.0</Minimum>
- <Maximum>5.0</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>a</Label>
- </Axis>
- <Axis>
- <Minimum>-5.0</Minimum>
- <Maximum>5.0</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>effort a</Label>
- </Axis>
- <Axis>
- <Minimum>-5.0</Minimum>
- <Maximum>5.0</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>effort b</Label>
- </Axis>
- <Axis>
- <Minimum>-5.0</Minimum>
- <Maximum>5.0</Maximum>
- <Linear>true</Linear>
- <Scaling>2</Scaling>
- <Label>b</Label>
- </Axis>
- </YAxes>
- <ZAxes>
- </ZAxes>
- <Curves>
- <Curve>
- <LineColor>3355111</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>3355111</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Submodel3\Submodel2\a</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>6076255</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>6076255</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Submodel3\MSe_a\effort</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>12553035</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>12553035</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Submodel3\MSe_b\effort</VarName>
- </YCurveData>
- </Curve>
- <Curve>
- <LineColor>15086320</LineColor>
- <LineStyle>1</LineStyle>
- <TickColor>15086320</TickColor>
- <TickStyle>0</TickStyle>
- <CurveVisible>true</CurveVisible>
- <PixelThresshold>1</PixelThresshold>
- <LineThickness>1</LineThickness>
- <LineOrder>1</LineOrder>
- <ShowYValues>true</ShowYValues>
- <XCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>time</VarName>
- </XCurveData>
- <YCurveData>
- <ShowUnit>true</ShowUnit>
- <VarName>Submodel3\Submodel2\b</VarName>
- </YCurveData>
- </Curve>
- </Curves>
- <Legenda>
- <ShowLegenda>true</ShowLegenda>
- <BorderPenColor>0</BorderPenColor>
- <BackgroundColor>16777215</BackgroundColor>
- </Legenda>
- </Plot>
- </Plots>
- <PlotPanels>
- <PlotPanel>
- <PlotPanelId>1</PlotPanelId>
- <PlotPanelVisible>true</PlotPanelVisible>
- <Name>Window 1</Name>
- <Tiling>0</Tiling>
- <PlotIds>
- <PlotId>1</PlotId>
- <PlotId>2</PlotId>
- <PlotId>3</PlotId>
- </PlotIds>
- <ToggleState>Base</ToggleState>
- </PlotPanel>
- <PlotPanel>
- <PlotPanelId>2</PlotPanelId>
- <PlotPanelVisible>false</PlotPanelVisible>
- <Name>Window 2</Name>
- <Tiling>2</Tiling>
- <PlotIds>
- <PlotId>4</PlotId>
- </PlotIds>
- <ToggleState>Base</ToggleState>
- </PlotPanel>
- </PlotPanels>
- <WindowRectangles virtualDesktopWidth="5760" virtualDesktopHeight="1080">
- <WindowRectangle monitor="1" left="-1920" top="0" right="0" bottom="1080" plotpanelid="1">
- 0.0260417 0.025 0.908854 0.872222
- </WindowRectangle>
- <WindowRectangle monitor="2" left="1920" top="0" right="3840" bottom="1080" plotpanelid="2">
- 0.172917 0.158333 0.841667 0.919444
- </WindowRectangle>
- </WindowRectangles>
- </PlotSpecs>
- <RunSpecs>
- <SimulatorSettings>
- <StartTime>0.0</StartTime>
- <FinishTime>1.8</FinishTime>
- <AllowPassFinishTime>false</AllowPassFinishTime>
- <Warp>false</Warp>
- <FPGonio>false</FPGonio>
- <UseOutputAfterEach>false</UseOutputAfterEach>
- <OutputAfterEach>0.1</OutputAfterEach>
- <EventEpsilon>1.0e-6</EventEpsilon>
- <AlgebraicTolerance>1.0e-7</AlgebraicTolerance>
- <SteadyStateAnalysis>false</SteadyStateAnalysis>
- <UpdateHoldInstructions>true</UpdateHoldInstructions>
- </SimulatorSettings>
- <IntegrationMethods>
- <IntegrationMethod>
- <Name>Euler</Name>
- <StepSize>0.01</StepSize>
- <AutoStepSize>false</AutoStepSize>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>BackwardEuler</Name>
- <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
- <RelativeTolerance>1.0e-5</RelativeTolerance>
- <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
- <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
- <StepSize>0.01</StepSize>
- <Alpha>1.0</Alpha>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>AdamsBashforth</Name>
- <StepSize>0.01</StepSize>
- <AutoStepSize>false</AutoStepSize>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>RungeKutta2</Name>
- <StepSize>0.01</StepSize>
- <AutoStepSize>false</AutoStepSize>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>RungeKutta4</Name>
- <StepSize>1.0e-4</StepSize>
- <AutoStepSize>false</AutoStepSize>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>RungeKutta8</Name>
- <UseInitialStepSize>false</UseInitialStepSize>
- <InitialStepSize>0.0</InitialStepSize>
- <UseMaximumStepSize>false</UseMaximumStepSize>
- <MaximumStepSize>0.0</MaximumStepSize>
- <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
- <RelativeTolerance>1.0e-6</RelativeTolerance>
- <SafetyFactor>0.9</SafetyFactor>
- <Factor1>0.33</Factor1>
- <Factor2>6.0</Factor2>
- <Beta>0.0</Beta>
- <UseMaxNrSteps>false</UseMaxNrSteps>
- <MaxNrSteps>100000</MaxNrSteps>
- <UseStiffDetection>false</UseStiffDetection>
- <MaxNrStiffnessSteps>1000</MaxNrStiffnessSteps>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>RungeKuttaFehlberg</Name>
- <UseInitialStepSize>false</UseInitialStepSize>
- <InitialStepSize>0.0</InitialStepSize>
- <UseMaximumStepSize>false</UseMaximumStepSize>
- <MaximumStepSize>0.0</MaximumStepSize>
- <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
- <RelativeTolerance>1.0e-6</RelativeTolerance>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>VodeAdams</Name>
- <UseInitialStepSize>false</UseInitialStepSize>
- <InitialStepSize>0.0</InitialStepSize>
- <UseMaximumStepSize>false</UseMaximumStepSize>
- <MaximumStepSize>0.0</MaximumStepSize>
- <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
- <RelativeTolerance>1.0e-6</RelativeTolerance>
- <VodeUseBDF>false</VodeUseBDF>
- <VodeUseNewton>true</VodeUseNewton>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>BDFMethod</Name>
- <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
- <RelativeTolerance>1.0e-5</RelativeTolerance>
- <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
- <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
- <UseInitialStepSize>false</UseInitialStepSize>
- <InitialStepSize>0.0</InitialStepSize>
- <UseMaximumStepSize>false</UseMaximumStepSize>
- <MaximumStepSize>0.0</MaximumStepSize>
- </IntegrationMethod>
- <IntegrationMethod>
- <Name>MeBDFiMethod</Name>
- <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
- <RelativeTolerance>1.0e-5</RelativeTolerance>
- <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
- <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
- <UseInitialStepSize>false</UseInitialStepSize>
- <InitialStepSize>0.0</InitialStepSize>
- <UseMaximumStepSize>false</UseMaximumStepSize>
- <MaximumStepSize>0.0</MaximumStepSize>
- </IntegrationMethod>
- <SelectedIntegrationMethod>8</SelectedIntegrationMethod>
- </IntegrationMethods>
- </RunSpecs>
- <MultipleRun>
- <NrSteps>20</NrSteps>
- <CopyFromStates>false</CopyFromStates>
- <JoinParameterVariation>false</JoinParameterVariation>
- <ClearAfterRun>true</ClearAfterRun>
- <RedrawAfterRun>false</RedrawAfterRun>
- <DrawDuringSimulation>false</DrawDuringSimulation>
- <ActionBeforeOptimization>1</ActionBeforeOptimization>
- <CompareValue>0.0</CompareValue>
- <UseCompareValue>false</UseCompareValue>
- <MultipleRunType>Optimization</MultipleRunType>
- <Minimize>true</Minimize>
- <OptimizationVariable>Submodel3\RotorAngle\angle</OptimizationVariable>
- <CompareVariable>Square\output</CompareVariable>
- <ResulVarUsage>UseIntegralAbsolute</ResulVarUsage>
- <Tolerance>0.001</Tolerance>
- <OptimizationMethod>BroydonFletcherGoldfarbShanno</OptimizationMethod>
- <MultipleRunVariables>
- <MultipleRunVariable>
- <Name>PD1\kp</Name>
- <Minimum>1.0</Minimum>
- <Maximum>50.0</Maximum>
- <SweepMethod>Linear</SweepMethod>
- <Distribution>Uniform</Distribution>
- <Mean>15.0</Mean>
- <Deviation>3.75</Deviation>
- <TolerancePercentage>1.0</TolerancePercentage>
- <Nominal>10.0</Nominal>
- </MultipleRunVariable>
- <MultipleRunVariable>
- <Name>PD1\tauD</Name>
- <Minimum>1.0</Minimum>
- <Maximum>50.0</Maximum>
- <SweepMethod>Linear</SweepMethod>
- <Distribution>Uniform</Distribution>
- <Mean>6.0</Mean>
- <Deviation>1.5</Deviation>
- <TolerancePercentage>1.0</TolerancePercentage>
- <Nominal>10.0</Nominal>
- </MultipleRunVariable>
- </MultipleRunVariables>
- </MultipleRun>
- <ExportData>
- <WriteAsText>true</WriteAsText>
- <ReadAsText>true</ReadAsText>
- <WriteHeader>true</WriteHeader>
- <ReadHeader>true</ReadHeader>
- <ReadFilename></ReadFilename>
- <WriteFilename></WriteFilename>
- <DoWrite>false</DoWrite>
- <ExportVariables>
- </ExportVariables>
- <ImportVariables>
- </ImportVariables>
- </ExportData>
- <BreakPoints>
- </BreakPoints>
- <AnimationPlayback>
- <PlaybackSpeed>1.0</PlaybackSpeed>
- </AnimationPlayback>
- </ExpData>
- </Experiment>
- </Experiments>
- </Document>
|