選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

1628 行
46KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Document>
  3. <Model version="4.8" build="4.8.2.10124">
  4. <Sidops><![CDATA[model 128 184
  5. description '<Information>
  6. <Description>
  7. <Version>4.8</Version>
  8. <IsMainModel>0</IsMainModel>
  9. <KeepParameterValues>False</KeepParameterValues>
  10. <LibraryPath>Motor\stepper_103H5208.emx</LibraryPath>
  11. <TimeStamp>2020-7-21 18:09:21</TimeStamp>
  12. </Description>
  13. <Attributes>
  14. <GlobalRelations>parameters
  15. real I_phase = 3.4 {mH};
  16. real R_phase = 2.9 {ohm};
  17. real RotorInertia = 5.6e-6 {kg.m2};
  18. real StepperMass = 0.29 {kg};
  19. real angle_step = 1.8 {deg};
  20. real n_phase = 2 {none};
  21. real fluxLinkage = 15.0e-4 {Wb};
  22. real detentTorque = 0.01 {N.m};
  23. variables
  24. real omega;
  25. real p; // rotor division
  26. initialequations
  27. p = 2 * pi / (2 * n_phase * angle_step);
  28. omega = 200;</GlobalRelations>
  29. </Attributes>
  30. </Information>';
  31. type Mainmodel
  32. end;
  33. implementation bg
  34. submodels
  35. Cycloid 352 216
  36. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  37. <LibraryPath>Signal\Sources\SignalGenerator-Cycloid.emx</LibraryPath>
  38. <TimeStamp>2007-9-27 16:0:53</TimeStamp>
  39. </Description>';
  40. type 'SignalGenerator-Cycloid'
  41. ports
  42. signal out output;
  43. end;
  44. icon bg bottom
  45. figures
  46. rectangle 336 200 368 232 color 0 fill 15132390;
  47. line 338.9 224 365.1 224 color 0;
  48. line 341.1 208 341.1 226.2 color 0;
  49. spline 341 224 345.8 222.1 352.2 212.8 364.3 210.7 color 16711680 fill 15132390;
  50. line 361.8 224 361.8 210.7 color 0 fill 15132390 dotted;
  51. end;
  52. implementation eq
  53. parameters
  54. real amplitude = 25 {none};
  55. real start_time = 0.0 {s};
  56. real stop_time = 2.0 {s};
  57. variables
  58. real hidden tDelta, cycl;
  59. boolean hidden change;
  60. equations
  61. "calculate at least at the start and stop time"
  62. change = timeevent (start_time) or timeevent (stop_time);
  63. "calculate the cycliod signal"
  64. tDelta = 2 * pi * (time - start_time) / (stop_time - start_time);
  65. cycl = amplitude * (tDelta - sin (tDelta)) / twopi;
  66. output = if tDelta < 0.0 then
  67. 0
  68. else
  69. if tDelta >= 0.0 and tDelta <= twopi then
  70. cycl
  71. else
  72. amplitude
  73. end
  74. end;
  75. implementation_end;
  76. I 560 104
  77. description '<Information>
  78. <Description>
  79. <Version>4.2</Version>
  80. <IsMainModel>1</IsMainModel>
  81. <KeepParameterValues>False</KeepParameterValues>
  82. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  83. <TimeStamp>2011-11-29 15:55:55</TimeStamp>
  84. </Description>
  85. </Information>';
  86. type I
  87. ports
  88. power in p;
  89. signal out state;
  90. restrictions
  91. causality preferred in p;
  92. end;
  93. icon bg bottom
  94. figures
  95. text 'I' 560 104 color 0 18 bold;
  96. end;
  97. implementation eq
  98. parameters
  99. real global I_phase;
  100. equations
  101. state = int(p.e);
  102. p.f = state / I_phase;
  103. implementation_end;
  104. I1 608 328
  105. description '<Information>
  106. <Description>
  107. <Version>4.2</Version>
  108. <IsMainModel>1</IsMainModel>
  109. <KeepParameterValues>False</KeepParameterValues>
  110. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  111. <TimeStamp>2011-11-29 15:55:55</TimeStamp>
  112. </Description>
  113. </Information>';
  114. type I
  115. ports
  116. power in p;
  117. signal out state;
  118. restrictions
  119. causality preferred in p;
  120. end;
  121. icon bg bottom
  122. figures
  123. text 'I' 608 328 color 0 18 bold;
  124. end;
  125. implementation eq
  126. parameters
  127. real global I_phase;
  128. equations
  129. state = int(p.e);
  130. p.f = state / I_phase;
  131. implementation_end;
  132. I2 752 160
  133. description '<Information>
  134. <Description>
  135. <Version>4.2</Version>
  136. <IsMainModel>1</IsMainModel>
  137. <KeepParameterValues>False</KeepParameterValues>
  138. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  139. <TimeStamp>2011-11-29 15:55:55</TimeStamp>
  140. </Description>
  141. </Information>';
  142. type I
  143. ports
  144. power in p;
  145. signal out state;
  146. restrictions
  147. causality preferred in p;
  148. end;
  149. icon bg bottom
  150. figures
  151. text 'I' 752 160 color 0 18 bold;
  152. end;
  153. implementation eq
  154. parameters
  155. real i = 8e-5 {kg.m2};
  156. real global RotorInertia;
  157. equations
  158. state = int(p.e);
  159. p.f = state / (i+RotorInertia);
  160. implementation_end;
  161. Integrate 424 216
  162. description '<Information>
  163. <Description>
  164. <Version>4.3</Version>
  165. <IsMainModel>1</IsMainModel>
  166. <KeepParameterValues>False</KeepParameterValues>
  167. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  168. <TimeStamp>2013-3-8 14:47:42</TimeStamp>
  169. </Description>
  170. </Information>';
  171. type Integrate
  172. ports
  173. signal in input;
  174. signal out output;
  175. end;
  176. icon bg bottom
  177. figures
  178. rectangle 408 200 440 232 color 0 fill 15132390;
  179. text '∫' 424 216.3 color 16711680 'Lucida Sans' 21 italic;
  180. end;
  181. implementation eq
  182. parameters
  183. real initial = 0; // initial value
  184. equations
  185. output = int (input, initial);
  186. implementation_end;
  187. MGY_a 656 160
  188. description '<Information>
  189. <Description>
  190. <Version>4.2</Version>
  191. <IsMainModel>1</IsMainModel>
  192. <KeepParameterValues>False</KeepParameterValues>
  193. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  194. <TimeStamp>2011-11-29 16:03:53</TimeStamp>
  195. </Description>
  196. </Information>';
  197. type MGY
  198. ports
  199. power in p1;
  200. power out p2;
  201. signal in r;
  202. restrictions
  203. causality constraint equal p1 p2;
  204. end;
  205. icon bg bottom
  206. figures
  207. text 'MGY' 656 160 color 0 18 bold;
  208. end;
  209. implementation eq
  210. equations
  211. p1.e = r * p2.f;
  212. p2.e = r * p1.f;
  213. implementation_end;
  214. MGY_b 656 272
  215. description '<Information>
  216. <Description>
  217. <Version>4.2</Version>
  218. <IsMainModel>1</IsMainModel>
  219. <KeepParameterValues>False</KeepParameterValues>
  220. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  221. <TimeStamp>2011-11-29 16:03:53</TimeStamp>
  222. </Description>
  223. </Information>';
  224. type MGY
  225. ports
  226. power in p1;
  227. power out p2;
  228. signal in r;
  229. restrictions
  230. causality constraint equal p1 p2;
  231. end;
  232. icon bg bottom
  233. figures
  234. text 'MGY' 656 272 color 0 18 bold;
  235. end;
  236. implementation eq
  237. equations
  238. p1.e = r * p2.f;
  239. p2.e = r * p1.f;
  240. implementation_end;
  241. MSe_a 512 160
  242. description '<Information>
  243. <Description>
  244. <Version>4.2</Version>
  245. <IsMainModel>1</IsMainModel>
  246. <KeepParameterValues>False</KeepParameterValues>
  247. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  248. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  249. </Description>
  250. </Information>';
  251. type MSe
  252. ports
  253. electric out p;
  254. signal in effort;
  255. restrictions
  256. causality fixed out p;
  257. end;
  258. icon bg bottom
  259. figures
  260. text 'MSe' 512 160 color 0 18 bold;
  261. end;
  262. implementation eq
  263. variables
  264. real flow;
  265. equations
  266. p.e = effort;
  267. flow = p.f;
  268. implementation_end;
  269. MSe_b 512 272
  270. description '<Information>
  271. <Description>
  272. <Version>4.2</Version>
  273. <IsMainModel>1</IsMainModel>
  274. <KeepParameterValues>False</KeepParameterValues>
  275. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  276. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  277. </Description>
  278. </Information>';
  279. type MSe
  280. ports
  281. electric out p;
  282. signal in effort;
  283. restrictions
  284. causality fixed out p;
  285. end;
  286. icon bg bottom
  287. figures
  288. text 'MSe' 512 272 color 0 18 bold;
  289. end;
  290. implementation eq
  291. variables
  292. real flow;
  293. equations
  294. p.e = effort;
  295. flow = p.f;
  296. implementation_end;
  297. OneJunction 896 216
  298. description '<Information>
  299. <Description>
  300. <Version>4.2</Version>
  301. <IsMainModel>1</IsMainModel>
  302. <KeepParameterValues>False</KeepParameterValues>
  303. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  304. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  305. </Description>
  306. </Information>';
  307. knot OneJunction
  308. ports
  309. rotation knot duplicatable none p [1];
  310. signal knot out flow [1];
  311. restrictions
  312. causality constraint one_out p;
  313. end;
  314. icon bg
  315. figures
  316. text '1' 896 216 color 0 18 bold;
  317. end;
  318. implementation eq
  319. equations
  320. sum (direct (p.e)) = 0;
  321. equal (collect (p.f));
  322. flow = first (p.f);
  323. implementation_end;
  324. OneJunction1 584 160
  325. description '<Information>
  326. <Description>
  327. <Version>4.2</Version>
  328. <IsMainModel>1</IsMainModel>
  329. <KeepParameterValues>False</KeepParameterValues>
  330. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  331. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  332. </Description>
  333. </Information>';
  334. knot OneJunction
  335. ports
  336. electric knot duplicatable none p [1];
  337. signal knot out flow [1];
  338. restrictions
  339. causality constraint one_out p;
  340. end;
  341. icon bg
  342. figures
  343. text '1' 584 160 color 0 18 bold;
  344. end;
  345. implementation eq
  346. equations
  347. sum (direct (p.e)) = 0;
  348. equal (collect (p.f));
  349. flow = first (p.f);
  350. implementation_end;
  351. OneJunction2 584 272
  352. description '<Information>
  353. <Description>
  354. <Version>4.2</Version>
  355. <IsMainModel>1</IsMainModel>
  356. <KeepParameterValues>False</KeepParameterValues>
  357. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  358. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  359. </Description>
  360. </Information>';
  361. knot OneJunction
  362. ports
  363. electric knot duplicatable none p [1];
  364. signal knot out flow [1];
  365. restrictions
  366. causality constraint one_out p;
  367. end;
  368. icon bg
  369. figures
  370. text '1' 584 272 color 0 18 bold;
  371. end;
  372. implementation eq
  373. equations
  374. sum (direct (p.e)) = 0;
  375. equal (collect (p.f));
  376. flow = first (p.f);
  377. implementation_end;
  378. OneJunction3 752 216
  379. description '<Information>
  380. <Description>
  381. <Version>4.2</Version>
  382. <IsMainModel>1</IsMainModel>
  383. <KeepParameterValues>False</KeepParameterValues>
  384. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  385. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  386. </Description>
  387. </Information>';
  388. knot OneJunction
  389. ports
  390. rotation knot duplicatable none p [1];
  391. signal knot out flow [1];
  392. restrictions
  393. causality constraint one_out p;
  394. end;
  395. icon bg
  396. figures
  397. text '1' 752 216 color 0 18 bold;
  398. end;
  399. implementation eq
  400. equations
  401. sum (direct (p.e)) = 0;
  402. equal (collect (p.f));
  403. flow = first (p.f);
  404. implementation_end;
  405. PlusMinus1 448 160
  406. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  407. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  408. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  409. </Description>';
  410. knot PlusMinus
  411. ports
  412. signal knot duplicatable in plus [1];
  413. signal knot duplicatable in minus [1];
  414. signal knot out output [1];
  415. end;
  416. icon bg ellipse
  417. figures
  418. ellipse 440 152 456 168 color 0 fill 16777215;
  419. end;
  420. implementation eq
  421. equations
  422. output = sum (collect (plus)) - sum (collect (minus));
  423. implementation_end;
  424. PlusMinus2 448 272
  425. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  426. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  427. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  428. </Description>';
  429. knot PlusMinus
  430. ports
  431. signal knot duplicatable in plus [1];
  432. signal knot duplicatable in minus [1];
  433. signal knot out output [1];
  434. end;
  435. icon bg ellipse
  436. figures
  437. ellipse 440 264 456 280 color 0 fill 16777215;
  438. end;
  439. implementation eq
  440. equations
  441. output = sum (collect (plus)) - sum (collect (minus));
  442. implementation_end;
  443. R 608 104
  444. description '<Information>
  445. <Description>
  446. <Version>4.2</Version>
  447. <IsMainModel>1</IsMainModel>
  448. <KeepParameterValues>False</KeepParameterValues>
  449. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  450. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  451. </Description>
  452. </Information>';
  453. type R
  454. ports
  455. power in p;
  456. end;
  457. icon bg bottom
  458. figures
  459. text 'R' 608 104 color 0 18 bold;
  460. end;
  461. implementation eq
  462. parameters
  463. real global R_phase;
  464. equations
  465. p.e = R_phase * p.f;
  466. implementation_end;
  467. R1 560 328
  468. description '<Information>
  469. <Description>
  470. <Version>4.2</Version>
  471. <IsMainModel>1</IsMainModel>
  472. <KeepParameterValues>False</KeepParameterValues>
  473. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  474. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  475. </Description>
  476. </Information>';
  477. type R
  478. ports
  479. power in p;
  480. end;
  481. icon bg bottom
  482. figures
  483. text 'R' 560 328 color 0 18 bold;
  484. end;
  485. implementation eq
  486. parameters
  487. real global R_phase;
  488. equations
  489. p.e = R_phase * p.f;
  490. implementation_end;
  491. RotorAngle 656 216
  492. description '<Description><Version>4.0</Version>
  493. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  494. <IsMainModel>1</IsMainModel>
  495. <KeepParameterValues>False</KeepParameterValues>
  496. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  497. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  498. </Description>';
  499. type Submodel
  500. ports
  501. signal out output_b;
  502. signal out output_a;
  503. signal in omega {rad/s} ;
  504. signal out output_d;
  505. end;
  506. icon bg
  507. figures
  508. rectangle 616 200 696 232 color 0 fill 15132390;
  509. text 'name' 656 216 color 0 'Clear Sans' 16;
  510. end;
  511. implementation eq
  512. parameters
  513. real global fluxLinkage;
  514. real global detentTorque;
  515. variables
  516. real global p;
  517. real angle {rad};
  518. equations
  519. angle = int(omega);
  520. output_a = -p * fluxLinkage * sin(p * angle);
  521. output_b = p * fluxLinkage * sin(p * angle - pi / 2);
  522. output_d = detentTorque * sin(2 * p * angle);
  523. implementation_end;
  524. Se 752 272
  525. description '<Information>
  526. <Description>
  527. <Version>4.2</Version>
  528. <IsMainModel>1</IsMainModel>
  529. <KeepParameterValues>False</KeepParameterValues>
  530. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  531. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  532. </Description>
  533. </Information>';
  534. type MSe
  535. ports
  536. power out p;
  537. signal in effort;
  538. restrictions
  539. causality fixed out p;
  540. end;
  541. icon bg bottom
  542. figures
  543. text 'MSe' 752 272 color 0 18 bold;
  544. end;
  545. implementation eq
  546. variables
  547. real flow;
  548. equations
  549. p.e = effort;
  550. flow = p.f;
  551. implementation_end;
  552. Splitter1 720 216
  553. description '<Description><Version>4.0</Version>
  554. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  555. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  556. <IsMainModel>1</IsMainModel>
  557. <KeepParameterValues>False</KeepParameterValues>
  558. </Description>';
  559. knot Splitter
  560. ports
  561. signal knot duplicatable out output [1];
  562. signal knot in input [1];
  563. end;
  564. icon bg ellipse
  565. figures
  566. ellipse 716.8 212.8 723.2 219.2 color -1 fill 0;
  567. ellipse 715.7 211.7 724.3 220.3 color -1;
  568. terminals
  569. input 720 216 fixed;
  570. end;
  571. implementation eq
  572. equations
  573. collect (output) = input;
  574. implementation_end;
  575. Square 448 96
  576. description '<Description>
  577. <Version>4.0</Version>
  578. <IsMainModel>1</IsMainModel>
  579. <KeepParameterValues>False</KeepParameterValues>
  580. <LibraryPath>Signal\Sources\WaveGenerator-Square.emx</LibraryPath>
  581. <TimeStamp>2009-3-5 16:05:33</TimeStamp>
  582. </Description>';
  583. type WaveGenerator
  584. ports
  585. signal out output;
  586. end;
  587. icon bg bottom
  588. figures
  589. rectangle 432.1 80 463.9 112 color 0 fill 15132390;
  590. line 436.1 83.9 435.9 110.2 color 0 fill 0;
  591. line 433.9 108.1 459.9 108.1 color 0 fill 0;
  592. line 436.1 108.1 440 108.1 440 96 color 16711680 fill 0;
  593. line 448 96 440 96 448 96 color 16711680 fill 0;
  594. line 448 108.1 448 96 448 108.1 color 16711680 fill 0;
  595. line 456 96 456 108.1 456 96 color 16711680 fill 0;
  596. line 459.9 96.1 455.7 96.1 color 16711680 fill 0;
  597. line 448 108.1 456 108.1 color 16711680 fill 0;
  598. end;
  599. implementation eq
  600. parameters
  601. real amplitude = 3.4; // amplitude of the wave
  602. variables
  603. real global omega; // angular frequency of the wave
  604. real hidden s, half;
  605. boolean hidden change;
  606. equations
  607. "calculate at least 2 points per period
  608. (just after the change in sign)"
  609. half = pi / omega;
  610. change = frequencyevent (half, 1e-14);
  611. "calculate the square wave"
  612. s = sign (sin (omega * time));
  613. output = if( s == 0 ) then
  614. amplitude
  615. else
  616. (amplitude / 2) * (s + 1)
  617. end;
  618. implementation_end;
  619. Square1 384 272
  620. description '<Description>
  621. <Version>4.0</Version>
  622. <IsMainModel>1</IsMainModel>
  623. <KeepParameterValues>False</KeepParameterValues>
  624. <LibraryPath>Signal\Sources\WaveGenerator-Square.emx</LibraryPath>
  625. <TimeStamp>2009-3-5 16:05:33</TimeStamp>
  626. </Description>';
  627. type WaveGenerator
  628. ports
  629. signal out output;
  630. end;
  631. icon bg bottom
  632. figures
  633. rectangle 368.1 256 399.9 288 color 0 fill 15132390;
  634. line 372.1 259.9 371.9 286.2 color 0 fill 0;
  635. line 369.9 284.1 395.9 284.1 color 0 fill 0;
  636. line 372.1 284.1 376 284.1 376 272 color 16711680 fill 0;
  637. line 384 272 376 272 384 272 color 16711680 fill 0;
  638. line 384 284.1 384 272 384 284.1 color 16711680 fill 0;
  639. line 392 272 392 284.1 392 272 color 16711680 fill 0;
  640. line 395.9 272.1 391.7 272.1 color 16711680 fill 0;
  641. line 384 284.1 392 284.1 color 16711680 fill 0;
  642. end;
  643. implementation eq
  644. parameters
  645. real amplitude = -3.4; // amplitude of the wave
  646. variables
  647. real global omega; // angular frequency of the wave
  648. real hidden s, half;
  649. boolean hidden change;
  650. equations
  651. "calculate at least 2 points per period
  652. (just after the change in sign)"
  653. half = pi / omega;
  654. change = frequencyevent (half, 1e-14);
  655. "calculate the square wave"
  656. s = sign (sin (omega * time + pi/2));
  657. output = if( s == 0 ) then
  658. amplitude
  659. else
  660. (amplitude / 2) * (s + 1)
  661. end;
  662. implementation_end;
  663. Square2 384 160
  664. description '<Description>
  665. <Version>4.0</Version>
  666. <IsMainModel>1</IsMainModel>
  667. <KeepParameterValues>False</KeepParameterValues>
  668. <LibraryPath>Signal\Sources\WaveGenerator-Square.emx</LibraryPath>
  669. <TimeStamp>2009-3-5 16:05:33</TimeStamp>
  670. </Description>';
  671. type WaveGenerator
  672. ports
  673. signal out output;
  674. end;
  675. icon bg bottom
  676. figures
  677. rectangle 368.1 144 399.9 176 color 0 fill 15132390;
  678. line 372.1 147.9 371.9 174.2 color 0 fill 0;
  679. line 369.9 172.1 395.9 172.1 color 0 fill 0;
  680. line 372.1 172.1 376 172.1 376 160 color 16711680 fill 0;
  681. line 384 160 376 160 384 160 color 16711680 fill 0;
  682. line 384 172.1 384 160 384 172.1 color 16711680 fill 0;
  683. line 392 160 392 172.1 392 160 color 16711680 fill 0;
  684. line 395.9 160.1 391.7 160.1 color 16711680 fill 0;
  685. line 384 172.1 392 172.1 color 16711680 fill 0;
  686. end;
  687. implementation eq
  688. parameters
  689. real amplitude = -3.4; // amplitude of the wave
  690. variables
  691. real global omega; // angular frequency of the wave
  692. real hidden s, half;
  693. boolean hidden change;
  694. equations
  695. "calculate at least 2 points per period
  696. (just after the change in sign)"
  697. half = pi / omega;
  698. change = frequencyevent (half, 1e-14);
  699. "calculate the square wave"
  700. s = sign (sin (omega * time + pi));
  701. output = if( s == 0 ) then
  702. amplitude
  703. else
  704. (amplitude / 2) * (s + 1)
  705. end;
  706. implementation_end;
  707. Square3 448 336
  708. description '<Description>
  709. <Version>4.0</Version>
  710. <IsMainModel>1</IsMainModel>
  711. <KeepParameterValues>False</KeepParameterValues>
  712. <LibraryPath>Signal\Sources\WaveGenerator-Square.emx</LibraryPath>
  713. <TimeStamp>2009-3-5 16:05:33</TimeStamp>
  714. </Description>';
  715. type WaveGenerator
  716. ports
  717. signal out output;
  718. end;
  719. icon bg bottom
  720. figures
  721. rectangle 432.1 320 463.9 352 color 0 fill 15132390;
  722. line 436.1 323.9 435.9 350.2 color 0 fill 0;
  723. line 433.9 348.1 459.9 348.1 color 0 fill 0;
  724. line 436.1 348.1 440 348.1 440 336 color 16711680 fill 0;
  725. line 448 336 440 336 448 336 color 16711680 fill 0;
  726. line 448 348.1 448 336 448 348.1 color 16711680 fill 0;
  727. line 456 336 456 348.1 456 336 color 16711680 fill 0;
  728. line 459.9 336.1 455.7 336.1 color 16711680 fill 0;
  729. line 448 348.1 456 348.1 color 16711680 fill 0;
  730. end;
  731. implementation eq
  732. parameters
  733. real amplitude = 3.4; // amplitude of the wave
  734. variables
  735. real global omega; // angular frequency of the wave
  736. real hidden s, half;
  737. boolean hidden change;
  738. equations
  739. "calculate at least 2 points per period
  740. (just after the change in sign)"
  741. half = pi / omega;
  742. change = frequencyevent (half, 1e-14);
  743. "calculate the square wave"
  744. s = sign (sin (omega * time - pi/2));
  745. output = if( s == 0 ) then
  746. amplitude
  747. else
  748. (amplitude / 2) * (s + 1)
  749. end;
  750. implementation_end;
  751. Submodel2 512 216
  752. description '<Description><Version>4.0</Version>
  753. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  754. <IsMainModel>1</IsMainModel>
  755. <KeepParameterValues>False</KeepParameterValues>
  756. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  757. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  758. </Description>';
  759. type 'Submodel-Equation'
  760. ports
  761. signal in angle;
  762. signal out a;
  763. signal out b;
  764. end;
  765. implementation eq
  766. parameters
  767. real global u_max {V};
  768. real global angle_step;
  769. real max_a {m/s2};
  770. variables
  771. real current_angle;
  772. real c,s;
  773. real global p;
  774. boolean hidden eventa, eventb;
  775. equations
  776. a = -sign (cos (p*angle));
  777. eventa = event(a);
  778. b = sign (sin (p*angle));
  779. eventb = event(b);
  780. implementation_end;
  781. end;
  782. connections
  783. Cycloid\output -> Integrate\input;
  784. I2\p <= OneJunction3\p;
  785. Integrate\output -> Submodel2\angle;
  786. MGY_a\p2 => OneJunction3\p;
  787. MGY_b\p2 => OneJunction3\p;
  788. MSe_a\p => OneJunction1\p;
  789. MSe_b\p => OneJunction2\p;
  790. OneJunction1\p => I\p;
  791. OneJunction1\p => MGY_a\p1;
  792. OneJunction1\p => R\p;
  793. OneJunction2\p => I1\p;
  794. OneJunction2\p => MGY_b\p1;
  795. OneJunction2\p => R1\p;
  796. OneJunction3\flow -> Splitter1\input;
  797. OneJunction3\p => OneJunction\p;
  798. RotorAngle\output_a -> MGY_a\r;
  799. RotorAngle\output_b -> MGY_b\r;
  800. RotorAngle\output_d -> Se\effort;
  801. Se\p => OneJunction3\p;
  802. Splitter1\output -> RotorAngle\omega;
  803. Square\output -> PlusMinus1\plus;
  804. Square1\output -> PlusMinus2\plus;
  805. Square2\output -> PlusMinus1\plus;
  806. Square3\output -> PlusMinus2\plus;
  807. Submodel2\a -> MSe_a\effort;
  808. Submodel2\b -> MSe_b\effort;
  809. end;
  810. implementation_end;
  811. ]]>
  812. </Sidops>
  813. </Model>
  814. <Experiments>
  815. <DefaultExperiment><![CDATA[Experiment 1]]>
  816. </DefaultExperiment>
  817. <Experiment>
  818. <Name>Experiment 1</Name>
  819. <CreatedBy></CreatedBy>
  820. <Info></Info>
  821. <ExpData>
  822. <VersionNumber>4.8</VersionNumber>
  823. <ModelProperties>
  824. </ModelProperties>
  825. <Variables>
  826. <Constants>
  827. </Constants>
  828. <Parameters>
  829. <Variable>
  830. <Name>Submodel2\max_a</Name>
  831. <Unit>m/s2</Unit>
  832. <Value>0</Value>
  833. </Variable>
  834. <Variable>
  835. <Name>u_max</Name>
  836. <Unit>V</Unit>
  837. <Value>0</Value>
  838. </Variable>
  839. </Parameters>
  840. <Initials>
  841. <Variable>
  842. <Name>I1\state_initial</Name>
  843. <Value>0</Value>
  844. </Variable>
  845. <Variable>
  846. <Name>I2\state_initial</Name>
  847. <Value>0</Value>
  848. </Variable>
  849. <Variable>
  850. <Name>I\state_initial</Name>
  851. <Value>0</Value>
  852. </Variable>
  853. <Variable>
  854. <Name>RotorAngle\angle_initial</Name>
  855. <Unit>rad</Unit>
  856. <Value>0</Value>
  857. </Variable>
  858. </Initials>
  859. </Variables>
  860. <PlotSpecs>
  861. <VarNames>
  862. <VarName>time</VarName>
  863. <VarName>I2\p.e</VarName>
  864. <VarName>I2\p.f</VarName>
  865. <VarName>RotorAngle\angle</VarName>
  866. <VarName>omega</VarName>
  867. <VarName>Submodel2\c</VarName>
  868. <VarName>MSe_a\effort</VarName>
  869. <VarName>MSe_b\effort</VarName>
  870. <VarName>Submodel2\s</VarName>
  871. </VarNames>
  872. <Plots>
  873. <Plot>
  874. <PlotType>GraphPlot</PlotType>
  875. <BasePlot>
  876. <PlotId>1</PlotId>
  877. <UseWindowsBGColor>false</UseWindowsBGColor>
  878. <BGColor>16777215</BGColor>
  879. <PlotIsVisible>true</PlotIsVisible>
  880. </BasePlot>
  881. <Grid>
  882. <DrawGrid>true</DrawGrid>
  883. <GridColor>15780518</GridColor>
  884. <GridBorderLineColor>12624260</GridBorderLineColor>
  885. <GridZeroLineColor>0</GridZeroLineColor>
  886. <XTicks>10</XTicks>
  887. <YTicks>10</YTicks>
  888. <ZTicks>10</ZTicks>
  889. <Use3DLook>false</Use3DLook>
  890. </Grid>
  891. <PlotBGColor>16777215</PlotBGColor>
  892. <ShowPlotTitle>true</ShowPlotTitle>
  893. <TitlePosition>1</TitlePosition>
  894. <PlotTitle>model</PlotTitle>
  895. <ShowXValues>true</ShowXValues>
  896. <Fonts>
  897. <TitleFont>
  898. <Name>Arial</Name>
  899. <Height>12</Height>
  900. <PitchFamily>34</PitchFamily>
  901. <Weight>400</Weight>
  902. <Italic>0</Italic>
  903. <UnderLine>0</UnderLine>
  904. <StrikeOut>0</StrikeOut>
  905. <Color>0</Color>
  906. </TitleFont>
  907. <LabelFont>
  908. <Name>Arial</Name>
  909. <Height>12</Height>
  910. <PitchFamily>34</PitchFamily>
  911. <Weight>400</Weight>
  912. <Italic>0</Italic>
  913. <UnderLine>0</UnderLine>
  914. <StrikeOut>0</StrikeOut>
  915. <Color>0</Color>
  916. </LabelFont>
  917. <ValuesFont>
  918. <Name>Arial</Name>
  919. <Height>10</Height>
  920. <PitchFamily>34</PitchFamily>
  921. <Weight>400</Weight>
  922. <Italic>0</Italic>
  923. <UnderLine>0</UnderLine>
  924. <StrikeOut>0</StrikeOut>
  925. <Color>0</Color>
  926. </ValuesFont>
  927. <LegendFont>
  928. <Name>Arial</Name>
  929. <Height>12</Height>
  930. <PitchFamily>34</PitchFamily>
  931. <Weight>400</Weight>
  932. <Italic>0</Italic>
  933. <UnderLine>0</UnderLine>
  934. <StrikeOut>0</StrikeOut>
  935. <Color>0</Color>
  936. </LegendFont>
  937. </Fonts>
  938. <SharedXAxis>true</SharedXAxis>
  939. <SharedYAxis>true</SharedYAxis>
  940. <SharedZAxis>false</SharedZAxis>
  941. <XAxes>
  942. <Axis>
  943. <Minimum>0.0</Minimum>
  944. <Maximum>5.207213548315313</Maximum>
  945. <Linear>true</Linear>
  946. <Scaling>3</Scaling>
  947. <Label>time</Label>
  948. </Axis>
  949. </XAxes>
  950. <YAxes>
  951. <Axis>
  952. <Minimum>-10.0</Minimum>
  953. <Maximum>10.0</Maximum>
  954. <Linear>true</Linear>
  955. <Scaling>2</Scaling>
  956. <Label>I2\p.e</Label>
  957. </Axis>
  958. <Axis>
  959. <Minimum>-0.05</Minimum>
  960. <Maximum>0.05</Maximum>
  961. <Linear>true</Linear>
  962. <Scaling>2</Scaling>
  963. <Label>I2\p.f</Label>
  964. </Axis>
  965. </YAxes>
  966. <ZAxes>
  967. </ZAxes>
  968. <Curves>
  969. <Curve>
  970. <LineColor>3355111</LineColor>
  971. <LineStyle>1</LineStyle>
  972. <TickColor>3355111</TickColor>
  973. <TickStyle>0</TickStyle>
  974. <CurveVisible>true</CurveVisible>
  975. <PixelThresshold>1</PixelThresshold>
  976. <LineThickness>1</LineThickness>
  977. <LineOrder>1</LineOrder>
  978. <ShowYValues>true</ShowYValues>
  979. <XCurveData>
  980. <ShowUnit>true</ShowUnit>
  981. <VarName>time</VarName>
  982. </XCurveData>
  983. <YCurveData>
  984. <ShowUnit>true</ShowUnit>
  985. <VarName>I2\p.e</VarName>
  986. </YCurveData>
  987. </Curve>
  988. <Curve>
  989. <LineColor>6076255</LineColor>
  990. <LineStyle>1</LineStyle>
  991. <TickColor>6076255</TickColor>
  992. <TickStyle>0</TickStyle>
  993. <CurveVisible>true</CurveVisible>
  994. <PixelThresshold>1</PixelThresshold>
  995. <LineThickness>1</LineThickness>
  996. <LineOrder>1</LineOrder>
  997. <ShowYValues>true</ShowYValues>
  998. <XCurveData>
  999. <ShowUnit>true</ShowUnit>
  1000. <VarName>time</VarName>
  1001. </XCurveData>
  1002. <YCurveData>
  1003. <ShowUnit>true</ShowUnit>
  1004. <VarName>I2\p.f</VarName>
  1005. </YCurveData>
  1006. </Curve>
  1007. </Curves>
  1008. <Legenda>
  1009. <ShowLegenda>true</ShowLegenda>
  1010. <BorderPenColor>0</BorderPenColor>
  1011. <BackgroundColor>16777215</BackgroundColor>
  1012. </Legenda>
  1013. </Plot>
  1014. <Plot>
  1015. <PlotType>GraphPlot</PlotType>
  1016. <BasePlot>
  1017. <PlotId>2</PlotId>
  1018. <UseWindowsBGColor>false</UseWindowsBGColor>
  1019. <BGColor>16777215</BGColor>
  1020. <PlotIsVisible>true</PlotIsVisible>
  1021. </BasePlot>
  1022. <Grid>
  1023. <DrawGrid>true</DrawGrid>
  1024. <GridColor>15780518</GridColor>
  1025. <GridBorderLineColor>12624260</GridBorderLineColor>
  1026. <GridZeroLineColor>0</GridZeroLineColor>
  1027. <XTicks>10</XTicks>
  1028. <YTicks>10</YTicks>
  1029. <ZTicks>10</ZTicks>
  1030. <Use3DLook>false</Use3DLook>
  1031. </Grid>
  1032. <PlotBGColor>16777215</PlotBGColor>
  1033. <ShowPlotTitle>true</ShowPlotTitle>
  1034. <TitlePosition>1</TitlePosition>
  1035. <PlotTitle>model(2)</PlotTitle>
  1036. <ShowXValues>true</ShowXValues>
  1037. <Fonts>
  1038. <TitleFont>
  1039. <Name>Arial</Name>
  1040. <Height>12</Height>
  1041. <PitchFamily>34</PitchFamily>
  1042. <Weight>400</Weight>
  1043. <Italic>0</Italic>
  1044. <UnderLine>0</UnderLine>
  1045. <StrikeOut>0</StrikeOut>
  1046. <Color>0</Color>
  1047. </TitleFont>
  1048. <LabelFont>
  1049. <Name>Arial</Name>
  1050. <Height>12</Height>
  1051. <PitchFamily>34</PitchFamily>
  1052. <Weight>400</Weight>
  1053. <Italic>0</Italic>
  1054. <UnderLine>0</UnderLine>
  1055. <StrikeOut>0</StrikeOut>
  1056. <Color>0</Color>
  1057. </LabelFont>
  1058. <ValuesFont>
  1059. <Name>Arial</Name>
  1060. <Height>10</Height>
  1061. <PitchFamily>34</PitchFamily>
  1062. <Weight>400</Weight>
  1063. <Italic>0</Italic>
  1064. <UnderLine>0</UnderLine>
  1065. <StrikeOut>0</StrikeOut>
  1066. <Color>0</Color>
  1067. </ValuesFont>
  1068. <LegendFont>
  1069. <Name>Arial</Name>
  1070. <Height>12</Height>
  1071. <PitchFamily>34</PitchFamily>
  1072. <Weight>400</Weight>
  1073. <Italic>0</Italic>
  1074. <UnderLine>0</UnderLine>
  1075. <StrikeOut>0</StrikeOut>
  1076. <Color>0</Color>
  1077. </LegendFont>
  1078. </Fonts>
  1079. <SharedXAxis>true</SharedXAxis>
  1080. <SharedYAxis>true</SharedYAxis>
  1081. <SharedZAxis>false</SharedZAxis>
  1082. <XAxes>
  1083. <Axis>
  1084. <Minimum>0.0</Minimum>
  1085. <Maximum>5.207213548315313</Maximum>
  1086. <Linear>true</Linear>
  1087. <Scaling>3</Scaling>
  1088. <Label>time</Label>
  1089. </Axis>
  1090. </XAxes>
  1091. <YAxes>
  1092. <Axis>
  1093. <Minimum>-0.19999999999999993</Minimum>
  1094. <Maximum>0.8</Maximum>
  1095. <Linear>true</Linear>
  1096. <Scaling>2</Scaling>
  1097. <Label>angle</Label>
  1098. </Axis>
  1099. </YAxes>
  1100. <ZAxes>
  1101. </ZAxes>
  1102. <Curves>
  1103. <Curve>
  1104. <LineColor>3355111</LineColor>
  1105. <LineStyle>1</LineStyle>
  1106. <TickColor>3355111</TickColor>
  1107. <TickStyle>0</TickStyle>
  1108. <CurveVisible>true</CurveVisible>
  1109. <PixelThresshold>1</PixelThresshold>
  1110. <LineThickness>1</LineThickness>
  1111. <LineOrder>1</LineOrder>
  1112. <ShowYValues>true</ShowYValues>
  1113. <XCurveData>
  1114. <ShowUnit>true</ShowUnit>
  1115. <VarName>time</VarName>
  1116. </XCurveData>
  1117. <YCurveData>
  1118. <ShowUnit>true</ShowUnit>
  1119. <VarName>RotorAngle\angle</VarName>
  1120. </YCurveData>
  1121. </Curve>
  1122. </Curves>
  1123. <Legenda>
  1124. <ShowLegenda>true</ShowLegenda>
  1125. <BorderPenColor>0</BorderPenColor>
  1126. <BackgroundColor>16777215</BackgroundColor>
  1127. </Legenda>
  1128. </Plot>
  1129. <Plot>
  1130. <PlotType>GraphPlot</PlotType>
  1131. <BasePlot>
  1132. <PlotId>3</PlotId>
  1133. <UseWindowsBGColor>false</UseWindowsBGColor>
  1134. <BGColor>16777215</BGColor>
  1135. <PlotIsVisible>true</PlotIsVisible>
  1136. </BasePlot>
  1137. <Grid>
  1138. <DrawGrid>true</DrawGrid>
  1139. <GridColor>15780518</GridColor>
  1140. <GridBorderLineColor>12624260</GridBorderLineColor>
  1141. <GridZeroLineColor>0</GridZeroLineColor>
  1142. <XTicks>10</XTicks>
  1143. <YTicks>10</YTicks>
  1144. <ZTicks>10</ZTicks>
  1145. <Use3DLook>false</Use3DLook>
  1146. </Grid>
  1147. <PlotBGColor>16777215</PlotBGColor>
  1148. <ShowPlotTitle>true</ShowPlotTitle>
  1149. <TitlePosition>1</TitlePosition>
  1150. <PlotTitle>model(1)</PlotTitle>
  1151. <ShowXValues>true</ShowXValues>
  1152. <Fonts>
  1153. <TitleFont>
  1154. <Name>Arial</Name>
  1155. <Height>12</Height>
  1156. <PitchFamily>34</PitchFamily>
  1157. <Weight>400</Weight>
  1158. <Italic>0</Italic>
  1159. <UnderLine>0</UnderLine>
  1160. <StrikeOut>0</StrikeOut>
  1161. <Color>0</Color>
  1162. </TitleFont>
  1163. <LabelFont>
  1164. <Name>Arial</Name>
  1165. <Height>12</Height>
  1166. <PitchFamily>34</PitchFamily>
  1167. <Weight>400</Weight>
  1168. <Italic>0</Italic>
  1169. <UnderLine>0</UnderLine>
  1170. <StrikeOut>0</StrikeOut>
  1171. <Color>0</Color>
  1172. </LabelFont>
  1173. <ValuesFont>
  1174. <Name>Arial</Name>
  1175. <Height>10</Height>
  1176. <PitchFamily>34</PitchFamily>
  1177. <Weight>400</Weight>
  1178. <Italic>0</Italic>
  1179. <UnderLine>0</UnderLine>
  1180. <StrikeOut>0</StrikeOut>
  1181. <Color>0</Color>
  1182. </ValuesFont>
  1183. <LegendFont>
  1184. <Name>Arial</Name>
  1185. <Height>12</Height>
  1186. <PitchFamily>34</PitchFamily>
  1187. <Weight>400</Weight>
  1188. <Italic>0</Italic>
  1189. <UnderLine>0</UnderLine>
  1190. <StrikeOut>0</StrikeOut>
  1191. <Color>0</Color>
  1192. </LegendFont>
  1193. </Fonts>
  1194. <SharedXAxis>true</SharedXAxis>
  1195. <SharedYAxis>true</SharedYAxis>
  1196. <SharedZAxis>false</SharedZAxis>
  1197. <XAxes>
  1198. <Axis>
  1199. <Minimum>0.0</Minimum>
  1200. <Maximum>5.207213548315313</Maximum>
  1201. <Linear>true</Linear>
  1202. <Scaling>3</Scaling>
  1203. <Label>time</Label>
  1204. </Axis>
  1205. </XAxes>
  1206. <YAxes>
  1207. <Axis>
  1208. <Minimum>-50.0</Minimum>
  1209. <Maximum>450.0</Maximum>
  1210. <Linear>true</Linear>
  1211. <Scaling>1</Scaling>
  1212. <Label>omega</Label>
  1213. </Axis>
  1214. </YAxes>
  1215. <ZAxes>
  1216. </ZAxes>
  1217. <Curves>
  1218. <Curve>
  1219. <LineColor>3355111</LineColor>
  1220. <LineStyle>1</LineStyle>
  1221. <TickColor>3355111</TickColor>
  1222. <TickStyle>0</TickStyle>
  1223. <CurveVisible>true</CurveVisible>
  1224. <PixelThresshold>1</PixelThresshold>
  1225. <LineThickness>1</LineThickness>
  1226. <LineOrder>1</LineOrder>
  1227. <ShowYValues>true</ShowYValues>
  1228. <XCurveData>
  1229. <ShowUnit>true</ShowUnit>
  1230. <VarName>time</VarName>
  1231. </XCurveData>
  1232. <YCurveData>
  1233. <ShowUnit>true</ShowUnit>
  1234. <VarName>omega</VarName>
  1235. </YCurveData>
  1236. </Curve>
  1237. </Curves>
  1238. <Legenda>
  1239. <ShowLegenda>true</ShowLegenda>
  1240. <BorderPenColor>0</BorderPenColor>
  1241. <BackgroundColor>16777215</BackgroundColor>
  1242. </Legenda>
  1243. </Plot>
  1244. <Plot>
  1245. <PlotType>GraphPlot</PlotType>
  1246. <BasePlot>
  1247. <PlotId>4</PlotId>
  1248. <UseWindowsBGColor>false</UseWindowsBGColor>
  1249. <BGColor>16777215</BGColor>
  1250. <PlotIsVisible>true</PlotIsVisible>
  1251. </BasePlot>
  1252. <Grid>
  1253. <DrawGrid>true</DrawGrid>
  1254. <GridColor>15780518</GridColor>
  1255. <GridBorderLineColor>12624260</GridBorderLineColor>
  1256. <GridZeroLineColor>0</GridZeroLineColor>
  1257. <XTicks>10</XTicks>
  1258. <YTicks>10</YTicks>
  1259. <ZTicks>10</ZTicks>
  1260. <Use3DLook>false</Use3DLook>
  1261. </Grid>
  1262. <PlotBGColor>16777215</PlotBGColor>
  1263. <ShowPlotTitle>true</ShowPlotTitle>
  1264. <TitlePosition>1</TitlePosition>
  1265. <PlotTitle>Plot</PlotTitle>
  1266. <ShowXValues>true</ShowXValues>
  1267. <Fonts>
  1268. <TitleFont>
  1269. <Name>Arial</Name>
  1270. <Height>12</Height>
  1271. <PitchFamily>34</PitchFamily>
  1272. <Weight>400</Weight>
  1273. <Italic>0</Italic>
  1274. <UnderLine>0</UnderLine>
  1275. <StrikeOut>0</StrikeOut>
  1276. <Color>0</Color>
  1277. </TitleFont>
  1278. <LabelFont>
  1279. <Name>Arial</Name>
  1280. <Height>12</Height>
  1281. <PitchFamily>34</PitchFamily>
  1282. <Weight>400</Weight>
  1283. <Italic>0</Italic>
  1284. <UnderLine>0</UnderLine>
  1285. <StrikeOut>0</StrikeOut>
  1286. <Color>0</Color>
  1287. </LabelFont>
  1288. <ValuesFont>
  1289. <Name>Arial</Name>
  1290. <Height>10</Height>
  1291. <PitchFamily>34</PitchFamily>
  1292. <Weight>400</Weight>
  1293. <Italic>0</Italic>
  1294. <UnderLine>0</UnderLine>
  1295. <StrikeOut>0</StrikeOut>
  1296. <Color>0</Color>
  1297. </ValuesFont>
  1298. <LegendFont>
  1299. <Name>Arial</Name>
  1300. <Height>12</Height>
  1301. <PitchFamily>34</PitchFamily>
  1302. <Weight>400</Weight>
  1303. <Italic>0</Italic>
  1304. <UnderLine>0</UnderLine>
  1305. <StrikeOut>0</StrikeOut>
  1306. <Color>0</Color>
  1307. </LegendFont>
  1308. </Fonts>
  1309. <SharedXAxis>true</SharedXAxis>
  1310. <SharedYAxis>true</SharedYAxis>
  1311. <SharedZAxis>false</SharedZAxis>
  1312. <XAxes>
  1313. <Axis>
  1314. <Minimum>0.0</Minimum>
  1315. <Maximum>5.207213548315313</Maximum>
  1316. <Linear>true</Linear>
  1317. <Scaling>3</Scaling>
  1318. <Label>time</Label>
  1319. </Axis>
  1320. </XAxes>
  1321. <YAxes>
  1322. <Axis>
  1323. <Minimum>-2.5</Minimum>
  1324. <Maximum>2.5</Maximum>
  1325. <Linear>true</Linear>
  1326. <Scaling>2</Scaling>
  1327. <Label>c</Label>
  1328. </Axis>
  1329. <Axis>
  1330. <Minimum>0.0</Minimum>
  1331. <Maximum>10.0</Maximum>
  1332. <Linear>true</Linear>
  1333. <Scaling>2</Scaling>
  1334. <Label>effort a</Label>
  1335. </Axis>
  1336. <Axis>
  1337. <Minimum>0.0</Minimum>
  1338. <Maximum>10.0</Maximum>
  1339. <Linear>true</Linear>
  1340. <Scaling>2</Scaling>
  1341. <Label>effort b</Label>
  1342. </Axis>
  1343. <Axis>
  1344. <Minimum>0.0</Minimum>
  1345. <Maximum>10.0</Maximum>
  1346. <Linear>true</Linear>
  1347. <Scaling>2</Scaling>
  1348. <Label>s</Label>
  1349. </Axis>
  1350. </YAxes>
  1351. <ZAxes>
  1352. </ZAxes>
  1353. <Curves>
  1354. <Curve>
  1355. <LineColor>3355111</LineColor>
  1356. <LineStyle>1</LineStyle>
  1357. <TickColor>3355111</TickColor>
  1358. <TickStyle>0</TickStyle>
  1359. <CurveVisible>true</CurveVisible>
  1360. <PixelThresshold>1</PixelThresshold>
  1361. <LineThickness>1</LineThickness>
  1362. <LineOrder>1</LineOrder>
  1363. <ShowYValues>true</ShowYValues>
  1364. <XCurveData>
  1365. <ShowUnit>true</ShowUnit>
  1366. <VarName>time</VarName>
  1367. </XCurveData>
  1368. <YCurveData>
  1369. <ShowUnit>true</ShowUnit>
  1370. <VarName>Submodel2\c</VarName>
  1371. </YCurveData>
  1372. </Curve>
  1373. <Curve>
  1374. <LineColor>6076255</LineColor>
  1375. <LineStyle>1</LineStyle>
  1376. <TickColor>6076255</TickColor>
  1377. <TickStyle>0</TickStyle>
  1378. <CurveVisible>true</CurveVisible>
  1379. <PixelThresshold>1</PixelThresshold>
  1380. <LineThickness>1</LineThickness>
  1381. <LineOrder>1</LineOrder>
  1382. <ShowYValues>true</ShowYValues>
  1383. <XCurveData>
  1384. <ShowUnit>true</ShowUnit>
  1385. <VarName>time</VarName>
  1386. </XCurveData>
  1387. <YCurveData>
  1388. <ShowUnit>true</ShowUnit>
  1389. <VarName>MSe_a\effort</VarName>
  1390. </YCurveData>
  1391. </Curve>
  1392. <Curve>
  1393. <LineColor>12553035</LineColor>
  1394. <LineStyle>1</LineStyle>
  1395. <TickColor>12553035</TickColor>
  1396. <TickStyle>0</TickStyle>
  1397. <CurveVisible>true</CurveVisible>
  1398. <PixelThresshold>1</PixelThresshold>
  1399. <LineThickness>1</LineThickness>
  1400. <LineOrder>1</LineOrder>
  1401. <ShowYValues>true</ShowYValues>
  1402. <XCurveData>
  1403. <ShowUnit>true</ShowUnit>
  1404. <VarName>time</VarName>
  1405. </XCurveData>
  1406. <YCurveData>
  1407. <ShowUnit>true</ShowUnit>
  1408. <VarName>MSe_b\effort</VarName>
  1409. </YCurveData>
  1410. </Curve>
  1411. <Curve>
  1412. <LineColor>15086320</LineColor>
  1413. <LineStyle>1</LineStyle>
  1414. <TickColor>15086320</TickColor>
  1415. <TickStyle>0</TickStyle>
  1416. <CurveVisible>true</CurveVisible>
  1417. <PixelThresshold>1</PixelThresshold>
  1418. <LineThickness>1</LineThickness>
  1419. <LineOrder>1</LineOrder>
  1420. <ShowYValues>true</ShowYValues>
  1421. <XCurveData>
  1422. <ShowUnit>true</ShowUnit>
  1423. <VarName>time</VarName>
  1424. </XCurveData>
  1425. <YCurveData>
  1426. <ShowUnit>true</ShowUnit>
  1427. <VarName>Submodel2\s</VarName>
  1428. </YCurveData>
  1429. </Curve>
  1430. </Curves>
  1431. <Legenda>
  1432. <ShowLegenda>true</ShowLegenda>
  1433. <BorderPenColor>0</BorderPenColor>
  1434. <BackgroundColor>16777215</BackgroundColor>
  1435. </Legenda>
  1436. </Plot>
  1437. </Plots>
  1438. <PlotPanels>
  1439. <PlotPanel>
  1440. <PlotPanelId>1</PlotPanelId>
  1441. <PlotPanelVisible>true</PlotPanelVisible>
  1442. <Name>Window 1</Name>
  1443. <Tiling>0</Tiling>
  1444. <PlotIds>
  1445. <PlotId>1</PlotId>
  1446. <PlotId>2</PlotId>
  1447. <PlotId>3</PlotId>
  1448. </PlotIds>
  1449. <ToggleState>Base</ToggleState>
  1450. </PlotPanel>
  1451. <PlotPanel>
  1452. <PlotPanelId>2</PlotPanelId>
  1453. <PlotPanelVisible>true</PlotPanelVisible>
  1454. <Name>Window 2</Name>
  1455. <Tiling>2</Tiling>
  1456. <PlotIds>
  1457. <PlotId>4</PlotId>
  1458. </PlotIds>
  1459. <ToggleState>StripChart</ToggleState>
  1460. </PlotPanel>
  1461. </PlotPanels>
  1462. <WindowRectangles virtualDesktopWidth="5760" virtualDesktopHeight="1080">
  1463. <WindowRectangle monitor="1" left="-1920" top="0" right="0" bottom="1080" plotpanelid="1">
  1464. 0.130729 0.114815 0.9375 0.896296
  1465. </WindowRectangle>
  1466. <WindowRectangle monitor="2" left="1920" top="0" right="3840" bottom="1080" plotpanelid="2">
  1467. 0 0.0259259 1 1
  1468. </WindowRectangle>
  1469. </WindowRectangles>
  1470. </PlotSpecs>
  1471. <RunSpecs>
  1472. <SimulatorSettings>
  1473. <StartTime>0.0</StartTime>
  1474. <FinishTime>20.0</FinishTime>
  1475. <AllowPassFinishTime>false</AllowPassFinishTime>
  1476. <Warp>false</Warp>
  1477. <FPGonio>false</FPGonio>
  1478. <UseOutputAfterEach>false</UseOutputAfterEach>
  1479. <OutputAfterEach>0.1</OutputAfterEach>
  1480. <EventEpsilon>1.0e-6</EventEpsilon>
  1481. <AlgebraicTolerance>1.0e-7</AlgebraicTolerance>
  1482. <SteadyStateAnalysis>false</SteadyStateAnalysis>
  1483. <UpdateHoldInstructions>true</UpdateHoldInstructions>
  1484. </SimulatorSettings>
  1485. <IntegrationMethods>
  1486. <IntegrationMethod>
  1487. <Name>Euler</Name>
  1488. <StepSize>0.01</StepSize>
  1489. <AutoStepSize>false</AutoStepSize>
  1490. </IntegrationMethod>
  1491. <IntegrationMethod>
  1492. <Name>BackwardEuler</Name>
  1493. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  1494. <RelativeTolerance>1.0e-5</RelativeTolerance>
  1495. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  1496. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  1497. <StepSize>0.01</StepSize>
  1498. <Alpha>1.0</Alpha>
  1499. </IntegrationMethod>
  1500. <IntegrationMethod>
  1501. <Name>AdamsBashforth</Name>
  1502. <StepSize>0.01</StepSize>
  1503. <AutoStepSize>false</AutoStepSize>
  1504. </IntegrationMethod>
  1505. <IntegrationMethod>
  1506. <Name>RungeKutta2</Name>
  1507. <StepSize>0.01</StepSize>
  1508. <AutoStepSize>false</AutoStepSize>
  1509. </IntegrationMethod>
  1510. <IntegrationMethod>
  1511. <Name>RungeKutta4</Name>
  1512. <StepSize>1.0e-4</StepSize>
  1513. <AutoStepSize>false</AutoStepSize>
  1514. </IntegrationMethod>
  1515. <IntegrationMethod>
  1516. <Name>RungeKutta8</Name>
  1517. <UseInitialStepSize>false</UseInitialStepSize>
  1518. <InitialStepSize>0.0</InitialStepSize>
  1519. <UseMaximumStepSize>false</UseMaximumStepSize>
  1520. <MaximumStepSize>0.0</MaximumStepSize>
  1521. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  1522. <RelativeTolerance>1.0e-6</RelativeTolerance>
  1523. <SafetyFactor>0.9</SafetyFactor>
  1524. <Factor1>0.33</Factor1>
  1525. <Factor2>6.0</Factor2>
  1526. <Beta>0.0</Beta>
  1527. <UseMaxNrSteps>false</UseMaxNrSteps>
  1528. <MaxNrSteps>100000</MaxNrSteps>
  1529. <UseStiffDetection>false</UseStiffDetection>
  1530. <MaxNrStiffnessSteps>1000</MaxNrStiffnessSteps>
  1531. </IntegrationMethod>
  1532. <IntegrationMethod>
  1533. <Name>RungeKuttaFehlberg</Name>
  1534. <UseInitialStepSize>false</UseInitialStepSize>
  1535. <InitialStepSize>0.0</InitialStepSize>
  1536. <UseMaximumStepSize>false</UseMaximumStepSize>
  1537. <MaximumStepSize>0.0</MaximumStepSize>
  1538. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  1539. <RelativeTolerance>1.0e-6</RelativeTolerance>
  1540. </IntegrationMethod>
  1541. <IntegrationMethod>
  1542. <Name>VodeAdams</Name>
  1543. <UseInitialStepSize>false</UseInitialStepSize>
  1544. <InitialStepSize>0.0</InitialStepSize>
  1545. <UseMaximumStepSize>false</UseMaximumStepSize>
  1546. <MaximumStepSize>0.0</MaximumStepSize>
  1547. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  1548. <RelativeTolerance>1.0e-6</RelativeTolerance>
  1549. <VodeUseBDF>false</VodeUseBDF>
  1550. <VodeUseNewton>true</VodeUseNewton>
  1551. </IntegrationMethod>
  1552. <IntegrationMethod>
  1553. <Name>BDFMethod</Name>
  1554. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  1555. <RelativeTolerance>1.0e-5</RelativeTolerance>
  1556. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  1557. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  1558. <UseInitialStepSize>false</UseInitialStepSize>
  1559. <InitialStepSize>0.0</InitialStepSize>
  1560. <UseMaximumStepSize>false</UseMaximumStepSize>
  1561. <MaximumStepSize>0.0</MaximumStepSize>
  1562. </IntegrationMethod>
  1563. <IntegrationMethod>
  1564. <Name>MeBDFiMethod</Name>
  1565. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  1566. <RelativeTolerance>1.0e-5</RelativeTolerance>
  1567. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  1568. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  1569. <UseInitialStepSize>false</UseInitialStepSize>
  1570. <InitialStepSize>0.0</InitialStepSize>
  1571. <UseMaximumStepSize>false</UseMaximumStepSize>
  1572. <MaximumStepSize>0.0</MaximumStepSize>
  1573. </IntegrationMethod>
  1574. <SelectedIntegrationMethod>8</SelectedIntegrationMethod>
  1575. </IntegrationMethods>
  1576. </RunSpecs>
  1577. <MultipleRun>
  1578. <NrSteps>10</NrSteps>
  1579. <CopyFromStates>false</CopyFromStates>
  1580. <JoinParameterVariation>true</JoinParameterVariation>
  1581. <ClearAfterRun>true</ClearAfterRun>
  1582. <RedrawAfterRun>false</RedrawAfterRun>
  1583. <DrawDuringSimulation>true</DrawDuringSimulation>
  1584. <ActionBeforeOptimization>0</ActionBeforeOptimization>
  1585. <CompareValue>0.0</CompareValue>
  1586. <UseCompareValue>true</UseCompareValue>
  1587. <MultipleRunType>MultipleRun</MultipleRunType>
  1588. <Minimize>true</Minimize>
  1589. <OptimizationVariable></OptimizationVariable>
  1590. <ResulVarUsage>UseEndValue</ResulVarUsage>
  1591. <Tolerance>0.001</Tolerance>
  1592. <OptimizationMethod>BroydonFletcherGoldfarbShanno</OptimizationMethod>
  1593. <MultipleRunVariables>
  1594. </MultipleRunVariables>
  1595. </MultipleRun>
  1596. <ExportData>
  1597. <WriteAsText>true</WriteAsText>
  1598. <ReadAsText>true</ReadAsText>
  1599. <WriteHeader>true</WriteHeader>
  1600. <ReadHeader>true</ReadHeader>
  1601. <ReadFilename></ReadFilename>
  1602. <WriteFilename></WriteFilename>
  1603. <DoWrite>false</DoWrite>
  1604. <ExportVariables>
  1605. </ExportVariables>
  1606. <ImportVariables>
  1607. </ImportVariables>
  1608. </ExportData>
  1609. <BreakPoints>
  1610. </BreakPoints>
  1611. <AnimationPlayback>
  1612. <PlaybackSpeed>1.0</PlaybackSpeed>
  1613. </AnimationPlayback>
  1614. </ExpData>
  1615. </Experiment>
  1616. </Experiments>
  1617. </Document>