Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

7285 wiersze
201KB

  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>C:\users\wouter\My Documents\studie\ma\mahd\implementation\SCARA\03_motor\motor_physics.emx</LibraryPath>
  11. <TimeStamp>2020-7-18 12:37:59</TimeStamp>
  12. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  13. </Description>
  14. <Attributes>
  15. <GlobalRelations>parameters
  16. real A = 0.05 {m};
  17. real B = 0.05 {m};
  18. variables
  19. real J0_1_BF1[2];
  20. real J1_2_BF1[2];
  21. real J1_2_BF2[2];
  22. real EE1_BF2[2];
  23. initialequations
  24. J0_1_BF1 = [A/2;0];
  25. J1_2_BF1 = [-A/2;0];
  26. J1_2_BF2 = [B/2;0];
  27. EE1_BF2 = [-B/2;0];</GlobalRelations>
  28. </Attributes>
  29. </Information>';
  30. type Mainmodel
  31. end;
  32. implementation bg
  33. submodels
  34. Base1 720 680
  35. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate><LibraryPath>Bond Graph\MR\center_of_mass.emx</LibraryPath><TimeStamp>2020-7-17 15:37:54</TimeStamp><Description>Base</Description></Description><Attributes><GlobalRelations>parameters
  36. real I [3,1] = [7.583333333333335e-7; 3.645833333333334e-8; 7.364583333333335e-7] {N.m.s};
  37. real m = 0.0035 {kg};</GlobalRelations></Attributes></Information>';
  38. type Submodel
  39. ports
  40. power out p [6,1];
  41. signal in Hin [4,4];
  42. power in p1 [6,1];
  43. signal out Hout [4,4];
  44. end;
  45. icon bg bottom
  46. figures
  47. rectangle 688 640 752 720 color 0 fill 255;
  48. text 'COM' 720 664 color 0;
  49. terminals
  50. p 688 656 fixed;
  51. Hin 688 704 fixed;
  52. p1 752 656 fixed;
  53. Hout 752 704 fixed;
  54. end;
  55. implementation bg
  56. submodels
  57. AdHi0 544 400
  58. description '<Description>
  59. <Version>4.0</Version>
  60. <IsMainModel>1</IsMainModel>
  61. <KeepParameterValues>False</KeepParameterValues>
  62. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  63. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  64. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  65. </Description>';
  66. type MTF
  67. ports
  68. power in p1 [6,1];
  69. power out p2 [6,1];
  70. signal in H [4,4];
  71. restrictions
  72. causality constraint not_equal p1 p2;
  73. end;
  74. icon bg left
  75. figures
  76. text 'MTF' 544 400 color 0 18 bold;
  77. end;
  78. implementation eq
  79. variables
  80. real onlyRotH[4,4];
  81. code
  82. //Only rotations with respect to the inertial system matter!
  83. onlyRotH = H;
  84. onlyRotH[1,4] = 0;
  85. onlyRotH[2,4] = 0;
  86. onlyRotH[3,4] = 0;
  87. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  88. p1.f = Adjoint(onlyRotH) * p2.f;
  89. implementation_end;
  90. EJS 616 256
  91. description '<Description>
  92. <Version>4.0</Version>
  93. <IsMainModel>1</IsMainModel>
  94. <KeepParameterValues>False</KeepParameterValues>
  95. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  96. <TimeStamp>2007-10-31 11:43:6</TimeStamp>
  97. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  98. </Description>';
  99. type MGY
  100. ports
  101. power in p1 [6,1];
  102. end;
  103. icon bg top
  104. figures
  105. text 'MGY' 616 256 color 0 18 bold;
  106. end;
  107. implementation eq
  108. //EJS / Gyroscopic effects
  109. parameters
  110. real global I[3];
  111. real global m;
  112. variables
  113. real II[6,6]; //Inertial tensor
  114. real Q[6,6];
  115. real QI[6,6];
  116. real Ia[6];
  117. initialequations
  118. Ia[1:3] = I;
  119. Ia[4:6] = m;
  120. II = diag(Ia);
  121. equations
  122. Q = transpose(adjoint(p1.f));
  123. QI = Q*II;
  124. p1.e = QI*p1.f;implementation_end;
  125. Gravity 616 400
  126. description '<Description>
  127. <Version>4.0</Version>
  128. <IsMainModel>1</IsMainModel>
  129. <KeepParameterValues>False</KeepParameterValues>
  130. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  131. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  132. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  133. </Description>';
  134. type Se
  135. ports
  136. power out p [6,1];
  137. restrictions
  138. causality fixed out p;
  139. end;
  140. icon bg bottom
  141. figures
  142. text 'Se' 616 400 color 0 18 bold;
  143. end;
  144. implementation eq
  145. parameters
  146. real global m;
  147. variables
  148. real effort[6];
  149. equations
  150. effort = [0;0;0;0;0;-g_n*m];
  151. p.e = effort;
  152. implementation_end;
  153. InertialTensor 480 256
  154. description '<Description>
  155. <Version>4.0</Version>
  156. <IsMainModel>1</IsMainModel>
  157. <KeepParameterValues>False</KeepParameterValues>
  158. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  159. <TimeStamp>2007-9-25 12:2:12</TimeStamp>
  160. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  161. </Description>';
  162. type I
  163. ports
  164. power in p [6,1];
  165. signal out state [6,1];
  166. restrictions
  167. causality preferred in p;
  168. end;
  169. icon bg top
  170. figures
  171. text 'I' 480 256 color 0 18 bold;
  172. end;
  173. implementation eq
  174. parameters
  175. real global I[3];
  176. real global m;
  177. variables
  178. real II[6,6]; //Inertial tensor
  179. real Ia[6];
  180. initialequations
  181. Ia[1:3] = I;
  182. Ia[4:6] = m;
  183. II = diag(Ia);
  184. equations
  185. state = int(p.e); //state = generalized momentum
  186. p.f = inverse(II)*state;
  187. implementation_end;
  188. plug Hin 472 496;
  189. plug p1 752 304;
  190. plug Hout 768 496;
  191. plug p 472 304;
  192. Splitter1 544 496
  193. description '<Description><Version>4.0</Version>
  194. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  195. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  196. <IsMainModel>1</IsMainModel>
  197. <KeepParameterValues>False</KeepParameterValues>
  198. </Description>';
  199. knot Splitter
  200. ports
  201. signal knot duplicatable out output [4,4];
  202. signal knot in input [4,4];
  203. end;
  204. icon bg ellipse
  205. figures
  206. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  207. ellipse 539.7 491.7 548.3 500.3 color -1;
  208. terminals
  209. input 544 496 fixed;
  210. end;
  211. implementation eq
  212. equations
  213. collect (output) = input;
  214. implementation_end;
  215. Ta0j 544 304
  216. description '<Description>
  217. <Version>4.0</Version>
  218. <IsMainModel>1</IsMainModel>
  219. <KeepParameterValues>False</KeepParameterValues>
  220. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  221. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  222. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  223. <Description></Description>
  224. </Description>';
  225. knot OneJunction
  226. ports
  227. power knot duplicatable none p [6,1];
  228. signal knot out flow [6,1];
  229. restrictions
  230. causality constraint one_out p;
  231. end;
  232. icon bg bottom
  233. figures
  234. text '1' 544 304 color 0 18 bold;
  235. end;
  236. implementation eq
  237. equations
  238. sum (direct (p.e)) = 0;
  239. equal (collect (p.f));
  240. flow = first (p.f);
  241. implementation_end;
  242. Ta0k 544 256
  243. description '<Description>
  244. <Version>4.0</Version>
  245. <IsMainModel>1</IsMainModel>
  246. <KeepParameterValues>False</KeepParameterValues>
  247. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  248. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  249. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  250. <Description></Description>
  251. </Description>';
  252. knot OneJunction
  253. ports
  254. power knot duplicatable none p [6,1];
  255. signal knot out flow [6,1];
  256. restrictions
  257. causality constraint one_out p;
  258. end;
  259. icon bg top
  260. figures
  261. text '1' 544 256 color 0 18 bold;
  262. end;
  263. implementation eq
  264. equations
  265. sum (direct (p.e)) = 0;
  266. equal (collect (p.f));
  267. flow = first (p.f);
  268. implementation_end;
  269. end;
  270. connections
  271. AdHi0\p2 => Ta0j\p;
  272. Gravity\p => AdHi0\p1;
  273. Hin -> Splitter1\input;
  274. p <= Ta0j\p;
  275. p1 => Ta0j\p;
  276. Splitter1\output -> AdHi0\H;
  277. Splitter1\output -> Hout;
  278. Ta0j\p => Ta0k\p;
  279. Ta0k\p => EJS\p1;
  280. Ta0k\p => InertialTensor\p;
  281. end;
  282. parameterrelations
  283. InertialTensor\I = I;
  284. InterialTensor\m = m;
  285. EJS\I = I;
  286. EJS\m = m;
  287. AdHik\COMdim = COMdim;
  288. AdHik1\COMdim = COMdim;
  289. Hij\dim = dim;
  290. Gravity\m=m;parameterrelations_end;
  291. figures
  292. text 'b = current link (body)
  293. a = previous link (body)
  294. i = Body fixed frame, fixed in joint with previous link
  295. j = Body fixed frame, fixed in joint with next link
  296. k = Body fixed frame, principal inertial frame
  297. 0 = inertial system
  298. ' 288 280 color 0;
  299. implementation_end;
  300. Base2 912 680
  301. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate><LibraryPath>Bond Graph\MR\center_of_mass.emx</LibraryPath><TimeStamp>2020-7-17 15:37:54</TimeStamp><Description>Base</Description></Description><Attributes><GlobalRelations>parameters
  302. real I [3,1] = [0;0;0] {N.m.s};
  303. real m = 0.015 {kg};</GlobalRelations></Attributes></Information>';
  304. type Submodel
  305. ports
  306. power out p [6,1];
  307. signal in Hin [4,4];
  308. power in p1 [6,1];
  309. signal out Hout [4,4];
  310. end;
  311. icon bg bottom
  312. figures
  313. rectangle 880 640 944 720 color 0 fill 255;
  314. text 'COM' 912 664 color 0;
  315. terminals
  316. p 880 656 fixed;
  317. Hin 880 704 fixed;
  318. p1 944 656 fixed;
  319. Hout 944 704 fixed;
  320. end;
  321. implementation bg
  322. submodels
  323. AdHi0 544 400
  324. description '<Description>
  325. <Version>4.0</Version>
  326. <IsMainModel>1</IsMainModel>
  327. <KeepParameterValues>False</KeepParameterValues>
  328. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  329. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  330. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  331. </Description>';
  332. type MTF
  333. ports
  334. power in p1 [6,1];
  335. power out p2 [6,1];
  336. signal in H [4,4];
  337. restrictions
  338. causality constraint not_equal p1 p2;
  339. end;
  340. icon bg left
  341. figures
  342. text 'MTF' 544 400 color 0 18 bold;
  343. end;
  344. implementation eq
  345. variables
  346. real onlyRotH[4,4];
  347. code
  348. //Only rotations with respect to the inertial system matter!
  349. onlyRotH = H;
  350. onlyRotH[1,4] = 0;
  351. onlyRotH[2,4] = 0;
  352. onlyRotH[3,4] = 0;
  353. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  354. p1.f = Adjoint(onlyRotH) * p2.f;
  355. implementation_end;
  356. EJS 616 256
  357. description '<Description>
  358. <Version>4.0</Version>
  359. <IsMainModel>1</IsMainModel>
  360. <KeepParameterValues>False</KeepParameterValues>
  361. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  362. <TimeStamp>2007-10-31 11:43:6</TimeStamp>
  363. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  364. </Description>';
  365. type MGY
  366. ports
  367. power in p1 [6,1];
  368. end;
  369. icon bg top
  370. figures
  371. text 'MGY' 616 256 color 0 18 bold;
  372. end;
  373. implementation eq
  374. //EJS / Gyroscopic effects
  375. parameters
  376. real global I[3];
  377. real global m;
  378. variables
  379. real II[6,6]; //Inertial tensor
  380. real Q[6,6];
  381. real QI[6,6];
  382. real Ia[6];
  383. initialequations
  384. Ia[1:3] = I;
  385. Ia[4:6] = m;
  386. II = diag(Ia);
  387. equations
  388. Q = transpose(adjoint(p1.f));
  389. QI = Q*II;
  390. p1.e = QI*p1.f;implementation_end;
  391. Gravity 616 400
  392. description '<Description>
  393. <Version>4.0</Version>
  394. <IsMainModel>1</IsMainModel>
  395. <KeepParameterValues>False</KeepParameterValues>
  396. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  397. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  398. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  399. </Description>';
  400. type Se
  401. ports
  402. power out p [6,1];
  403. restrictions
  404. causality fixed out p;
  405. end;
  406. icon bg bottom
  407. figures
  408. text 'Se' 616 400 color 0 18 bold;
  409. end;
  410. implementation eq
  411. parameters
  412. real global m;
  413. variables
  414. real effort[6];
  415. equations
  416. effort = [0;0;0;0;0;-g_n*m];
  417. p.e = effort;
  418. implementation_end;
  419. InertialTensor 480 256
  420. description '<Description>
  421. <Version>4.0</Version>
  422. <IsMainModel>1</IsMainModel>
  423. <KeepParameterValues>False</KeepParameterValues>
  424. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  425. <TimeStamp>2007-9-25 12:2:12</TimeStamp>
  426. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  427. </Description>';
  428. type I
  429. ports
  430. power in p [6,1];
  431. signal out state [6,1];
  432. restrictions
  433. causality preferred in p;
  434. end;
  435. icon bg top
  436. figures
  437. text 'I' 480 256 color 0 18 bold;
  438. end;
  439. implementation eq
  440. parameters
  441. real global I[3];
  442. real global m;
  443. variables
  444. real II[6,6]; //Inertial tensor
  445. real Ia[6];
  446. initialequations
  447. Ia[1:3] = I;
  448. Ia[4:6] = m;
  449. II = diag(Ia);
  450. equations
  451. state = int(p.e); //state = generalized momentum
  452. p.f = inverse(II)*state;
  453. implementation_end;
  454. plug Hin 472 496;
  455. plug p1 752 304;
  456. plug Hout 768 496;
  457. plug p 472 304;
  458. Splitter1 544 496
  459. description '<Description><Version>4.0</Version>
  460. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  461. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  462. <IsMainModel>1</IsMainModel>
  463. <KeepParameterValues>False</KeepParameterValues>
  464. </Description>';
  465. knot Splitter
  466. ports
  467. signal knot duplicatable out output [4,4];
  468. signal knot in input [4,4];
  469. end;
  470. icon bg ellipse
  471. figures
  472. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  473. ellipse 539.7 491.7 548.3 500.3 color -1;
  474. terminals
  475. input 544 496 fixed;
  476. end;
  477. implementation eq
  478. equations
  479. collect (output) = input;
  480. implementation_end;
  481. Ta0j 544 304
  482. description '<Description>
  483. <Version>4.0</Version>
  484. <IsMainModel>1</IsMainModel>
  485. <KeepParameterValues>False</KeepParameterValues>
  486. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  487. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  488. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  489. <Description></Description>
  490. </Description>';
  491. knot OneJunction
  492. ports
  493. power knot duplicatable none p [6,1];
  494. signal knot out flow [6,1];
  495. restrictions
  496. causality constraint one_out p;
  497. end;
  498. icon bg bottom
  499. figures
  500. text '1' 544 304 color 0 18 bold;
  501. end;
  502. implementation eq
  503. equations
  504. sum (direct (p.e)) = 0;
  505. equal (collect (p.f));
  506. flow = first (p.f);
  507. implementation_end;
  508. Ta0k 544 256
  509. description '<Description>
  510. <Version>4.0</Version>
  511. <IsMainModel>1</IsMainModel>
  512. <KeepParameterValues>False</KeepParameterValues>
  513. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  514. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  515. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  516. <Description></Description>
  517. </Description>';
  518. knot OneJunction
  519. ports
  520. power knot duplicatable none p [6,1];
  521. signal knot out flow [6,1];
  522. restrictions
  523. causality constraint one_out p;
  524. end;
  525. icon bg top
  526. figures
  527. text '1' 544 256 color 0 18 bold;
  528. end;
  529. implementation eq
  530. equations
  531. sum (direct (p.e)) = 0;
  532. equal (collect (p.f));
  533. flow = first (p.f);
  534. implementation_end;
  535. end;
  536. connections
  537. AdHi0\p2 => Ta0j\p;
  538. Gravity\p => AdHi0\p1;
  539. Hin -> Splitter1\input;
  540. p <= Ta0j\p;
  541. p1 => Ta0j\p;
  542. Splitter1\output -> AdHi0\H;
  543. Splitter1\output -> Hout;
  544. Ta0j\p => Ta0k\p;
  545. Ta0k\p => EJS\p1;
  546. Ta0k\p => InertialTensor\p;
  547. end;
  548. parameterrelations
  549. InertialTensor\I = I;
  550. InterialTensor\m = m;
  551. EJS\I = I;
  552. EJS\m = m;
  553. AdHik\COMdim = COMdim;
  554. AdHik1\COMdim = COMdim;
  555. Hij\dim = dim;
  556. Gravity\m=m;parameterrelations_end;
  557. figures
  558. text 'b = current link (body)
  559. a = previous link (body)
  560. i = Body fixed frame, fixed in joint with previous link
  561. j = Body fixed frame, fixed in joint with next link
  562. k = Body fixed frame, principal inertial frame
  563. 0 = inertial system
  564. ' 288 280 color 0;
  565. implementation_end;
  566. Base3 368 680
  567. description '<Information>
  568. <Description>
  569. <Version>4.8</Version>
  570. <IsMainModel>1</IsMainModel>
  571. <KeepParameterValues>False</KeepParameterValues>
  572. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  573. <LibraryPath>Bond Graph\MR\center_of_mass.emx</LibraryPath>
  574. <TimeStamp>2020-7-17 15:37:54</TimeStamp>
  575. <Description>Base</Description>
  576. </Description>
  577. <Attributes>
  578. <GlobalRelations>parameters
  579. real I [3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6] {N.m.s};
  580. real m = 0.00455 {kg};</GlobalRelations>
  581. </Attributes>
  582. </Information>';
  583. type Submodel
  584. ports
  585. power out p [6,1];
  586. signal in Hin [4,4];
  587. power in p1 [6,1];
  588. signal out Hout [4,4];
  589. end;
  590. icon bg bottom
  591. figures
  592. rectangle 336 640 400 720 color 0 fill 255;
  593. text 'COM' 368 664 color 0;
  594. terminals
  595. p 336 656 fixed;
  596. Hin 336 704 fixed;
  597. p1 400 656 fixed;
  598. Hout 400 704 fixed;
  599. end;
  600. implementation bg
  601. submodels
  602. AdHi0 544 400
  603. description '<Description>
  604. <Version>4.0</Version>
  605. <IsMainModel>1</IsMainModel>
  606. <KeepParameterValues>False</KeepParameterValues>
  607. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  608. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  609. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  610. </Description>';
  611. type MTF
  612. ports
  613. power in p1 [6,1];
  614. power out p2 [6,1];
  615. signal in H [4,4];
  616. restrictions
  617. causality constraint not_equal p1 p2;
  618. end;
  619. icon bg left
  620. figures
  621. text 'MTF' 544 400 color 0 18 bold;
  622. end;
  623. implementation eq
  624. variables
  625. real onlyRotH[4,4];
  626. code
  627. //Only rotations with respect to the inertial system matter!
  628. onlyRotH = H;
  629. onlyRotH[1,4] = 0;
  630. onlyRotH[2,4] = 0;
  631. onlyRotH[3,4] = 0;
  632. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  633. p1.f = Adjoint(onlyRotH) * p2.f;
  634. implementation_end;
  635. EJS 616 256
  636. description '<Description>
  637. <Version>4.0</Version>
  638. <IsMainModel>1</IsMainModel>
  639. <KeepParameterValues>False</KeepParameterValues>
  640. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  641. <TimeStamp>2007-10-31 11:43:6</TimeStamp>
  642. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  643. </Description>';
  644. type MGY
  645. ports
  646. power in p1 [6,1];
  647. end;
  648. icon bg top
  649. figures
  650. text 'MGY' 616 256 color 0 18 bold;
  651. end;
  652. implementation eq
  653. //EJS / Gyroscopic effects
  654. parameters
  655. real global I[3];
  656. real global m;
  657. variables
  658. real II[6,6]; //Inertial tensor
  659. real Q[6,6];
  660. real QI[6,6];
  661. real Ia[6];
  662. initialequations
  663. Ia[1:3] = I;
  664. Ia[4:6] = m;
  665. II = diag(Ia);
  666. equations
  667. Q = transpose(adjoint(p1.f));
  668. QI = Q*II;
  669. p1.e = QI*p1.f;implementation_end;
  670. Gravity 616 400
  671. description '<Description>
  672. <Version>4.0</Version>
  673. <IsMainModel>1</IsMainModel>
  674. <KeepParameterValues>False</KeepParameterValues>
  675. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  676. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  677. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  678. </Description>';
  679. type Se
  680. ports
  681. power out p [6,1];
  682. restrictions
  683. causality fixed out p;
  684. end;
  685. icon bg bottom
  686. figures
  687. text 'Se' 616 400 color 0 18 bold;
  688. end;
  689. implementation eq
  690. parameters
  691. real global m;
  692. variables
  693. real effort[6];
  694. equations
  695. effort = [0;0;0;0;0;-g_n*m];
  696. p.e = effort;
  697. implementation_end;
  698. InertialTensor 480 256
  699. description '<Description>
  700. <Version>4.0</Version>
  701. <IsMainModel>1</IsMainModel>
  702. <KeepParameterValues>False</KeepParameterValues>
  703. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  704. <TimeStamp>2007-9-25 12:2:12</TimeStamp>
  705. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  706. </Description>';
  707. type I
  708. ports
  709. power in p [6,1];
  710. signal out state [6,1];
  711. restrictions
  712. causality preferred in p;
  713. end;
  714. icon bg top
  715. figures
  716. text 'I' 480 256 color 0 18 bold;
  717. end;
  718. implementation eq
  719. parameters
  720. real global I[3];
  721. real global m;
  722. variables
  723. real II[6,6]; //Inertial tensor
  724. real Ia[6];
  725. initialequations
  726. Ia[1:3] = I;
  727. Ia[4:6] = m;
  728. II = diag(Ia);
  729. equations
  730. state = int(p.e); //state = generalized momentum
  731. p.f = inverse(II)*state;
  732. implementation_end;
  733. plug Hin 472 496;
  734. plug p1 752 304;
  735. plug Hout 768 496;
  736. plug p 472 304;
  737. Splitter1 544 496
  738. description '<Description><Version>4.0</Version>
  739. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  740. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  741. <IsMainModel>1</IsMainModel>
  742. <KeepParameterValues>False</KeepParameterValues>
  743. </Description>';
  744. knot Splitter
  745. ports
  746. signal knot duplicatable out output [4,4];
  747. signal knot in input [4,4];
  748. end;
  749. icon bg ellipse
  750. figures
  751. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  752. ellipse 539.7 491.7 548.3 500.3 color -1;
  753. terminals
  754. input 544 496 fixed;
  755. end;
  756. implementation eq
  757. equations
  758. collect (output) = input;
  759. implementation_end;
  760. Ta0j 544 304
  761. description '<Description>
  762. <Version>4.0</Version>
  763. <IsMainModel>1</IsMainModel>
  764. <KeepParameterValues>False</KeepParameterValues>
  765. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  766. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  767. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  768. <Description></Description>
  769. </Description>';
  770. knot OneJunction
  771. ports
  772. power knot duplicatable none p [6,1];
  773. signal knot out flow [6,1];
  774. restrictions
  775. causality constraint one_out p;
  776. end;
  777. icon bg bottom
  778. figures
  779. text '1' 544 304 color 0 18 bold;
  780. end;
  781. implementation eq
  782. equations
  783. sum (direct (p.e)) = 0;
  784. equal (collect (p.f));
  785. flow = first (p.f);
  786. implementation_end;
  787. Ta0k 544 256
  788. description '<Description>
  789. <Version>4.0</Version>
  790. <IsMainModel>1</IsMainModel>
  791. <KeepParameterValues>False</KeepParameterValues>
  792. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  793. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  794. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  795. <Description></Description>
  796. </Description>';
  797. knot OneJunction
  798. ports
  799. power knot duplicatable none p [6,1];
  800. signal knot out flow [6,1];
  801. restrictions
  802. causality constraint one_out p;
  803. end;
  804. icon bg top
  805. figures
  806. text '1' 544 256 color 0 18 bold;
  807. end;
  808. implementation eq
  809. equations
  810. sum (direct (p.e)) = 0;
  811. equal (collect (p.f));
  812. flow = first (p.f);
  813. implementation_end;
  814. end;
  815. connections
  816. AdHi0\p2 => Ta0j\p;
  817. Gravity\p => AdHi0\p1;
  818. Hin -> Splitter1\input;
  819. p <= Ta0j\p;
  820. p1 => Ta0j\p;
  821. Splitter1\output -> AdHi0\H;
  822. Splitter1\output -> Hout;
  823. Ta0j\p => Ta0k\p;
  824. Ta0k\p => EJS\p1;
  825. Ta0k\p => InertialTensor\p;
  826. end;
  827. parameterrelations
  828. InertialTensor\I = I;
  829. InterialTensor\m = m;
  830. EJS\I = I;
  831. EJS\m = m;
  832. AdHik\COMdim = COMdim;
  833. AdHik1\COMdim = COMdim;
  834. Hij\dim = dim;
  835. Gravity\m=m;parameterrelations_end;
  836. figures
  837. text 'b = current link (body)
  838. a = previous link (body)
  839. i = Body fixed frame, fixed in joint with previous link
  840. j = Body fixed frame, fixed in joint with next link
  841. k = Body fixed frame, principal inertial frame
  842. 0 = inertial system
  843. ' 288 280 color 0;
  844. implementation_end;
  845. COM1 424 584
  846. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel></Description><Attributes><GlobalRelations>parameters
  847. real mass = 1 {kg};</GlobalRelations></Attributes></Information>';
  848. type Submodel
  849. ports
  850. translation in p [2,1];
  851. signal in mass {kg} ;
  852. end;
  853. icon bg ellipse bottom
  854. figures
  855. ellipse 416 576 432 592 color 0 fill 15132390;
  856. line 424 576 424 592 color 0 fill 15132390;
  857. line 416 584 432 584 color 0 fill 15132390;
  858. end;
  859. implementation bg
  860. submodels
  861. Gain 368 408
  862. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  863. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  864. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  865. </Description>';
  866. type Gain
  867. ports
  868. signal in input;
  869. signal out output [2,1];
  870. end;
  871. icon bg bottom
  872. figures
  873. rectangle 352.1 392 383.9 424 color 0 fill 15132390;
  874. text 'K' 368 408 color 16711680 16 bold;
  875. end;
  876. implementation eq
  877. equations
  878. output = [0;-g_n] * input;
  879. implementation_end;
  880. I 248 520
  881. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  882. <LibraryPath>Bond Graph\2D\I-2.emx</LibraryPath>
  883. <TimeStamp>2007-9-25 12:7:37</TimeStamp>
  884. </Description>';
  885. type 'I-2'
  886. ports
  887. power in p [2,1];
  888. signal out state [2,1];
  889. signal in mass {kg} ;
  890. restrictions
  891. causality preferred in p;
  892. end;
  893. icon bg bottom
  894. figures
  895. text 'I' 248 520 color 0 18 bold;
  896. end;
  897. implementation eq
  898. equations
  899. state = int(p.e);
  900. p.f = inverse ([mass,0;0,mass]) * state;
  901. implementation_end;
  902. plug p 304 468;
  903. plug mass 208 408;
  904. OneJunction2 304 520
  905. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  906. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  907. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  908. </Description>';
  909. knot OneJunction
  910. ports
  911. translation knot duplicatable none p [2,1];
  912. signal knot out flow [2,1];
  913. restrictions
  914. causality constraint one_out p;
  915. end;
  916. icon bg
  917. figures
  918. text '1' 304 520 color 0 18 bold;
  919. end;
  920. implementation eq
  921. equations
  922. sum (direct (p.e)) = 0;
  923. equal (collect (p.f));
  924. flow = first (p.f);
  925. implementation_end;
  926. Sg 368 520
  927. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  928. <LibraryPath>Bond Graph\2D\MSe-2.emx</LibraryPath>
  929. <TimeStamp>2007-9-25 12:7:58</TimeStamp>
  930. </Description>';
  931. type 'MSe-2'
  932. ports
  933. power out p [2,1];
  934. signal in effort [2,1];
  935. restrictions
  936. causality fixed out p;
  937. end;
  938. icon bg bottom
  939. figures
  940. text 'MSe' 368 520 color 0 18 bold;
  941. end;
  942. implementation eq
  943. variables
  944. real flow[2];
  945. equations
  946. p.e = effort;
  947. flow = p.f;
  948. implementation_end;
  949. Splitter1 248 408
  950. description '<Description><Version>4.0</Version>
  951. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  952. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  953. <IsMainModel>1</IsMainModel>
  954. <KeepParameterValues>False</KeepParameterValues>
  955. </Description>';
  956. knot Splitter
  957. ports
  958. signal knot duplicatable out output [1];
  959. signal knot in input [1];
  960. end;
  961. icon bg ellipse
  962. figures
  963. ellipse 244.8 404.8 251.2 411.2 color -1 fill 0;
  964. ellipse 243.7 403.7 252.3 412.3 color -1;
  965. terminals
  966. input 248 408 fixed;
  967. end;
  968. implementation eq
  969. equations
  970. collect (output) = input;
  971. implementation_end;
  972. end;
  973. connections
  974. Gain\output -> Sg\effort;
  975. I\p <= OneJunction2\p;
  976. mass -> Splitter1\input;
  977. p => OneJunction2\p;
  978. Sg\p => OneJunction2\p;
  979. Splitter1\output -> Gain\input;
  980. Splitter1\output -> I\mass;
  981. end;
  982. implementation_end;
  983. COM2 824 584
  984. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel></Description><Attributes><GlobalRelations>parameters
  985. real mass = 1 {kg};</GlobalRelations></Attributes></Information>';
  986. type Submodel
  987. ports
  988. power in p [2,1];
  989. signal in mass {kg} ;
  990. end;
  991. icon bg ellipse
  992. figures
  993. ellipse 816 576 832 592 color 0 fill 15132390;
  994. line 824 576 824 592 color 0 fill 15132390;
  995. line 816 584 832 584 color 0 fill 15132390;
  996. end;
  997. implementation bg
  998. submodels
  999. Gain 368 408
  1000. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1001. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1002. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1003. </Description>';
  1004. type Gain
  1005. ports
  1006. signal in input;
  1007. signal out output [2,1];
  1008. end;
  1009. icon bg bottom
  1010. figures
  1011. rectangle 352.1 392 383.9 424 color 0 fill 15132390;
  1012. text 'K' 368 408 color 16711680 16 bold;
  1013. end;
  1014. implementation eq
  1015. equations
  1016. output = [0;-g_n] * input;
  1017. implementation_end;
  1018. I 248 520
  1019. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1020. <LibraryPath>Bond Graph\2D\I-2.emx</LibraryPath>
  1021. <TimeStamp>2007-9-25 12:7:37</TimeStamp>
  1022. </Description>';
  1023. type 'I-2'
  1024. ports
  1025. power in p [2,1];
  1026. signal out state [2,1];
  1027. signal in mass {kg} ;
  1028. restrictions
  1029. causality preferred in p;
  1030. end;
  1031. icon bg bottom
  1032. figures
  1033. text 'I' 248 520 color 0 18 bold;
  1034. end;
  1035. implementation eq
  1036. equations
  1037. state = int(p.e);
  1038. p.f = inverse ([mass,0;0,mass]) * state;
  1039. implementation_end;
  1040. plug p 304 468;
  1041. plug mass 208 408;
  1042. OneJunction2 304 520
  1043. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1044. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1045. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  1046. </Description>';
  1047. knot OneJunction
  1048. ports
  1049. power knot duplicatable none p [2,1];
  1050. signal knot out flow [2,1];
  1051. restrictions
  1052. causality constraint one_out p;
  1053. end;
  1054. icon bg
  1055. figures
  1056. text '1' 304 520 color 0 18 bold;
  1057. end;
  1058. implementation eq
  1059. equations
  1060. sum (direct (p.e)) = 0;
  1061. equal (collect (p.f));
  1062. flow = first (p.f);
  1063. implementation_end;
  1064. Sg 368 520
  1065. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1066. <LibraryPath>Bond Graph\2D\MSe-2.emx</LibraryPath>
  1067. <TimeStamp>2007-9-25 12:7:58</TimeStamp>
  1068. </Description>';
  1069. type 'MSe-2'
  1070. ports
  1071. power out p [2,1];
  1072. signal in effort [2,1];
  1073. restrictions
  1074. causality fixed out p;
  1075. end;
  1076. icon bg bottom
  1077. figures
  1078. text 'MSe' 368 520 color 0 18 bold;
  1079. end;
  1080. implementation eq
  1081. variables
  1082. real flow[2];
  1083. equations
  1084. p.e = effort;
  1085. flow = p.f;
  1086. implementation_end;
  1087. Splitter1 248 408
  1088. description '<Description><Version>4.0</Version>
  1089. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1090. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1091. <IsMainModel>1</IsMainModel>
  1092. <KeepParameterValues>False</KeepParameterValues>
  1093. </Description>';
  1094. knot Splitter
  1095. ports
  1096. signal knot duplicatable out output [1];
  1097. signal knot in input [1];
  1098. end;
  1099. icon bg ellipse
  1100. figures
  1101. ellipse 244.8 404.8 251.2 411.2 color -1 fill 0;
  1102. ellipse 243.7 403.7 252.3 412.3 color -1;
  1103. terminals
  1104. input 248 408 fixed;
  1105. end;
  1106. implementation eq
  1107. equations
  1108. collect (output) = input;
  1109. implementation_end;
  1110. end;
  1111. connections
  1112. Gain\output -> Sg\effort;
  1113. I\p <= OneJunction2\p;
  1114. mass -> Splitter1\input;
  1115. p => OneJunction2\p;
  1116. Sg\p => OneJunction2\p;
  1117. Splitter1\output -> Gain\input;
  1118. Splitter1\output -> I\mass;
  1119. end;
  1120. implementation_end;
  1121. COM3 984 584
  1122. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel></Description><Attributes><GlobalRelations>parameters
  1123. real mass = 1 {kg};</GlobalRelations></Attributes></Information>';
  1124. type Submodel
  1125. ports
  1126. power in p [2,1];
  1127. signal in mass {kg} ;
  1128. end;
  1129. icon bg ellipse
  1130. figures
  1131. ellipse 976 576 992 592 color 0 fill 15132390;
  1132. line 984 576 984 592 color 0 fill 15132390;
  1133. line 976 584 992 584 color 0 fill 15132390;
  1134. end;
  1135. implementation bg
  1136. submodels
  1137. Gain 368 408
  1138. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1139. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1140. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1141. </Description>';
  1142. type Gain
  1143. ports
  1144. signal in input;
  1145. signal out output [2,1];
  1146. end;
  1147. icon bg bottom
  1148. figures
  1149. rectangle 352.1 392 383.9 424 color 0 fill 15132390;
  1150. text 'K' 368 408 color 16711680 16 bold;
  1151. end;
  1152. implementation eq
  1153. equations
  1154. output = [0;-g_n] * input;
  1155. implementation_end;
  1156. I 248 520
  1157. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1158. <LibraryPath>Bond Graph\2D\I-2.emx</LibraryPath>
  1159. <TimeStamp>2007-9-25 12:7:37</TimeStamp>
  1160. </Description>';
  1161. type 'I-2'
  1162. ports
  1163. power in p [2,1];
  1164. signal out state [2,1];
  1165. signal in mass {kg} ;
  1166. restrictions
  1167. causality preferred in p;
  1168. end;
  1169. icon bg bottom
  1170. figures
  1171. text 'I' 248 520 color 0 18 bold;
  1172. end;
  1173. implementation eq
  1174. equations
  1175. state = int(p.e);
  1176. p.f = inverse ([mass,0;0,mass]) * state;
  1177. implementation_end;
  1178. plug p 304 468;
  1179. plug mass 208 408;
  1180. OneJunction2 304 520
  1181. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1182. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1183. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  1184. </Description>';
  1185. knot OneJunction
  1186. ports
  1187. power knot duplicatable none p [2,1];
  1188. signal knot out flow [2,1];
  1189. restrictions
  1190. causality constraint one_out p;
  1191. end;
  1192. icon bg
  1193. figures
  1194. text '1' 304 520 color 0 18 bold;
  1195. end;
  1196. implementation eq
  1197. equations
  1198. sum (direct (p.e)) = 0;
  1199. equal (collect (p.f));
  1200. flow = first (p.f);
  1201. implementation_end;
  1202. Sg 368 520
  1203. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1204. <LibraryPath>Bond Graph\2D\MSe-2.emx</LibraryPath>
  1205. <TimeStamp>2007-9-25 12:7:58</TimeStamp>
  1206. </Description>';
  1207. type 'MSe-2'
  1208. ports
  1209. power out p [2,1];
  1210. signal in effort [2,1];
  1211. restrictions
  1212. causality fixed out p;
  1213. end;
  1214. icon bg bottom
  1215. figures
  1216. text 'MSe' 368 520 color 0 18 bold;
  1217. end;
  1218. implementation eq
  1219. variables
  1220. real flow[2];
  1221. equations
  1222. p.e = effort;
  1223. flow = p.f;
  1224. implementation_end;
  1225. Splitter1 248 408
  1226. description '<Description><Version>4.0</Version>
  1227. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1228. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1229. <IsMainModel>1</IsMainModel>
  1230. <KeepParameterValues>False</KeepParameterValues>
  1231. </Description>';
  1232. knot Splitter
  1233. ports
  1234. signal knot duplicatable out output [1];
  1235. signal knot in input [1];
  1236. end;
  1237. icon bg ellipse
  1238. figures
  1239. ellipse 244.8 404.8 251.2 411.2 color -1 fill 0;
  1240. ellipse 243.7 403.7 252.3 412.3 color -1;
  1241. terminals
  1242. input 248 408 fixed;
  1243. end;
  1244. implementation eq
  1245. equations
  1246. collect (output) = input;
  1247. implementation_end;
  1248. end;
  1249. connections
  1250. Gain\output -> Sg\effort;
  1251. I\p <= OneJunction2\p;
  1252. mass -> Splitter1\input;
  1253. p => OneJunction2\p;
  1254. Sg\p => OneJunction2\p;
  1255. Splitter1\output -> Gain\input;
  1256. Splitter1\output -> I\mass;
  1257. end;
  1258. implementation_end;
  1259. Constant 920 584
  1260. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1261. <LibraryPath>Signal\Sources\Constant.emx</LibraryPath>
  1262. <TimeStamp>2007-10-19 14:48:44</TimeStamp>
  1263. </Description>';
  1264. type Constant
  1265. ports
  1266. signal out output;
  1267. end;
  1268. icon bg bottom
  1269. figures
  1270. rectangle 904.1 568 935.9 600 color 0 fill 15132390;
  1271. line 908.9 579.6 930.9 579.6 color 16711680 width 2;
  1272. line 906.2 590.7 931.9 590.7 color 0;
  1273. line 908.5 574.7 908.5 593 color 0;
  1274. end;
  1275. implementation eq
  1276. parameters
  1277. real C = 0.015 {kg}; // output value
  1278. equations
  1279. output = C;
  1280. implementation_end;
  1281. I 432 176
  1282. description '<Information>
  1283. <Description>
  1284. <Version>4.2</Version>
  1285. <IsMainModel>1</IsMainModel>
  1286. <KeepParameterValues>False</KeepParameterValues>
  1287. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  1288. <TimeStamp>2011-11-29 15:55:55</TimeStamp>
  1289. </Description>
  1290. </Information>';
  1291. type I
  1292. ports
  1293. power in p;
  1294. signal out state;
  1295. signal in i;
  1296. restrictions
  1297. causality preferred in p;
  1298. end;
  1299. icon bg bottom
  1300. figures
  1301. text 'I' 432 176 color 0 18 bold;
  1302. end;
  1303. implementation eq
  1304. equations
  1305. state = int(p.e);
  1306. p.f = state / i;
  1307. implementation_end;
  1308. I1 824 176
  1309. description '<Information>
  1310. <Description>
  1311. <Version>4.2</Version>
  1312. <IsMainModel>1</IsMainModel>
  1313. <KeepParameterValues>False</KeepParameterValues>
  1314. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  1315. <TimeStamp>2011-11-29 15:55:55</TimeStamp>
  1316. </Description>
  1317. </Information>';
  1318. type I
  1319. ports
  1320. power in p;
  1321. signal out state;
  1322. signal in i;
  1323. restrictions
  1324. causality preferred in p;
  1325. end;
  1326. icon bg bottom
  1327. figures
  1328. text 'I' 824 176 color 0 18 bold;
  1329. end;
  1330. implementation eq
  1331. equations
  1332. state = int(p.e);
  1333. p.f = state / i;
  1334. implementation_end;
  1335. Integrate 1040 512
  1336. description '<Information>
  1337. <Description>
  1338. <Version>4.3</Version>
  1339. <IsMainModel>1</IsMainModel>
  1340. <KeepParameterValues>False</KeepParameterValues>
  1341. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1342. <TimeStamp>2013-3-8 14:47:42</TimeStamp>
  1343. </Description>
  1344. </Information>';
  1345. type Integrate
  1346. ports
  1347. signal in input [2,1];
  1348. signal out output [2,1];
  1349. end;
  1350. icon bg bottom
  1351. figures
  1352. rectangle 1024 496 1056 528 color 0 fill 15132390;
  1353. text '∫' 1040 512.3 color 16711680 'Lucida Sans' 21 italic;
  1354. end;
  1355. implementation eq
  1356. parameters
  1357. real initial[2] = [0.115;0]; // initial value
  1358. equations
  1359. output = int (input, initial);
  1360. implementation_end;
  1361. Integrate1 712 192
  1362. description '<Information>
  1363. <Description>
  1364. <Version>4.3</Version>
  1365. <IsMainModel>1</IsMainModel>
  1366. <KeepParameterValues>False</KeepParameterValues>
  1367. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1368. <TimeStamp>2013-3-8 14:47:42</TimeStamp>
  1369. </Description>
  1370. </Information>';
  1371. type Integrate
  1372. ports
  1373. signal in input;
  1374. signal out output;
  1375. end;
  1376. icon bg bottom
  1377. figures
  1378. rectangle 696 176 728 208 color 0 fill 15132390;
  1379. text '∫' 712 192.3 color 16711680 'Lucida Sans' 21 italic;
  1380. end;
  1381. implementation eq
  1382. parameters
  1383. real initial = 0; // initial value
  1384. equations
  1385. output = int (input, initial);
  1386. implementation_end;
  1387. inverse_kinematics 304 32
  1388. description '<Information>
  1389. <Description>
  1390. <Version>4.8</Version>
  1391. <LibraryPath>SCARA\inverse_kinematics_v1.emx</LibraryPath>
  1392. <IsMainModel>1</IsMainModel>
  1393. <KeepParameterValues>False</KeepParameterValues>
  1394. <TimeStamp>2020-7-10 12:26:18</TimeStamp>
  1395. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1396. </Description>
  1397. </Information>';
  1398. type 'Submodel-Equation'
  1399. ports
  1400. signal in input [2,1] {m} ;
  1401. signal out angle1 {rad} ;
  1402. signal out angle2 {rad} ;
  1403. signal out a {rad} ;
  1404. signal out b {rad} ;
  1405. signal out c {rad} ;
  1406. signal out phi {rad} ;
  1407. end;
  1408. implementation eq
  1409. parameters
  1410. real A_length = 0.065 {m}; // length of first arm
  1411. real B_length = 0.05 {m}; // length of second arm
  1412. real to_rad = 1 {rad};
  1413. variables
  1414. real x {m}, y {m};
  1415. real C_length {m}; // length to x and y.
  1416. real angle_sum {rad}; // test angle
  1417. equations
  1418. x = input[1];
  1419. y = input[2];
  1420. phi = atan2(y, x);
  1421. C_length = sqrt(x^2 + y^2);
  1422. a = arccos ((B_length^2 + C_length^2 - A_length^2) / (2 * B_length * C_length));
  1423. b = arccos ((A_length^2 + C_length^2 - B_length^2) / (2 * A_length * C_length));
  1424. c = arccos ((A_length^2 + B_length^2 - C_length^2) / (2 * A_length * B_length));
  1425. angle1 = b + phi;
  1426. angle2 = angle1 - pi * to_rad + c;
  1427. implementation_end;
  1428. inverse_kinematics1 392 864
  1429. description '<Information>
  1430. <Description>
  1431. <Version>4.8</Version>
  1432. <LibraryPath>SCARA\inverse_kinematics_v1.emx</LibraryPath>
  1433. <IsMainModel>1</IsMainModel>
  1434. <KeepParameterValues>False</KeepParameterValues>
  1435. <TimeStamp>2020-7-10 12:26:18</TimeStamp>
  1436. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1437. </Description>
  1438. </Information>';
  1439. type 'Submodel-Equation'
  1440. ports
  1441. signal in input [2,1] {m} ;
  1442. signal out angle1 {rad} ;
  1443. signal out angle2 {rad} ;
  1444. signal out a {rad} ;
  1445. signal out b {rad} ;
  1446. signal out c {rad} ;
  1447. signal out phi {rad} ;
  1448. signal out abs_angle2;
  1449. end;
  1450. implementation eq
  1451. parameters
  1452. real A_length = 0.065 {m}; // length of first arm
  1453. real B_length = 0.05 {m}; // length of second arm
  1454. real to_rad = 1 {rad};
  1455. variables
  1456. real x {m}, y {m};
  1457. real C_length {m}; // length to x and y.
  1458. real angle_sum {rad}; // test angle
  1459. equations
  1460. x = input[1];
  1461. y = input[2];
  1462. phi = atan2(y, x);
  1463. C_length = sqrt(x^2 + y^2);
  1464. a = arccos ((B_length^2 + C_length^2 - A_length^2) / (2 * B_length * C_length));
  1465. b = arccos ((A_length^2 + C_length^2 - B_length^2) / (2 * A_length * C_length));
  1466. c = arccos ((A_length^2 + B_length^2 - C_length^2) / (2 * A_length * B_length));
  1467. angle1 = b + phi;
  1468. abs_angle2 = angle1 - pi * to_rad + c;
  1469. angle2 = c - pi * to_rad;
  1470. implementation_end;
  1471. Joint1 208.1 678
  1472. description '<Information>
  1473. <Description>
  1474. <Version>4.8</Version>
  1475. <IsMainModel>1</IsMainModel>
  1476. <KeepParameterValues>False</KeepParameterValues>
  1477. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1478. <LibraryPath>Bond Graph\MR\joint-v2.emx</LibraryPath>
  1479. <TimeStamp>2020-7-17 16:52:13</TimeStamp>
  1480. </Description>
  1481. </Information>';
  1482. type 'Submodel-rotz'
  1483. ports
  1484. power out p [6,1];
  1485. power in p1;
  1486. power in p2 [6,1];
  1487. signal in Hin [4,4];
  1488. signal out Hout [4,4];
  1489. signal out q;
  1490. end;
  1491. icon bg bottom
  1492. figures
  1493. rectangle 176.2 640 240 716 color 0 fill 14745599;
  1494. text 'Joint' 208 672 color 0;
  1495. terminals
  1496. p 176 656 fixed;
  1497. p1 208 640 fixed;
  1498. p2 240 656 fixed;
  1499. Hin 176 704 fixed;
  1500. Hout 240 704 fixed;
  1501. end;
  1502. implementation bg
  1503. submodels
  1504. AdHji 424 424
  1505. description '<Description>
  1506. <Version>4.0</Version>
  1507. <IsMainModel>1</IsMainModel>
  1508. <KeepParameterValues>False</KeepParameterValues>
  1509. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1510. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1511. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1512. </Description>';
  1513. type MTF
  1514. ports
  1515. power out p1 [6,1];
  1516. power in p2 [6,1];
  1517. signal in H [4,4];
  1518. restrictions
  1519. causality constraint not_equal p1 p2;
  1520. end;
  1521. icon bg bottom
  1522. figures
  1523. text 'MTF' 424 424 color 0 18 bold;
  1524. end;
  1525. implementation eq
  1526. equations
  1527. p2.e = transpose(Adjoint(H)) * p1.e;
  1528. p1.f = Adjoint(H) * p2.f;implementation_end;
  1529. JointType 240 312
  1530. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate></Description><Attributes><GlobalRelations>parameters
  1531. real joint = 1;
  1532. real initial = 0;</GlobalRelations></Attributes></Information>';
  1533. type Submodel
  1534. ports
  1535. mechanical in p1;
  1536. signal out output [4,4];
  1537. power out p2 [6,1];
  1538. signal out q;
  1539. end;
  1540. implementation bg
  1541. submodels
  1542. Integrate 320 272
  1543. description '<Description>
  1544. <Version>4.0</Version>
  1545. <IsMainModel>1</IsMainModel>
  1546. <KeepParameterValues>False</KeepParameterValues>
  1547. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1548. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  1549. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1550. </Description>';
  1551. type Integrate
  1552. ports
  1553. signal in input;
  1554. signal out output [4,4];
  1555. signal out q;
  1556. end;
  1557. icon bg
  1558. figures
  1559. rectangle 304 256 336 288 color 0 fill 15132390;
  1560. text 'ò' 320 269.3 color 16711680 'SymbolProp BT' 21 symbol;
  1561. end;
  1562. implementation eq
  1563. parameters
  1564. real global joint;
  1565. real global initial;
  1566. variables
  1567. real R[3,3];
  1568. real p[3];
  1569. real qa[6];
  1570. real temp [4,4];
  1571. initialequations
  1572. qa = 0;
  1573. equations
  1574. -q = int(input,initial);
  1575. qa[joint] = q;
  1576. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',qa);
  1577. output = homogeneous(R,qa[4:6]);implementation_end;
  1578. plug p1 240 188;
  1579. plug output 320 416;
  1580. plug p2 240 412;
  1581. plug q 320 184;
  1582. OneJunction2 240 271.9
  1583. description '<Information>
  1584. <Description>
  1585. <Version>4.2</Version>
  1586. <IsMainModel>1</IsMainModel>
  1587. <KeepParameterValues>False</KeepParameterValues>
  1588. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  1589. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  1590. </Description>
  1591. </Information>';
  1592. knot FlowSensor
  1593. ports
  1594. mechanical knot in p1 [1];
  1595. mechanical knot out p2 [1];
  1596. signal knot out flow [1];
  1597. restrictions
  1598. causality constraint not_equal p1 p2;
  1599. end;
  1600. icon bg ellipse
  1601. figures
  1602. ellipse 233.1 264.8 246.9 279.1 color 0 fill 16777215;
  1603. text 'f' 240 271.2 color 0;
  1604. end;
  1605. implementation eq
  1606. equations
  1607. p2.f = p1.f;
  1608. p1.e = p2.e;
  1609. flow = p1.f;
  1610. implementation_end;
  1611. uTbai 240 312
  1612. description '<Description>
  1613. <Version>4.0</Version>
  1614. <IsMainModel>1</IsMainModel>
  1615. <KeepParameterValues>False</KeepParameterValues>
  1616. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  1617. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  1618. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1619. </Description>';
  1620. type TF
  1621. ports
  1622. power in p1;
  1623. power out p2 [6,1];
  1624. restrictions
  1625. causality constraint not_equal p1 p2;
  1626. causality fixed in p1;
  1627. causality fixed out p2;
  1628. parameters
  1629. real Cconstraint = 1.0e-4;
  1630. real Rconstraint = 1000.0;
  1631. end;
  1632. icon bg left
  1633. figures
  1634. text 'TF' 240 312 color 0 18 bold;
  1635. end;
  1636. implementation eq
  1637. parameters
  1638. real global joint;
  1639. variables
  1640. real i;
  1641. real state[6];
  1642. equations
  1643. state = int(p2.f);
  1644. for i = 1 to 6 do
  1645. if i == joint then
  1646. p1.f = p2.f[i];
  1647. p2.e[i] = p1.e;
  1648. else
  1649. p2.e[i] = (Rconstraint*-p2.f[i] + -state[i]/Cconstraint);
  1650. end;
  1651. end;
  1652. implementation_end;
  1653. end;
  1654. connections
  1655. Integrate\output -> output;
  1656. Integrate\q -> q;
  1657. OneJunction2\flow -> Integrate\input;
  1658. OneJunction2\p2 => uTbai\p1;
  1659. p1 => OneJunction2\p1;
  1660. uTbai\p2 => p2;
  1661. end;
  1662. implementation_end;
  1663. MatrixMul 320 576
  1664. description '<Description>
  1665. <Version>4.0</Version>
  1666. <IsMainModel>1</IsMainModel>
  1667. <KeepParameterValues>False</KeepParameterValues>
  1668. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1669. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1670. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1671. </Description>';
  1672. type Gain
  1673. ports
  1674. signal in input1 [4,4];
  1675. signal out output [4,4];
  1676. signal in input2 [4,4];
  1677. end;
  1678. icon bg bottom
  1679. figures
  1680. rectangle 304.1 560 335.9 592 color 0 fill 15132390;
  1681. text 'X' 320 576 color 16711680 16 bold;
  1682. end;
  1683. implementation eq
  1684. equations
  1685. output = input2*input1; implementation_end;
  1686. plug p 112 424;
  1687. plug p1 240 40;
  1688. plug p2 496 424;
  1689. plug Hin 112 576;
  1690. plug Hout 504 576;
  1691. plug q 112 312;
  1692. Splitter2 320 312
  1693. description '<Description><Version>4.0</Version>
  1694. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1695. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1696. <IsMainModel>1</IsMainModel>
  1697. <KeepParameterValues>False</KeepParameterValues>
  1698. </Description>';
  1699. knot Splitter
  1700. ports
  1701. signal knot duplicatable out output [4,4];
  1702. signal knot in input [4,4];
  1703. end;
  1704. icon bg ellipse
  1705. figures
  1706. ellipse 316.8 308.8 323.2 315.2 color -1 fill 0;
  1707. ellipse 315.7 307.7 324.3 316.3 color -1;
  1708. terminals
  1709. input 320 312 fixed;
  1710. end;
  1711. implementation eq
  1712. equations
  1713. collect (output) = input;
  1714. implementation_end;
  1715. Wbai 240 424
  1716. description '<Description>
  1717. <Version>4.0</Version>
  1718. <IsMainModel>1</IsMainModel>
  1719. <KeepParameterValues>False</KeepParameterValues>
  1720. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  1721. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  1722. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1723. </Description>';
  1724. knot ZeroJunction
  1725. ports
  1726. power knot duplicatable none p [6,1];
  1727. signal knot out effort [6,1];
  1728. restrictions
  1729. causality constraint one_in p;
  1730. end;
  1731. icon bg bottom
  1732. figures
  1733. text '0' 240 424 color 0 18 bold;
  1734. end;
  1735. implementation eq
  1736. equations
  1737. sum (direct (p.f)) = 0;
  1738. equal (collect (p.e));
  1739. effort = first (p.e);
  1740. implementation_end;
  1741. end;
  1742. connections
  1743. Hin -> MatrixMul\input2;
  1744. JointType\output -> Splitter2\input;
  1745. JointType\p1 <= p1;
  1746. JointType\p2 => Wbai\p;
  1747. JointType\q -> q;
  1748. MatrixMul\output -> Hout;
  1749. p <= Wbai\p;
  1750. p2 => AdHji\p2;
  1751. Splitter2\output -> AdHji\H 424 312;
  1752. Splitter2\output -> MatrixMul\input1;
  1753. Wbai\p <= AdHji\p1;
  1754. end;
  1755. parameterrelations
  1756. EndstopMin\Rendstop = Rendstop;
  1757. EndstopMin\Cendstop = Cendstop;
  1758. EndstopMin\InitialPos = InitialPos;
  1759. EndstopMin\EndstopPos = MinEndstopPos;
  1760. EndstopMax\Rendstop = Rendstop;
  1761. EndstopMax\Cendstop = Cendstop;
  1762. EndstopMax\InitialPos = InitialPos;
  1763. EndstopMax\EndstopPos = MaxEndstopPos;
  1764. Rjoint\Rjoint= Rjoint;
  1765. Integrate\init = InitialPos;
  1766. uTbai\Rconstraint = Rconstraint;
  1767. uTbai\Cconstraint = Cconstraint;
  1768. parameterrelations_end;
  1769. figures
  1770. text 'b = next link (body)
  1771. a = previous link (body)
  1772. i = Frame fixed in previous body, fixed in joint
  1773. j = Frame fixed in next body, fixed in joint
  1774. ' 680 488 color 0;
  1775. implementation_end;
  1776. Joint2 560.1 678
  1777. description '<Information>
  1778. <Description>
  1779. <Version>4.8</Version>
  1780. <IsMainModel>1</IsMainModel>
  1781. <KeepParameterValues>False</KeepParameterValues>
  1782. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1783. <LibraryPath>Bond Graph\MR\joint-v2.emx</LibraryPath>
  1784. <TimeStamp>2020-7-17 16:52:13</TimeStamp>
  1785. </Description>
  1786. </Information>';
  1787. type 'Submodel-rotz'
  1788. ports
  1789. power out p [6,1];
  1790. power in p1;
  1791. power in p2 [6,1];
  1792. signal in Hin [4,4];
  1793. signal out Hout [4,4];
  1794. signal out q;
  1795. end;
  1796. icon bg bottom
  1797. figures
  1798. rectangle 528.2 640 592 716 color 0 fill 14745599;
  1799. text 'Joint' 560 672 color 0;
  1800. terminals
  1801. p 528 656 fixed;
  1802. p1 560 640 fixed;
  1803. p2 592 656 fixed;
  1804. Hin 528 704 fixed;
  1805. Hout 592 704 fixed;
  1806. end;
  1807. implementation bg
  1808. submodels
  1809. AdHji 424 424
  1810. description '<Description>
  1811. <Version>4.0</Version>
  1812. <IsMainModel>1</IsMainModel>
  1813. <KeepParameterValues>False</KeepParameterValues>
  1814. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1815. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1816. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1817. </Description>';
  1818. type MTF
  1819. ports
  1820. power out p1 [6,1];
  1821. power in p2 [6,1];
  1822. signal in H [4,4];
  1823. restrictions
  1824. causality constraint not_equal p1 p2;
  1825. end;
  1826. icon bg bottom
  1827. figures
  1828. text 'MTF' 424 424 color 0 18 bold;
  1829. end;
  1830. implementation eq
  1831. equations
  1832. p2.e = transpose(Adjoint(H)) * p1.e;
  1833. p1.f = Adjoint(H) * p2.f;implementation_end;
  1834. JointType 240 312
  1835. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate></Description><Attributes><GlobalRelations>parameters
  1836. real joint = 1;
  1837. real initial = 0;</GlobalRelations></Attributes></Information>';
  1838. type Submodel
  1839. ports
  1840. mechanical in p1;
  1841. signal out output [4,4];
  1842. power out p2 [6,1];
  1843. signal out q;
  1844. end;
  1845. implementation bg
  1846. submodels
  1847. Integrate 320 272
  1848. description '<Description>
  1849. <Version>4.0</Version>
  1850. <IsMainModel>1</IsMainModel>
  1851. <KeepParameterValues>False</KeepParameterValues>
  1852. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1853. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  1854. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1855. </Description>';
  1856. type Integrate
  1857. ports
  1858. signal in input;
  1859. signal out output [4,4];
  1860. signal out q;
  1861. end;
  1862. icon bg
  1863. figures
  1864. rectangle 304 256 336 288 color 0 fill 15132390;
  1865. text 'ò' 320 269.3 color 16711680 'SymbolProp BT' 21 symbol;
  1866. end;
  1867. implementation eq
  1868. parameters
  1869. real global joint;
  1870. real global initial;
  1871. variables
  1872. real R[3,3];
  1873. real p[3];
  1874. real qa[6];
  1875. real temp [4,4];
  1876. initialequations
  1877. qa = 0;
  1878. equations
  1879. -q = int(input,initial);
  1880. qa[joint] = q;
  1881. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',qa);
  1882. output = homogeneous(R,qa[4:6]);implementation_end;
  1883. plug p1 240 188;
  1884. plug output 320 416;
  1885. plug p2 240 412;
  1886. plug q 320 184;
  1887. OneJunction2 240 271.9
  1888. description '<Information>
  1889. <Description>
  1890. <Version>4.2</Version>
  1891. <IsMainModel>1</IsMainModel>
  1892. <KeepParameterValues>False</KeepParameterValues>
  1893. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  1894. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  1895. </Description>
  1896. </Information>';
  1897. knot FlowSensor
  1898. ports
  1899. mechanical knot in p1 [1];
  1900. mechanical knot out p2 [1];
  1901. signal knot out flow [1];
  1902. restrictions
  1903. causality constraint not_equal p1 p2;
  1904. end;
  1905. icon bg ellipse
  1906. figures
  1907. ellipse 233.1 264.8 246.9 279.1 color 0 fill 16777215;
  1908. text 'f' 240 271.2 color 0;
  1909. end;
  1910. implementation eq
  1911. equations
  1912. p2.f = p1.f;
  1913. p1.e = p2.e;
  1914. flow = p1.f;
  1915. implementation_end;
  1916. uTbai 240 328
  1917. description '<Description>
  1918. <Version>4.0</Version>
  1919. <IsMainModel>1</IsMainModel>
  1920. <KeepParameterValues>False</KeepParameterValues>
  1921. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  1922. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  1923. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1924. </Description>';
  1925. type TF
  1926. ports
  1927. power in p1;
  1928. power out p2 [6,1];
  1929. restrictions
  1930. causality constraint not_equal p1 p2;
  1931. causality fixed in p1;
  1932. causality fixed out p2;
  1933. parameters
  1934. real Cconstraint = 1.0e-4;
  1935. real Rconstraint = 1000.0;
  1936. end;
  1937. icon bg left
  1938. figures
  1939. text 'TF' 240 328 color 0 18 bold;
  1940. end;
  1941. implementation eq
  1942. parameters
  1943. real global joint;
  1944. variables
  1945. real i;
  1946. real state[6];
  1947. equations
  1948. state = int(p2.f);
  1949. for i = 1 to 6 do
  1950. if i == joint then
  1951. p1.f = p2.f[i];
  1952. p2.e[i] = p1.e;
  1953. else
  1954. p2.e[i] = (Rconstraint*-p2.f[i] + -state[i]/Cconstraint);
  1955. end;
  1956. end;
  1957. implementation_end;
  1958. end;
  1959. connections
  1960. Integrate\output -> output;
  1961. Integrate\q -> q;
  1962. OneJunction2\flow -> Integrate\input;
  1963. OneJunction2\p2 => uTbai\p1;
  1964. p1 => OneJunction2\p1;
  1965. uTbai\p2 => p2;
  1966. end;
  1967. implementation_end;
  1968. MatrixMul 320 576
  1969. description '<Description>
  1970. <Version>4.0</Version>
  1971. <IsMainModel>1</IsMainModel>
  1972. <KeepParameterValues>False</KeepParameterValues>
  1973. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1974. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1975. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1976. </Description>';
  1977. type Gain
  1978. ports
  1979. signal in input1 [4,4];
  1980. signal out output [4,4];
  1981. signal in input2 [4,4];
  1982. end;
  1983. icon bg bottom
  1984. figures
  1985. rectangle 304.1 560 335.9 592 color 0 fill 15132390;
  1986. text 'X' 320 576 color 16711680 16 bold;
  1987. end;
  1988. implementation eq
  1989. equations
  1990. output = input2*input1; implementation_end;
  1991. plug p 112 424;
  1992. plug p1 240 40;
  1993. plug p2 496 424;
  1994. plug Hin 112 576;
  1995. plug Hout 504 576;
  1996. plug q 112 312;
  1997. Splitter2 320 312
  1998. description '<Description><Version>4.0</Version>
  1999. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2000. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2001. <IsMainModel>1</IsMainModel>
  2002. <KeepParameterValues>False</KeepParameterValues>
  2003. </Description>';
  2004. knot Splitter
  2005. ports
  2006. signal knot duplicatable out output [4,4];
  2007. signal knot in input [4,4];
  2008. end;
  2009. icon bg ellipse
  2010. figures
  2011. ellipse 316.8 308.8 323.2 315.2 color -1 fill 0;
  2012. ellipse 315.7 307.7 324.3 316.3 color -1;
  2013. terminals
  2014. input 320 312 fixed;
  2015. end;
  2016. implementation eq
  2017. equations
  2018. collect (output) = input;
  2019. implementation_end;
  2020. Wbai 240 424
  2021. description '<Description>
  2022. <Version>4.0</Version>
  2023. <IsMainModel>1</IsMainModel>
  2024. <KeepParameterValues>False</KeepParameterValues>
  2025. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2026. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2027. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2028. </Description>';
  2029. knot ZeroJunction
  2030. ports
  2031. power knot duplicatable none p [6,1];
  2032. signal knot out effort [6,1];
  2033. restrictions
  2034. causality constraint one_in p;
  2035. end;
  2036. icon bg bottom
  2037. figures
  2038. text '0' 240 424 color 0 18 bold;
  2039. end;
  2040. implementation eq
  2041. equations
  2042. sum (direct (p.f)) = 0;
  2043. equal (collect (p.e));
  2044. effort = first (p.e);
  2045. implementation_end;
  2046. end;
  2047. connections
  2048. Hin -> MatrixMul\input2;
  2049. JointType\output -> Splitter2\input;
  2050. JointType\p1 <= p1;
  2051. JointType\p2 => Wbai\p;
  2052. JointType\q -> q;
  2053. MatrixMul\output -> Hout;
  2054. p <= Wbai\p;
  2055. p2 => AdHji\p2;
  2056. Splitter2\output -> AdHji\H 424 312;
  2057. Splitter2\output -> MatrixMul\input1;
  2058. Wbai\p <= AdHji\p1;
  2059. end;
  2060. parameterrelations
  2061. EndstopMin\Rendstop = Rendstop;
  2062. EndstopMin\Cendstop = Cendstop;
  2063. EndstopMin\InitialPos = InitialPos;
  2064. EndstopMin\EndstopPos = MinEndstopPos;
  2065. EndstopMax\Rendstop = Rendstop;
  2066. EndstopMax\Cendstop = Cendstop;
  2067. EndstopMax\InitialPos = InitialPos;
  2068. EndstopMax\EndstopPos = MaxEndstopPos;
  2069. Rjoint\Rjoint= Rjoint;
  2070. Integrate\init = InitialPos;
  2071. uTbai\Rconstraint = Rconstraint;
  2072. uTbai\Cconstraint = Cconstraint;
  2073. parameterrelations_end;
  2074. figures
  2075. text 'b = next link (body)
  2076. a = previous link (body)
  2077. i = Frame fixed in previous body, fixed in joint
  2078. j = Frame fixed in next body, fixed in joint
  2079. ' 680 488 color 0;
  2080. implementation_end;
  2081. Link 288 680
  2082. description '<Information>
  2083. <Description>
  2084. <Version>4.8</Version>
  2085. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2086. <IsMainModel>1</IsMainModel>
  2087. <KeepParameterValues>False</KeepParameterValues>
  2088. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2089. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2090. </Description>
  2091. </Information>';
  2092. type 'Submodel-Equation'
  2093. ports
  2094. signal in Hin [4,4];
  2095. signal out Hout [4,4];
  2096. power in Pin [6,1];
  2097. power out Pout [6,1];
  2098. restrictions
  2099. causality constraint not_equal Pin Pout;
  2100. end;
  2101. icon bg bottom
  2102. figures
  2103. rectangle 256 640 320 720 color 0 fill 8454041;
  2104. text 'name' 288 664 color 0 'Clear Sans' 16;
  2105. terminals
  2106. Hin 256 704 fixed;
  2107. Hout 320 704 fixed;
  2108. Pin 320 656 fixed;
  2109. Pout 256 656 fixed;
  2110. end;
  2111. implementation eq
  2112. parameters
  2113. real offset[3]= [0; 0.0325; 0]; //coordinates of joint_1
  2114. variables
  2115. real Hab[4,4];
  2116. real AdHab[6,6];
  2117. equations
  2118. Hab = homogeneous(eye(3),offset);
  2119. AdHab = Adjoint(eye(3),offset);
  2120. Hout = Hin * Hab;
  2121. Pout.e = transpose(AdHab) * Pin.e;
  2122. Pin.f = AdHab * Pout.f;
  2123. implementation_end;
  2124. Link1 480 680
  2125. description '<Information>
  2126. <Description>
  2127. <Version>4.8</Version>
  2128. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2129. <IsMainModel>1</IsMainModel>
  2130. <KeepParameterValues>False</KeepParameterValues>
  2131. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2132. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2133. </Description>
  2134. </Information>';
  2135. type 'Submodel-Equation'
  2136. ports
  2137. signal in Hin [4,4];
  2138. signal out Hout [4,4];
  2139. power in Pin [6,1];
  2140. power out Pout [6,1];
  2141. restrictions
  2142. causality constraint not_equal Pin Pout;
  2143. end;
  2144. icon bg bottom
  2145. figures
  2146. rectangle 448 640 512 720 color 0 fill 8454041;
  2147. text 'name' 480 664 color 0 'Clear Sans' 16;
  2148. terminals
  2149. Hin 448 704 fixed;
  2150. Hout 512 704 fixed;
  2151. Pin 512 656 fixed;
  2152. Pout 448 656 fixed;
  2153. end;
  2154. implementation eq
  2155. parameters
  2156. real offset[3]= [0; 0.0325; 0]; //coordinates of joint_1
  2157. variables
  2158. real Hab[4,4];
  2159. real AdHab[6,6];
  2160. equations
  2161. Hab = homogeneous(eye(3),offset);
  2162. AdHab = Adjoint(eye(3),offset);
  2163. Hout = Hin * Hab;
  2164. Pout.e = transpose(AdHab) * Pin.e;
  2165. Pin.f = AdHab * Pout.f;
  2166. implementation_end;
  2167. Link2 640 680
  2168. description '<Information>
  2169. <Description>
  2170. <Version>4.8</Version>
  2171. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2172. <IsMainModel>1</IsMainModel>
  2173. <KeepParameterValues>False</KeepParameterValues>
  2174. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2175. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2176. </Description>
  2177. </Information>';
  2178. type 'Submodel-Equation'
  2179. ports
  2180. signal in Hin [4,4];
  2181. signal out Hout [4,4];
  2182. power in Pin [6,1];
  2183. power out Pout [6,1];
  2184. restrictions
  2185. causality constraint not_equal Pin Pout;
  2186. end;
  2187. icon bg bottom
  2188. figures
  2189. rectangle 608 640 672 720 color 0 fill 8454041;
  2190. text 'name' 640 664 color 0 'Clear Sans' 16;
  2191. terminals
  2192. Hin 608 704 fixed;
  2193. Hout 672 704 fixed;
  2194. Pin 672 656 fixed;
  2195. Pout 608 656 fixed;
  2196. end;
  2197. implementation eq
  2198. parameters
  2199. real offset[3]= [0; 0.025; 0]; //coordinates of joint_1
  2200. variables
  2201. real Hab[4,4];
  2202. real AdHab[6,6];
  2203. equations
  2204. Hab = homogeneous(eye(3),offset);
  2205. AdHab = Adjoint(eye(3),offset);
  2206. Hout = Hin * Hab;
  2207. Pout.e = transpose(AdHab) * Pin.e;
  2208. Pin.f = AdHab * Pout.f;
  2209. implementation_end;
  2210. Link3 832 680
  2211. description '<Information>
  2212. <Description>
  2213. <Version>4.8</Version>
  2214. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2215. <IsMainModel>1</IsMainModel>
  2216. <KeepParameterValues>False</KeepParameterValues>
  2217. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2218. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2219. </Description>
  2220. </Information>';
  2221. type 'Submodel-Equation'
  2222. ports
  2223. signal in Hin [4,4];
  2224. signal out Hout [4,4];
  2225. power in Pin [6,1];
  2226. power out Pout [6,1];
  2227. restrictions
  2228. causality constraint not_equal Pin Pout;
  2229. end;
  2230. icon bg bottom
  2231. figures
  2232. rectangle 800 640 864 720 color 0 fill 8454041;
  2233. text 'name' 832 664 color 0 'Clear Sans' 16;
  2234. terminals
  2235. Hin 800 704 fixed;
  2236. Hout 864 704 fixed;
  2237. Pin 864 656 fixed;
  2238. Pout 800 656 fixed;
  2239. end;
  2240. implementation eq
  2241. parameters
  2242. real offset[3]= [0; 0.025; 0]; //coordinates of joint_1
  2243. variables
  2244. real Hab[4,4];
  2245. real AdHab[6,6];
  2246. equations
  2247. Hab = homogeneous(eye(3),offset);
  2248. AdHab = Adjoint(eye(3),offset);
  2249. Hout = Hin * Hab;
  2250. Pout.e = transpose(AdHab) * Pin.e;
  2251. Pin.f = AdHab * Pout.f;
  2252. implementation_end;
  2253. MXTF 352.3 288
  2254. description '<Information>
  2255. <Description>
  2256. <Version>4.8</Version>
  2257. <IsMainModel>1</IsMainModel>
  2258. <KeepParameterValues>False</KeepParameterValues>
  2259. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\2D\MXTF-2.emx</LibraryPath>
  2260. <TimeStamp>2020-7-14 17:06:13</TimeStamp>
  2261. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2262. </Description>
  2263. </Information>';
  2264. type 'TF-2'
  2265. ports
  2266. power in p1;
  2267. power out p2 [2,1];
  2268. signal in p [2,1];
  2269. restrictions
  2270. causality constraint not_equal p1 p2;
  2271. causality fixed in p2;
  2272. causality fixed out p1;
  2273. end;
  2274. icon bg bottom
  2275. figures
  2276. text 'MXTF' 352.3 288 color 0 18 bold;
  2277. end;
  2278. implementation eq
  2279. variables
  2280. real r[2];
  2281. equations
  2282. r = [-p[2];p[1]];
  2283. p1.e = transpose (r) * p2.e;
  2284. p2.f = r * p1.f;implementation_end;
  2285. Negate1 224 800
  2286. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2287. <LibraryPath>Signal\Block Diagram\Negate.emx</LibraryPath>
  2288. <TimeStamp>2007-9-26 12:14:11</TimeStamp>
  2289. </Description>';
  2290. type Negate
  2291. ports
  2292. signal in input;
  2293. signal out output;
  2294. end;
  2295. icon bg bottom
  2296. figures
  2297. rectangle 208 784 240 816 color 0 fill 15132390;
  2298. text '-1' 224 800 color 16711680 16 bold;
  2299. end;
  2300. implementation eq
  2301. equations
  2302. output = - input;
  2303. implementation_end;
  2304. Negate2 592 800
  2305. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2306. <LibraryPath>Signal\Block Diagram\Negate.emx</LibraryPath>
  2307. <TimeStamp>2007-9-26 12:14:11</TimeStamp>
  2308. </Description>';
  2309. type Negate
  2310. ports
  2311. signal in input;
  2312. signal out output;
  2313. end;
  2314. icon bg bottom
  2315. figures
  2316. rectangle 576 784 608 816 color 0 fill 15132390;
  2317. text '-1' 592 800 color 16711680 16 bold;
  2318. end;
  2319. implementation eq
  2320. equations
  2321. output = - input;
  2322. implementation_end;
  2323. new_joint1 424 768
  2324. description '<Description><Version>4.0</Version>
  2325. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  2326. <IsMainModel>1</IsMainModel>
  2327. <KeepParameterValues>False</KeepParameterValues>
  2328. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  2329. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2330. </Description>';
  2331. type 'Submodel-Equation'
  2332. ports
  2333. signal in input [4,4];
  2334. signal out output;
  2335. end;
  2336. implementation eq
  2337. variables
  2338. real position[3];
  2339. real rotation[3];
  2340. real R[3,3];
  2341. equations
  2342. position = input[1:3,4];
  2343. rotation = dll('EulerAngles.dll','EulXYZsFromHMatrix',input);
  2344. //[input[3,2];input[1,3];input[2,1]];
  2345. R = input[1:3,1:3];implementation_end;
  2346. new_joint2 776 768
  2347. description '<Description><Version>4.0</Version>
  2348. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  2349. <IsMainModel>1</IsMainModel>
  2350. <KeepParameterValues>False</KeepParameterValues>
  2351. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  2352. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2353. </Description>';
  2354. type 'Submodel-Equation'
  2355. ports
  2356. signal in input [4,4];
  2357. signal out output;
  2358. end;
  2359. implementation eq
  2360. variables
  2361. real position[3];
  2362. real rotation[3];
  2363. real R[3,3];
  2364. equations
  2365. // start typing here
  2366. position = input[1:3,4];
  2367. rotation = [input[3,2];input[1,3];input[2,1]];
  2368. R = input[1:3,1:3];implementation_end;
  2369. new_joint3 1040 704
  2370. description '<Description><Version>4.0</Version>
  2371. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  2372. <IsMainModel>1</IsMainModel>
  2373. <KeepParameterValues>False</KeepParameterValues>
  2374. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  2375. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2376. </Description>';
  2377. type 'Submodel-Equation'
  2378. ports
  2379. signal in input [4,4];
  2380. signal out output;
  2381. end;
  2382. implementation eq
  2383. variables
  2384. real position[3];
  2385. real rotation[3];
  2386. real R[3,3];
  2387. equations
  2388. position = input[1:3,4];
  2389. rotation = [input[3,2];input[1,3];input[2,1]];
  2390. R = input[1:3,1:3];implementation_end;
  2391. OneJunction 424 368
  2392. description '<Information>
  2393. <Description>
  2394. <Version>4.2</Version>
  2395. <IsMainModel>1</IsMainModel>
  2396. <KeepParameterValues>False</KeepParameterValues>
  2397. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2398. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2399. </Description>
  2400. </Information>';
  2401. knot OneJunction
  2402. ports
  2403. power knot duplicatable none p [2,1];
  2404. signal knot out flow [2,1];
  2405. restrictions
  2406. causality constraint one_out p;
  2407. end;
  2408. icon bg
  2409. figures
  2410. text '1' 424 368 color 0 18 bold;
  2411. end;
  2412. implementation eq
  2413. equations
  2414. sum (direct (p.e)) = 0;
  2415. equal (collect (p.f));
  2416. flow = first (p.f);
  2417. implementation_end;
  2418. OneJunction1 424 520
  2419. description '<Information>
  2420. <Description>
  2421. <Version>4.2</Version>
  2422. <IsMainModel>1</IsMainModel>
  2423. <KeepParameterValues>False</KeepParameterValues>
  2424. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2425. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2426. </Description>
  2427. </Information>';
  2428. knot OneJunction
  2429. ports
  2430. translation knot duplicatable none p [2,1];
  2431. signal knot out flow [2,1];
  2432. restrictions
  2433. causality constraint one_out p;
  2434. end;
  2435. icon bg
  2436. figures
  2437. text '1' 424 520 color 0 18 bold;
  2438. end;
  2439. implementation eq
  2440. equations
  2441. sum (direct (p.e)) = 0;
  2442. equal (collect (p.f));
  2443. flow = first (p.f);
  2444. implementation_end;
  2445. OneJunction10 824 232
  2446. description '<Information>
  2447. <Description>
  2448. <Version>4.2</Version>
  2449. <IsMainModel>1</IsMainModel>
  2450. <KeepParameterValues>False</KeepParameterValues>
  2451. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2452. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2453. </Description>
  2454. </Information>';
  2455. knot OneJunction
  2456. ports
  2457. rotation knot duplicatable none p [1];
  2458. signal knot out flow [1];
  2459. restrictions
  2460. causality constraint one_out p;
  2461. end;
  2462. icon bg
  2463. figures
  2464. text '1' 824 232 color 0 18 bold;
  2465. end;
  2466. implementation eq
  2467. equations
  2468. sum (direct (p.e)) = 0;
  2469. equal (collect (p.f));
  2470. flow = first (p.f);
  2471. implementation_end;
  2472. OneJunction11 984 512
  2473. description '<Information>
  2474. <Description>
  2475. <Version>4.2</Version>
  2476. <IsMainModel>1</IsMainModel>
  2477. <KeepParameterValues>False</KeepParameterValues>
  2478. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2479. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2480. </Description>
  2481. </Information>';
  2482. knot OneJunction
  2483. ports
  2484. power knot duplicatable none p [2,1];
  2485. signal knot out flow [2,1];
  2486. restrictions
  2487. causality constraint one_out p;
  2488. end;
  2489. icon bg
  2490. figures
  2491. text '1' 984 512 color 0 18 bold;
  2492. end;
  2493. implementation eq
  2494. equations
  2495. sum (direct (p.e)) = 0;
  2496. equal (collect (p.f));
  2497. flow = first (p.f);
  2498. implementation_end;
  2499. OneJunction12 704 368
  2500. description '<Information>
  2501. <Description>
  2502. <Version>4.2</Version>
  2503. <IsMainModel>1</IsMainModel>
  2504. <KeepParameterValues>False</KeepParameterValues>
  2505. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2506. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2507. </Description>
  2508. </Information>';
  2509. knot OneJunction
  2510. ports
  2511. power knot duplicatable none p [2,1];
  2512. signal knot out flow [2,1];
  2513. restrictions
  2514. causality constraint one_out p;
  2515. end;
  2516. icon bg
  2517. figures
  2518. text '1' 704 368 color 0 18 bold;
  2519. end;
  2520. implementation eq
  2521. equations
  2522. sum (direct (p.e)) = 0;
  2523. equal (collect (p.f));
  2524. flow = first (p.f);
  2525. implementation_end;
  2526. OneJunction16 624 200
  2527. description '<Information>
  2528. <Description>
  2529. <Version>4.2</Version>
  2530. <IsMainModel>1</IsMainModel>
  2531. <KeepParameterValues>False</KeepParameterValues>
  2532. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2533. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2534. </Description>
  2535. </Information>';
  2536. knot OneJunction
  2537. ports
  2538. rotation knot duplicatable none p [1];
  2539. signal knot out flow [1];
  2540. restrictions
  2541. causality constraint one_out p;
  2542. end;
  2543. icon bg
  2544. figures
  2545. text '1' 624 200 color 0 18 bold;
  2546. end;
  2547. implementation eq
  2548. equations
  2549. sum (direct (p.e)) = 0;
  2550. equal (collect (p.f));
  2551. flow = first (p.f);
  2552. implementation_end;
  2553. OneJunction17 560 752
  2554. description '<Information>
  2555. <Description>
  2556. <Version>4.2</Version>
  2557. <IsMainModel>1</IsMainModel>
  2558. <KeepParameterValues>False</KeepParameterValues>
  2559. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2560. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2561. </Description>
  2562. </Information>';
  2563. knot OneJunction
  2564. ports
  2565. power knot duplicatable none p [1];
  2566. signal knot out flow [1];
  2567. restrictions
  2568. causality constraint one_out p;
  2569. end;
  2570. icon bg
  2571. figures
  2572. text '1' 560 752 color 0 18 bold;
  2573. end;
  2574. implementation eq
  2575. equations
  2576. sum (direct (p.e)) = 0;
  2577. equal (collect (p.f));
  2578. flow = first (p.f);
  2579. implementation_end;
  2580. OneJunction18 248 208
  2581. description '<Information>
  2582. <Description>
  2583. <Version>4.2</Version>
  2584. <IsMainModel>1</IsMainModel>
  2585. <KeepParameterValues>False</KeepParameterValues>
  2586. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2587. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2588. </Description>
  2589. </Information>';
  2590. knot OneJunction
  2591. ports
  2592. rotation knot duplicatable none p [1];
  2593. signal knot out flow [1];
  2594. restrictions
  2595. causality constraint one_out p;
  2596. end;
  2597. icon bg
  2598. figures
  2599. text '1' 248 208 color 0 18 bold;
  2600. end;
  2601. implementation eq
  2602. equations
  2603. sum (direct (p.e)) = 0;
  2604. equal (collect (p.f));
  2605. flow = first (p.f);
  2606. implementation_end;
  2607. OneJunction2 128 656
  2608. description '<Information>
  2609. <Description>
  2610. <Version>4.2</Version>
  2611. <IsMainModel>1</IsMainModel>
  2612. <KeepParameterValues>False</KeepParameterValues>
  2613. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2614. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2615. </Description>
  2616. </Information>';
  2617. knot OneJunction
  2618. ports
  2619. power knot duplicatable none p [6,1];
  2620. signal knot out flow [6,1];
  2621. restrictions
  2622. causality constraint one_out p;
  2623. end;
  2624. icon bg
  2625. figures
  2626. text '1' 128 656 color 0 18 bold;
  2627. end;
  2628. implementation eq
  2629. equations
  2630. sum (direct (p.e)) = 0;
  2631. equal (collect (p.f));
  2632. flow = first (p.f);
  2633. implementation_end;
  2634. OneJunction3 432 232
  2635. description '<Information>
  2636. <Description>
  2637. <Version>4.2</Version>
  2638. <IsMainModel>1</IsMainModel>
  2639. <KeepParameterValues>False</KeepParameterValues>
  2640. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2641. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2642. </Description>
  2643. </Information>';
  2644. knot OneJunction
  2645. ports
  2646. rotation knot duplicatable none p [1];
  2647. signal knot out flow [1];
  2648. restrictions
  2649. causality constraint one_out p;
  2650. end;
  2651. icon bg
  2652. figures
  2653. text '1' 432 232 color 0 18 bold;
  2654. end;
  2655. implementation eq
  2656. equations
  2657. sum (direct (p.e)) = 0;
  2658. equal (collect (p.f));
  2659. flow = first (p.f);
  2660. implementation_end;
  2661. OneJunction5 272.3 368
  2662. description '<Information>
  2663. <Description>
  2664. <Version>4.2</Version>
  2665. <IsMainModel>1</IsMainModel>
  2666. <KeepParameterValues>False</KeepParameterValues>
  2667. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2668. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2669. </Description>
  2670. </Information>';
  2671. knot OneJunction
  2672. ports
  2673. power knot duplicatable none p [2,1];
  2674. signal knot out flow [2,1];
  2675. restrictions
  2676. causality constraint one_out p;
  2677. end;
  2678. icon bg
  2679. figures
  2680. text '1' 272.3 368 color 0 18 bold;
  2681. end;
  2682. implementation eq
  2683. equations
  2684. sum (direct (p.e)) = 0;
  2685. equal (collect (p.f));
  2686. flow = first (p.f);
  2687. implementation_end;
  2688. OneJunction6 272 520
  2689. description '<Information>
  2690. <Description>
  2691. <Version>4.2</Version>
  2692. <IsMainModel>1</IsMainModel>
  2693. <KeepParameterValues>False</KeepParameterValues>
  2694. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2695. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2696. </Description>
  2697. </Information>';
  2698. knot OneJunction
  2699. ports
  2700. power knot duplicatable none p [2,1];
  2701. signal knot out flow [2,1];
  2702. restrictions
  2703. causality constraint one_out p;
  2704. end;
  2705. icon bg
  2706. figures
  2707. text '1' 272 520 color 0 18 bold;
  2708. end;
  2709. implementation eq
  2710. equations
  2711. sum (direct (p.e)) = 0;
  2712. equal (collect (p.f));
  2713. flow = first (p.f);
  2714. implementation_end;
  2715. OneJunction7 824 368
  2716. description '<Information>
  2717. <Description>
  2718. <Version>4.2</Version>
  2719. <IsMainModel>1</IsMainModel>
  2720. <KeepParameterValues>False</KeepParameterValues>
  2721. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2722. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2723. </Description>
  2724. </Information>';
  2725. knot OneJunction
  2726. ports
  2727. power knot duplicatable none p [2,1];
  2728. signal knot out flow [2,1];
  2729. restrictions
  2730. causality constraint one_out p;
  2731. end;
  2732. icon bg
  2733. figures
  2734. text '1' 824 368 color 0 18 bold;
  2735. end;
  2736. implementation eq
  2737. equations
  2738. sum (direct (p.e)) = 0;
  2739. equal (collect (p.f));
  2740. flow = first (p.f);
  2741. implementation_end;
  2742. OneJunction8 824 520
  2743. description '<Information>
  2744. <Description>
  2745. <Version>4.2</Version>
  2746. <IsMainModel>1</IsMainModel>
  2747. <KeepParameterValues>False</KeepParameterValues>
  2748. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2749. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2750. </Description>
  2751. </Information>';
  2752. knot OneJunction
  2753. ports
  2754. power knot duplicatable none p [2,1];
  2755. signal knot out flow [2,1];
  2756. restrictions
  2757. causality constraint one_out p;
  2758. end;
  2759. icon bg
  2760. figures
  2761. text '1' 824 520 color 0 18 bold;
  2762. end;
  2763. implementation eq
  2764. equations
  2765. sum (direct (p.e)) = 0;
  2766. equal (collect (p.f));
  2767. flow = first (p.f);
  2768. implementation_end;
  2769. OneJunction9 984 368
  2770. description '<Information>
  2771. <Description>
  2772. <Version>4.2</Version>
  2773. <IsMainModel>1</IsMainModel>
  2774. <KeepParameterValues>False</KeepParameterValues>
  2775. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2776. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2777. </Description>
  2778. </Information>';
  2779. knot OneJunction
  2780. ports
  2781. power knot duplicatable none p [2,1];
  2782. signal knot out flow [2,1];
  2783. restrictions
  2784. causality constraint one_out p;
  2785. end;
  2786. icon bg
  2787. figures
  2788. text '1' 984 368 color 0 18 bold;
  2789. end;
  2790. implementation eq
  2791. equations
  2792. sum (direct (p.e)) = 0;
  2793. equal (collect (p.f));
  2794. flow = first (p.f);
  2795. implementation_end;
  2796. PID 248 88
  2797. description '<Description>
  2798. <Version>4.0</Version>
  2799. <IsMainModel>1</IsMainModel>
  2800. <KeepParameterValues>False</KeepParameterValues>
  2801. <LibraryPath>Signal\Control\PID Control\Continuous\PID.emx</LibraryPath>
  2802. <TimeStamp>2008-1-17 10:49:30</TimeStamp>
  2803. </Description>';
  2804. type PID
  2805. ports
  2806. signal in error;
  2807. signal out output;
  2808. end;
  2809. icon bg bottom
  2810. figures
  2811. rectangle 232 72 264 104 color 0 fill 15132390;
  2812. text 'PID' 248 87.5 color 16711680 18 bold;
  2813. end;
  2814. implementation eq
  2815. parameters
  2816. real kp = 0.05 {}; // Proportional gain
  2817. real tauD = 1.0 {s}; // Derivative time constant: tauD > 0
  2818. real beta = 0.001 {}; // Tameness constant: 0 < beta << 1
  2819. real tauI = 0.05{s}; // Integral time constant: tauI > 0
  2820. variables
  2821. real pdout, pdrate, pdstate;
  2822. real pirate, pistate;
  2823. equations
  2824. pdrate = (kp * error - pdout) / (beta * tauD);
  2825. pdstate = int (pdrate);
  2826. pdout = pdstate + (kp * error / beta);
  2827. pirate = pdout / tauI;
  2828. pistate = int (pirate);
  2829. output = pistate + pdout;
  2830. implementation_end;
  2831. PID1 624 88
  2832. description '<Description>
  2833. <Version>4.0</Version>
  2834. <IsMainModel>1</IsMainModel>
  2835. <KeepParameterValues>False</KeepParameterValues>
  2836. <LibraryPath>Signal\Control\PID Control\Continuous\PID.emx</LibraryPath>
  2837. <TimeStamp>2008-1-17 10:49:30</TimeStamp>
  2838. </Description>';
  2839. type PID
  2840. ports
  2841. signal in error;
  2842. signal out output;
  2843. end;
  2844. icon bg bottom
  2845. figures
  2846. rectangle 608 72 640 104 color 0 fill 15132390;
  2847. text 'PID' 624 87.5 color 16711680 18 bold;
  2848. end;
  2849. implementation eq
  2850. parameters
  2851. real kp = 0.02 {}; // Proportional gain
  2852. real tauD = 1.0 {s}; // Derivative time constant: tauD > 0
  2853. real beta = 0.001 {}; // Tameness constant: 0 < beta << 1
  2854. real tauI = 0.05 {s}; // Integral time constant: tauI > 0
  2855. variables
  2856. real pdout, pdrate, pdstate;
  2857. real pirate, pistate;
  2858. equations
  2859. pdrate = (kp * error - pdout) / (beta * tauD);
  2860. pdstate = int (pdrate);
  2861. pdout = pdstate + (kp * error / beta);
  2862. pirate = pdout / tauI;
  2863. pistate = int (pirate);
  2864. output = pistate + pdout;
  2865. implementation_end;
  2866. PID2 280 800
  2867. description '<Description>
  2868. <Version>4.0</Version>
  2869. <IsMainModel>1</IsMainModel>
  2870. <KeepParameterValues>False</KeepParameterValues>
  2871. <LibraryPath>Signal\Control\PID Control\Continuous\PID.emx</LibraryPath>
  2872. <TimeStamp>2008-1-17 10:49:30</TimeStamp>
  2873. </Description>';
  2874. type PID
  2875. ports
  2876. signal in error;
  2877. signal out output;
  2878. end;
  2879. icon bg bottom
  2880. figures
  2881. rectangle 264 784 296 816 color 0 fill 15132390;
  2882. text 'PID' 280 799.5 color 16711680 18 bold;
  2883. end;
  2884. implementation eq
  2885. parameters
  2886. real kp = 0.05 {}; // Proportional gain
  2887. real tauD = 1.0 {s}; // Derivative time constant: tauD > 0
  2888. real beta = 0.001 {}; // Tameness constant: 0 < beta << 1
  2889. real tauI = 0.05{s}; // Integral time constant: tauI > 0
  2890. variables
  2891. real pdout, pdrate, pdstate;
  2892. real pirate, pistate;
  2893. equations
  2894. pdrate = (kp * error - pdout) / (beta * tauD);
  2895. pdstate = int (pdrate);
  2896. pdout = pdstate + (kp * error / beta);
  2897. pirate = pdout / tauI;
  2898. pistate = int (pirate);
  2899. output = pistate + pdout;
  2900. implementation_end;
  2901. PID3 640 800
  2902. description '<Description>
  2903. <Version>4.0</Version>
  2904. <IsMainModel>1</IsMainModel>
  2905. <KeepParameterValues>False</KeepParameterValues>
  2906. <LibraryPath>Signal\Control\PID Control\Continuous\PID.emx</LibraryPath>
  2907. <TimeStamp>2008-1-17 10:49:30</TimeStamp>
  2908. </Description>';
  2909. type PID
  2910. ports
  2911. signal in error;
  2912. signal out output;
  2913. end;
  2914. icon bg bottom
  2915. figures
  2916. rectangle 624 784 656 816 color 0 fill 15132390;
  2917. text 'PID' 640 799.5 color 16711680 18 bold;
  2918. end;
  2919. implementation eq
  2920. parameters
  2921. real kp = 0.02 {}; // Proportional gain
  2922. real tauD = 1.0 {s}; // Derivative time constant: tauD > 0
  2923. real beta = 0.001 {}; // Tameness constant: 0 < beta << 1
  2924. real tauI = 0.05 {s}; // Integral time constant: tauI > 0
  2925. variables
  2926. real pdout, pdrate, pdstate;
  2927. real pirate, pistate;
  2928. equations
  2929. pdrate = (kp * error - pdout) / (beta * tauD);
  2930. pdstate = int (pdrate);
  2931. pdout = pdstate + (kp * error / beta);
  2932. pirate = pdout / tauI;
  2933. pistate = int (pirate);
  2934. output = pistate + pdout;
  2935. implementation_end;
  2936. PlusMinus1 584 400
  2937. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2938. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  2939. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  2940. </Description>';
  2941. knot PlusMinus
  2942. ports
  2943. signal knot duplicatable in plus [1];
  2944. signal knot duplicatable in minus [1];
  2945. signal knot out output [1];
  2946. end;
  2947. icon bg ellipse
  2948. figures
  2949. ellipse 576 392 592 408 color 0 fill 16777215;
  2950. end;
  2951. implementation eq
  2952. equations
  2953. output = sum (collect (plus)) - sum (collect (minus));
  2954. implementation_end;
  2955. PlusMinus2 304 88
  2956. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2957. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  2958. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  2959. </Description>';
  2960. knot PlusMinus
  2961. ports
  2962. signal knot duplicatable in plus [1];
  2963. signal knot duplicatable in minus [1];
  2964. signal knot out output [1];
  2965. end;
  2966. icon bg ellipse
  2967. figures
  2968. ellipse 296 80 312 96 color 0 fill 16777215;
  2969. end;
  2970. implementation eq
  2971. equations
  2972. output = sum (collect (plus)) - sum (collect (minus));
  2973. implementation_end;
  2974. PlusMinus3 552 88
  2975. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2976. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  2977. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  2978. </Description>';
  2979. knot PlusMinus
  2980. ports
  2981. signal knot duplicatable in plus [1];
  2982. signal knot duplicatable in minus [1];
  2983. signal knot out output [1];
  2984. end;
  2985. icon bg ellipse
  2986. figures
  2987. ellipse 544 80 560 96 color 0 fill 16777215;
  2988. end;
  2989. implementation eq
  2990. equations
  2991. output = sum (collect (plus)) - sum (collect (minus));
  2992. implementation_end;
  2993. PlusMinus4 328 800
  2994. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2995. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  2996. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  2997. </Description>';
  2998. knot PlusMinus
  2999. ports
  3000. signal knot duplicatable in plus [1];
  3001. signal knot duplicatable in minus [1];
  3002. signal knot out output [1];
  3003. end;
  3004. icon bg ellipse
  3005. figures
  3006. ellipse 320 792 336 808 color 0 fill 16777215;
  3007. end;
  3008. implementation eq
  3009. equations
  3010. output = sum (collect (plus)) - sum (collect (minus));
  3011. implementation_end;
  3012. PlusMinus5 688 800
  3013. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3014. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  3015. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  3016. </Description>';
  3017. knot PlusMinus
  3018. ports
  3019. signal knot duplicatable in plus [1];
  3020. signal knot duplicatable in minus [1];
  3021. signal knot out output [1];
  3022. end;
  3023. icon bg ellipse
  3024. figures
  3025. ellipse 680 792 696 808 color 0 fill 16777215;
  3026. end;
  3027. implementation eq
  3028. equations
  3029. output = sum (collect (plus)) - sum (collect (minus));
  3030. implementation_end;
  3031. R 240 752
  3032. description '<Information>
  3033. <Description>
  3034. <Version>4.2</Version>
  3035. <IsMainModel>1</IsMainModel>
  3036. <KeepParameterValues>False</KeepParameterValues>
  3037. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3038. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3039. </Description>
  3040. </Information>';
  3041. type R
  3042. ports
  3043. power in p;
  3044. end;
  3045. icon bg bottom
  3046. figures
  3047. text 'R' 240 752 color 0 18 bold;
  3048. end;
  3049. implementation eq
  3050. parameters
  3051. real r = 0.01;
  3052. equations
  3053. p.e = r * p.f;
  3054. implementation_end;
  3055. R1 592 752
  3056. description '<Information>
  3057. <Description>
  3058. <Version>4.2</Version>
  3059. <IsMainModel>1</IsMainModel>
  3060. <KeepParameterValues>False</KeepParameterValues>
  3061. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3062. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3063. </Description>
  3064. </Information>';
  3065. type R
  3066. ports
  3067. power in p;
  3068. end;
  3069. icon bg bottom
  3070. figures
  3071. text 'R' 592 752 color 0 18 bold;
  3072. end;
  3073. implementation eq
  3074. parameters
  3075. real r = 0.01;
  3076. equations
  3077. p.e = r * p.f;
  3078. implementation_end;
  3079. R2 200 208
  3080. description '<Information>
  3081. <Description>
  3082. <Version>4.2</Version>
  3083. <IsMainModel>1</IsMainModel>
  3084. <KeepParameterValues>False</KeepParameterValues>
  3085. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3086. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3087. </Description>
  3088. </Information>';
  3089. type R
  3090. ports
  3091. power in p;
  3092. end;
  3093. icon bg bottom
  3094. figures
  3095. text 'R' 200 208 color 0 18 bold;
  3096. end;
  3097. implementation eq
  3098. parameters
  3099. real r = 0.01;
  3100. equations
  3101. p.e = r * p.f;
  3102. implementation_end;
  3103. R3 584 200
  3104. description '<Information>
  3105. <Description>
  3106. <Version>4.2</Version>
  3107. <IsMainModel>1</IsMainModel>
  3108. <KeepParameterValues>False</KeepParameterValues>
  3109. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3110. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3111. </Description>
  3112. </Information>';
  3113. type R
  3114. ports
  3115. power in p;
  3116. end;
  3117. icon bg bottom
  3118. figures
  3119. text 'R' 584 200 color 0 18 bold;
  3120. end;
  3121. implementation eq
  3122. parameters
  3123. real r = 0.01;
  3124. equations
  3125. p.e = r * p.f;
  3126. implementation_end;
  3127. rectanglepath 64 32
  3128. description '<Information>
  3129. <Description>
  3130. <Version>4.8</Version>
  3131. <LibraryPath>setpoint\rectanglepath.emx</LibraryPath>
  3132. <IsMainModel>1</IsMainModel>
  3133. <KeepParameterValues>False</KeepParameterValues>
  3134. <TimeStamp>2020-7-10 12:30:38</TimeStamp>
  3135. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3136. </Description>
  3137. </Information>';
  3138. type 'Submodel-Equation'
  3139. ports
  3140. signal out output [2,1];
  3141. end;
  3142. implementation eq
  3143. /*
  3144. This will generate coordinates for the box that has to be drawn
  3145. */
  3146. parameters
  3147. real w = 0.07{m} ;
  3148. real h = 0.05 {m};
  3149. real t = 0.5 {s};
  3150. real origin[2] = [0.01,0.03]{m};
  3151. variables
  3152. real v {m/s};
  3153. real t_w {s};
  3154. real t_h {s};
  3155. real period {s};
  3156. real test1, test2, test3;
  3157. initialequations
  3158. v = (2*w + 2*h)/t;
  3159. t_w = w / v;
  3160. t_h = h / v;
  3161. equations
  3162. period = floor(time / t) * t;
  3163. output[1] = v*(ramp(period+t_h) - ramp(period + t_w+t_h) - ramp(period + t_w + t_h + t_h)) + origin[1];
  3164. output[2] = v*(ramp(period) - ramp(period + t_h) - ramp(period + t_h + t_w) + ramp(period + 2 * t_h + t_w))+ origin[2];
  3165. implementation_end;
  3166. RTF 424 456
  3167. description '<Information>
  3168. <Description>
  3169. <Version>4.8</Version>
  3170. <IsMainModel>1</IsMainModel>
  3171. <KeepParameterValues>False</KeepParameterValues>
  3172. <LibraryPath>Bond Graph\2D\RTF-2.emx</LibraryPath>
  3173. <TimeStamp>2020-7-14 12:43:04</TimeStamp>
  3174. </Description>
  3175. </Information>';
  3176. type 'TF-2'
  3177. ports
  3178. power in p1 [2,1];
  3179. power out p2 [2,1];
  3180. signal in angle {rad} ;
  3181. restrictions
  3182. causality constraint not_equal p1 p2;
  3183. end;
  3184. icon bg bottom
  3185. figures
  3186. text 'RTF' 424 456 color 0 18 bold;
  3187. end;
  3188. implementation eq
  3189. /*
  3190. 2D rotation transformer. Takes an angle as input and then rotates the dimensions
  3191. */
  3192. variables
  3193. real r[2,2];
  3194. equations
  3195. r = [cos(angle), -sin(angle); sin(angle), cos(angle)];
  3196. p1.e = transpose (r) * p2.e;
  3197. p2.f = r * p1.f;
  3198. implementation_end;
  3199. RTF1 584 368
  3200. description '<Information>
  3201. <Description>
  3202. <Version>4.8</Version>
  3203. <IsMainModel>1</IsMainModel>
  3204. <KeepParameterValues>False</KeepParameterValues>
  3205. <LibraryPath>Bond Graph\2D\RTF-2.emx</LibraryPath>
  3206. <TimeStamp>2020-7-14 12:43:04</TimeStamp>
  3207. </Description>
  3208. </Information>';
  3209. type 'TF-2'
  3210. ports
  3211. power in p1 [2,1];
  3212. power out p2 [2,1];
  3213. signal in angle {rad} ;
  3214. restrictions
  3215. causality constraint not_equal p1 p2;
  3216. end;
  3217. icon bg bottom
  3218. figures
  3219. text 'RTF' 584 368 color 0 18 bold;
  3220. end;
  3221. implementation eq
  3222. /*
  3223. 2D rotation transformer. Takes an angle as input and then rotates the dimensions
  3224. */
  3225. variables
  3226. real r[2,2];
  3227. equations
  3228. r = [cos(angle), -sin(angle); sin(angle), cos(angle)];
  3229. p1.e = transpose (r) * p2.e;
  3230. p2.f = r * p1.f;
  3231. implementation_end;
  3232. RTF2 272 432
  3233. description '<Information>
  3234. <Description>
  3235. <Version>4.8</Version>
  3236. <IsMainModel>1</IsMainModel>
  3237. <KeepParameterValues>False</KeepParameterValues>
  3238. <LibraryPath>Bond Graph\2D\RTF-2.emx</LibraryPath>
  3239. <TimeStamp>2020-7-14 12:43:04</TimeStamp>
  3240. </Description>
  3241. </Information>';
  3242. type 'TF-2'
  3243. ports
  3244. power in p1 [2,1];
  3245. power out p2 [2,1];
  3246. signal in angle {rad} ;
  3247. restrictions
  3248. causality constraint not_equal p1 p2;
  3249. end;
  3250. icon bg bottom
  3251. figures
  3252. text 'RTF' 272 432 color 0 18 bold;
  3253. end;
  3254. implementation eq
  3255. /*
  3256. 2D rotation transformer. Takes an angle as input and then rotates the dimensions
  3257. */
  3258. variables
  3259. real r[2,2];
  3260. equations
  3261. r = [cos(angle), -sin(angle); sin(angle), cos(angle)];
  3262. p1.e = transpose (r) * p2.e;
  3263. p2.f = r * p1.f;
  3264. implementation_end;
  3265. RTF3 824 432
  3266. description '<Information>
  3267. <Description>
  3268. <Version>4.8</Version>
  3269. <IsMainModel>1</IsMainModel>
  3270. <KeepParameterValues>False</KeepParameterValues>
  3271. <LibraryPath>Bond Graph\2D\RTF-2.emx</LibraryPath>
  3272. <TimeStamp>2020-7-14 12:43:04</TimeStamp>
  3273. </Description>
  3274. </Information>';
  3275. type 'TF-2'
  3276. ports
  3277. power in p1 [2,1];
  3278. power out p2 [2,1];
  3279. signal in angle {rad} ;
  3280. restrictions
  3281. causality constraint not_equal p1 p2;
  3282. end;
  3283. icon bg bottom
  3284. figures
  3285. text 'RTF' 824 432 color 0 18 bold;
  3286. end;
  3287. implementation eq
  3288. /*
  3289. 2D rotation transformer. Takes an angle as input and then rotates the dimensions
  3290. */
  3291. variables
  3292. real r[2,2];
  3293. equations
  3294. r = [cos(angle), -sin(angle); sin(angle), cos(angle)];
  3295. p1.e = transpose (r) * p2.e;
  3296. p2.f = r * p1.f;
  3297. implementation_end;
  3298. RTF4 984 424
  3299. description '<Information>
  3300. <Description>
  3301. <Version>4.8</Version>
  3302. <IsMainModel>1</IsMainModel>
  3303. <KeepParameterValues>False</KeepParameterValues>
  3304. <LibraryPath>Bond Graph\2D\RTF-2.emx</LibraryPath>
  3305. <TimeStamp>2020-7-14 12:43:04</TimeStamp>
  3306. </Description>
  3307. </Information>';
  3308. type 'TF-2'
  3309. ports
  3310. power in p1 [2,1];
  3311. power out p2 [2,1];
  3312. signal in angle {rad} ;
  3313. restrictions
  3314. causality constraint not_equal p1 p2;
  3315. end;
  3316. icon bg bottom
  3317. figures
  3318. text 'RTF' 984 424 color 0 18 bold;
  3319. end;
  3320. implementation eq
  3321. /*
  3322. 2D rotation transformer. Takes an angle as input and then rotates the dimensions
  3323. */
  3324. variables
  3325. real r[2,2];
  3326. equations
  3327. r = [cos(angle), -sin(angle); sin(angle), cos(angle)];
  3328. p1.e = transpose (r) * p2.e;
  3329. p2.f = r * p1.f;
  3330. implementation_end;
  3331. Se 984 656
  3332. description '<Information>
  3333. <Description>
  3334. <Version>4.2</Version>
  3335. <IsMainModel>1</IsMainModel>
  3336. <KeepParameterValues>False</KeepParameterValues>
  3337. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  3338. <TimeStamp>2011-11-29 16:36:49</TimeStamp>
  3339. </Description>
  3340. </Information>';
  3341. type Se
  3342. ports
  3343. power out p [6,1];
  3344. restrictions
  3345. causality fixed out p;
  3346. end;
  3347. icon bg bottom
  3348. figures
  3349. text 'Se' 984 656 color 0 18 bold;
  3350. end;
  3351. implementation eq
  3352. parameters
  3353. real effort[6] = 0;
  3354. variables
  3355. real flow[6];
  3356. equations
  3357. p.e = effort;
  3358. flow = p.f;
  3359. implementation_end;
  3360. Sf 192 520
  3361. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3362. <LibraryPath>Bond Graph\2D\Sf-2.emx</LibraryPath>
  3363. <TimeStamp>2007-9-25 12:7:5</TimeStamp>
  3364. </Description>';
  3365. type 'Sf-2'
  3366. ports
  3367. power out p [2,1];
  3368. restrictions
  3369. causality fixed in p;
  3370. end;
  3371. icon bg bottom
  3372. figures
  3373. text 'Sf' 192 520 color 0 18 bold;
  3374. end;
  3375. implementation eq
  3376. parameters
  3377. real flow[2,1] = [0.0; 0.0];
  3378. variables
  3379. real effort [2];
  3380. equations
  3381. p.f = flow;
  3382. effort = p.e;
  3383. implementation_end;
  3384. Sf1 152 232
  3385. description '<Information>
  3386. <Description>
  3387. <Version>4.2</Version>
  3388. <IsMainModel>1</IsMainModel>
  3389. <KeepParameterValues>False</KeepParameterValues>
  3390. <LibraryPath>Bond Graph\Sf.emx</LibraryPath>
  3391. <TimeStamp>2011-11-29 16:38:03</TimeStamp>
  3392. </Description>
  3393. </Information>';
  3394. type Sf
  3395. ports
  3396. power out p;
  3397. restrictions
  3398. causality fixed in p;
  3399. end;
  3400. icon bg bottom
  3401. figures
  3402. text 'Sf' 152 232 color 0 18 bold;
  3403. end;
  3404. implementation eq
  3405. parameters
  3406. real flow = 0;
  3407. variables
  3408. real effort;
  3409. equations
  3410. p.f = flow;
  3411. effort = p.e;
  3412. implementation_end;
  3413. Sf2 72 656
  3414. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3415. <LibraryPath>Bond Graph\2D\Sf-2.emx</LibraryPath>
  3416. <TimeStamp>2007-9-25 12:7:5</TimeStamp>
  3417. </Description>';
  3418. type 'Sf-2'
  3419. ports
  3420. power out p [6,1];
  3421. restrictions
  3422. causality fixed in p;
  3423. end;
  3424. icon bg bottom
  3425. figures
  3426. text 'Sf' 72 656 color 0 18 bold;
  3427. end;
  3428. implementation eq
  3429. parameters
  3430. real flow[6,1] = 0;
  3431. variables
  3432. real effort [6];
  3433. equations
  3434. p.f = flow;
  3435. effort = p.e;
  3436. implementation_end;
  3437. Sine 440 24
  3438. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3439. <LibraryPath>Signal\Sources\WaveGenerator-Sine.emx</LibraryPath>
  3440. <TimeStamp>2007-9-27 16:12:6</TimeStamp>
  3441. </Description>';
  3442. type 'WaveGenerator-Sine'
  3443. ports
  3444. signal out output;
  3445. end;
  3446. icon bg bottom
  3447. figures
  3448. group
  3449. rectangle 424 8 456 40 color 0 fill 15132390;
  3450. line 428.5 14.4 428.5 33.6 color 0;
  3451. line 454.1 24 425.3 24 color 0;
  3452. spline 428.9 23.9 432.1 15.8 435.3 23.9 438.6 32 441.7 23.9 444.8 15.8 448.1 23.9 451.6 32.2 454.8 24.2 color 16711680;
  3453. end;
  3454. end;
  3455. implementation eq
  3456. parameters
  3457. real amplitude = 1.0; // amplitude of the wave
  3458. real omega = 1.0 {rad/s}; // angular frequency of the wave
  3459. variables
  3460. boolean hidden change;
  3461. real hidden half;
  3462. equations
  3463. "calculate at least 2 points per cycle to get a triangle"
  3464. half = pi / omega;
  3465. change = frequencyevent (half, half / 2);
  3466. "calculate the sine wave"
  3467. output = amplitude * sin ( omega * time);
  3468. implementation_end;
  3469. Splitter1 384 400
  3470. description '<Description><Version>4.0</Version>
  3471. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3472. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3473. <IsMainModel>1</IsMainModel>
  3474. <KeepParameterValues>False</KeepParameterValues>
  3475. </Description>';
  3476. knot Splitter
  3477. ports
  3478. signal knot duplicatable out output [1];
  3479. signal knot in input [1];
  3480. end;
  3481. icon bg ellipse
  3482. figures
  3483. ellipse 380.8 396.8 387.2 403.2 color -1 fill 0;
  3484. ellipse 379.7 395.7 388.3 404.3 color -1;
  3485. terminals
  3486. input 384 400 fixed;
  3487. end;
  3488. implementation eq
  3489. equations
  3490. collect (output) = input;
  3491. implementation_end;
  3492. Splitter2 800 400
  3493. description '<Description><Version>4.0</Version>
  3494. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3495. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3496. <IsMainModel>1</IsMainModel>
  3497. <KeepParameterValues>False</KeepParameterValues>
  3498. </Description>';
  3499. knot Splitter
  3500. ports
  3501. signal knot duplicatable out output [1];
  3502. signal knot in input [1];
  3503. end;
  3504. icon bg ellipse
  3505. figures
  3506. ellipse 796.8 396.8 803.2 403.2 color -1 fill 0;
  3507. ellipse 795.7 395.7 804.3 404.3 color -1;
  3508. terminals
  3509. input 800 400 fixed;
  3510. end;
  3511. implementation eq
  3512. equations
  3513. collect (output) = input;
  3514. implementation_end;
  3515. Splitter3 304 400
  3516. description '<Description><Version>4.0</Version>
  3517. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3518. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3519. <IsMainModel>1</IsMainModel>
  3520. <KeepParameterValues>False</KeepParameterValues>
  3521. </Description>';
  3522. knot Splitter
  3523. ports
  3524. signal knot duplicatable out output [1];
  3525. signal knot in input [1];
  3526. end;
  3527. icon bg ellipse
  3528. figures
  3529. ellipse 300.8 396.8 307.2 403.2 color -1 fill 0;
  3530. ellipse 299.7 395.7 308.3 404.3 color -1;
  3531. terminals
  3532. input 304 400 fixed;
  3533. end;
  3534. implementation eq
  3535. equations
  3536. collect (output) = input;
  3537. implementation_end;
  3538. Splitter4 632 400
  3539. description '<Description><Version>4.0</Version>
  3540. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3541. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3542. <IsMainModel>1</IsMainModel>
  3543. <KeepParameterValues>False</KeepParameterValues>
  3544. </Description>';
  3545. knot Splitter
  3546. ports
  3547. signal knot duplicatable out output [1];
  3548. signal knot in input [1];
  3549. end;
  3550. icon bg ellipse
  3551. figures
  3552. ellipse 628.8 396.8 635.2 403.2 color -1 fill 0;
  3553. ellipse 627.7 395.7 636.3 404.3 color -1;
  3554. terminals
  3555. input 632 400 fixed;
  3556. end;
  3557. implementation eq
  3558. equations
  3559. collect (output) = input;
  3560. implementation_end;
  3561. Splitter5 776 704
  3562. description '<Description><Version>4.0</Version>
  3563. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3564. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3565. <IsMainModel>1</IsMainModel>
  3566. <KeepParameterValues>False</KeepParameterValues>
  3567. </Description>';
  3568. knot Splitter
  3569. ports
  3570. signal knot duplicatable out output [4,4];
  3571. signal knot in input [4,4];
  3572. end;
  3573. icon bg ellipse
  3574. figures
  3575. ellipse 772.8 700.8 779.2 707.2 color -1 fill 0;
  3576. ellipse 771.7 699.7 780.3 708.3 color -1;
  3577. terminals
  3578. input 776 704 fixed;
  3579. end;
  3580. implementation eq
  3581. equations
  3582. collect (output) = input;
  3583. implementation_end;
  3584. Splitter6 424 704
  3585. description '<Description><Version>4.0</Version>
  3586. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3587. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3588. <IsMainModel>1</IsMainModel>
  3589. <KeepParameterValues>False</KeepParameterValues>
  3590. </Description>';
  3591. knot Splitter
  3592. ports
  3593. signal knot duplicatable out output [4,4];
  3594. signal knot in input [4,4];
  3595. end;
  3596. icon bg ellipse
  3597. figures
  3598. ellipse 420.8 700.8 427.2 707.2 color -1 fill 0;
  3599. ellipse 419.7 699.7 428.3 708.3 color -1;
  3600. terminals
  3601. input 424 704 fixed;
  3602. end;
  3603. implementation eq
  3604. equations
  3605. collect (output) = input;
  3606. implementation_end;
  3607. Splitter7 160 32
  3608. description '<Description><Version>4.0</Version>
  3609. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3610. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3611. <IsMainModel>1</IsMainModel>
  3612. <KeepParameterValues>False</KeepParameterValues>
  3613. </Description>';
  3614. knot Splitter
  3615. ports
  3616. signal knot duplicatable out output [2,1];
  3617. signal knot in input [2,1];
  3618. end;
  3619. icon bg ellipse
  3620. figures
  3621. ellipse 156.8 28.8 163.2 35.2 color -1 fill 0;
  3622. ellipse 155.7 27.7 164.3 36.3 color -1;
  3623. terminals
  3624. input 160 32 fixed;
  3625. end;
  3626. implementation eq
  3627. equations
  3628. collect (output) = input;
  3629. implementation_end;
  3630. Submodel1 248 168
  3631. description '<Description>
  3632. <Version>4.8</Version>
  3633. <IsMainModel>1</IsMainModel>
  3634. </Description>';
  3635. type Submodel
  3636. ports
  3637. signal in input;
  3638. power out p2;
  3639. end;
  3640. implementation bg
  3641. submodels
  3642. Gain1 552 88
  3643. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3644. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3645. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3646. </Description>';
  3647. type Gain
  3648. ports
  3649. signal in input;
  3650. signal out output;
  3651. end;
  3652. icon bg bottom
  3653. figures
  3654. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3655. text 'K' 552 88 color 16711680 16 bold;
  3656. end;
  3657. implementation eq
  3658. parameters
  3659. real K = 12.0; // gain
  3660. equations
  3661. output = K * input;
  3662. implementation_end;
  3663. GY 624 184
  3664. description '<Information>
  3665. <Description>
  3666. <Version>4.2</Version>
  3667. <IsMainModel>1</IsMainModel>
  3668. <KeepParameterValues>False</KeepParameterValues>
  3669. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3670. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3671. </Description>
  3672. </Information>';
  3673. type GY
  3674. ports
  3675. power in p1;
  3676. power out p2;
  3677. restrictions
  3678. causality constraint equal p1 p2;
  3679. end;
  3680. icon bg bottom
  3681. figures
  3682. text 'GY' 624 184 color 0 18 bold;
  3683. end;
  3684. implementation eq
  3685. parameters
  3686. real r = 0.127;
  3687. equations
  3688. p1.e = r * p2.f;
  3689. p2.e = r * p1.f;
  3690. implementation_end;
  3691. MSe 624 88
  3692. description '<Information>
  3693. <Description>
  3694. <Version>4.2</Version>
  3695. <IsMainModel>1</IsMainModel>
  3696. <KeepParameterValues>False</KeepParameterValues>
  3697. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3698. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3699. </Description>
  3700. </Information>';
  3701. type MSe
  3702. ports
  3703. power out p;
  3704. signal in effort;
  3705. restrictions
  3706. causality fixed out p;
  3707. end;
  3708. icon bg bottom
  3709. figures
  3710. text 'MSe' 624 88 color 0 18 bold;
  3711. end;
  3712. implementation eq
  3713. variables
  3714. real flow;
  3715. equations
  3716. p.e = effort;
  3717. flow = p.f;
  3718. implementation_end;
  3719. plug input 424 88;
  3720. plug p2 624 220;
  3721. OneJunction2 624 136
  3722. description '<Information>
  3723. <Description>
  3724. <Version>4.2</Version>
  3725. <IsMainModel>1</IsMainModel>
  3726. <KeepParameterValues>False</KeepParameterValues>
  3727. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3728. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3729. </Description>
  3730. </Information>';
  3731. knot OneJunction
  3732. ports
  3733. power knot duplicatable none p [1];
  3734. signal knot out flow [1];
  3735. restrictions
  3736. causality constraint one_out p;
  3737. end;
  3738. icon bg
  3739. figures
  3740. text '1' 624 136 color 0 18 bold;
  3741. end;
  3742. implementation eq
  3743. equations
  3744. sum (direct (p.e)) = 0;
  3745. equal (collect (p.f));
  3746. flow = first (p.f);
  3747. implementation_end;
  3748. R 664 136
  3749. description '<Information>
  3750. <Description>
  3751. <Version>4.2</Version>
  3752. <IsMainModel>1</IsMainModel>
  3753. <KeepParameterValues>False</KeepParameterValues>
  3754. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3755. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3756. </Description>
  3757. </Information>';
  3758. type R
  3759. ports
  3760. power in p;
  3761. end;
  3762. icon bg bottom
  3763. figures
  3764. text 'R' 664 136 color 0 18 bold;
  3765. end;
  3766. implementation eq
  3767. parameters
  3768. real r = 0.08;
  3769. equations
  3770. p.e = r * p.f;
  3771. implementation_end;
  3772. SignalLimiter2 488 88
  3773. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3774. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  3775. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  3776. </Description>';
  3777. type 'SignalLimiter-Limit'
  3778. ports
  3779. signal in input;
  3780. signal out output;
  3781. end;
  3782. icon bg bottom
  3783. figures
  3784. group
  3785. rectangle 472 72 504 104 color 0 fill 15132390;
  3786. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  3787. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  3788. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  3789. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  3790. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  3791. end;
  3792. end;
  3793. implementation eq
  3794. parameters
  3795. real maximum = 1;
  3796. real minimum = -1;
  3797. equations
  3798. output = limit (input, minimum, maximum);
  3799. implementation_end;
  3800. end;
  3801. connections
  3802. Gain1\output -> MSe\effort;
  3803. GY\p2 => p2;
  3804. input -> SignalLimiter2\input;
  3805. MSe\p => OneJunction2\p;
  3806. OneJunction2\p => GY\p1;
  3807. R\p <= OneJunction2\p;
  3808. SignalLimiter2\output -> Gain1\input;
  3809. end;
  3810. implementation_end;
  3811. Submodel2 144 800
  3812. description '<Description>
  3813. <Version>4.8</Version>
  3814. <IsMainModel>1</IsMainModel>
  3815. </Description>';
  3816. type Submodel
  3817. ports
  3818. signal in input;
  3819. power out p2;
  3820. end;
  3821. implementation bg
  3822. submodels
  3823. Gain1 552 88
  3824. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3825. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3826. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3827. </Description>';
  3828. type Gain
  3829. ports
  3830. signal in input;
  3831. signal out output;
  3832. end;
  3833. icon bg bottom
  3834. figures
  3835. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3836. text 'K' 552 88 color 16711680 16 bold;
  3837. end;
  3838. implementation eq
  3839. parameters
  3840. real K = 12.0; // gain
  3841. equations
  3842. output = K * input;
  3843. implementation_end;
  3844. GY 624 184
  3845. description '<Information>
  3846. <Description>
  3847. <Version>4.2</Version>
  3848. <IsMainModel>1</IsMainModel>
  3849. <KeepParameterValues>False</KeepParameterValues>
  3850. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3851. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3852. </Description>
  3853. </Information>';
  3854. type GY
  3855. ports
  3856. power in p1;
  3857. power out p2;
  3858. restrictions
  3859. causality constraint equal p1 p2;
  3860. end;
  3861. icon bg bottom
  3862. figures
  3863. text 'GY' 624 184 color 0 18 bold;
  3864. end;
  3865. implementation eq
  3866. parameters
  3867. real r = 0.127;
  3868. equations
  3869. p1.e = r * p2.f;
  3870. p2.e = r * p1.f;
  3871. implementation_end;
  3872. MSe 624 88
  3873. description '<Information>
  3874. <Description>
  3875. <Version>4.2</Version>
  3876. <IsMainModel>1</IsMainModel>
  3877. <KeepParameterValues>False</KeepParameterValues>
  3878. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3879. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3880. </Description>
  3881. </Information>';
  3882. type MSe
  3883. ports
  3884. power out p;
  3885. signal in effort;
  3886. restrictions
  3887. causality fixed out p;
  3888. end;
  3889. icon bg bottom
  3890. figures
  3891. text 'MSe' 624 88 color 0 18 bold;
  3892. end;
  3893. implementation eq
  3894. variables
  3895. real flow;
  3896. equations
  3897. p.e = effort;
  3898. flow = p.f;
  3899. implementation_end;
  3900. plug input 424 88;
  3901. plug p2 624 220;
  3902. OneJunction2 624 136
  3903. description '<Information>
  3904. <Description>
  3905. <Version>4.2</Version>
  3906. <IsMainModel>1</IsMainModel>
  3907. <KeepParameterValues>False</KeepParameterValues>
  3908. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3909. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3910. </Description>
  3911. </Information>';
  3912. knot OneJunction
  3913. ports
  3914. power knot duplicatable none p [1];
  3915. signal knot out flow [1];
  3916. restrictions
  3917. causality constraint one_out p;
  3918. end;
  3919. icon bg
  3920. figures
  3921. text '1' 624 136 color 0 18 bold;
  3922. end;
  3923. implementation eq
  3924. equations
  3925. sum (direct (p.e)) = 0;
  3926. equal (collect (p.f));
  3927. flow = first (p.f);
  3928. implementation_end;
  3929. R 664 136
  3930. description '<Information>
  3931. <Description>
  3932. <Version>4.2</Version>
  3933. <IsMainModel>1</IsMainModel>
  3934. <KeepParameterValues>False</KeepParameterValues>
  3935. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3936. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3937. </Description>
  3938. </Information>';
  3939. type R
  3940. ports
  3941. power in p;
  3942. end;
  3943. icon bg bottom
  3944. figures
  3945. text 'R' 664 136 color 0 18 bold;
  3946. end;
  3947. implementation eq
  3948. parameters
  3949. real r = 0.08;
  3950. equations
  3951. p.e = r * p.f;
  3952. implementation_end;
  3953. SignalLimiter2 488 88
  3954. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3955. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  3956. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  3957. </Description>';
  3958. type 'SignalLimiter-Limit'
  3959. ports
  3960. signal in input;
  3961. signal out output;
  3962. end;
  3963. icon bg bottom
  3964. figures
  3965. group
  3966. rectangle 472 72 504 104 color 0 fill 15132390;
  3967. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  3968. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  3969. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  3970. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  3971. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  3972. end;
  3973. end;
  3974. implementation eq
  3975. parameters
  3976. real maximum = 1;
  3977. real minimum = -1;
  3978. equations
  3979. output = limit (input, minimum, maximum);
  3980. implementation_end;
  3981. end;
  3982. connections
  3983. Gain1\output -> MSe\effort;
  3984. GY\p2 => p2;
  3985. input -> SignalLimiter2\input;
  3986. MSe\p => OneJunction2\p;
  3987. OneJunction2\p => GY\p1;
  3988. R\p <= OneJunction2\p;
  3989. SignalLimiter2\output -> Gain1\input;
  3990. end;
  3991. implementation_end;
  3992. Submodel3 352 480
  3993. description '<Description><Version>4.0</Version>
  3994. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3995. <IsMainModel>1</IsMainModel>
  3996. <KeepParameterValues>False</KeepParameterValues>
  3997. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3998. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3999. </Description>';
  4000. type 'Submodel-Equation'
  4001. ports
  4002. signal in angle_velocity {rad/s} ;
  4003. signal out angle {rad} ;
  4004. signal in velocity [2,1] {m/s} ;
  4005. signal out position [2,1] {m} ;
  4006. signal out mass {kg} ;
  4007. signal out angular_momentum {N.m.s} ;
  4008. signal out joint1 [2,1];
  4009. signal out joint2 [2,1];
  4010. end;
  4011. implementation eq
  4012. /* Equation Submodel
  4013. Enter your equations here. You can use the Toolbar buttons at the top ( Add , f(x) etc. ).
  4014. */
  4015. parameters
  4016. real density = 1400 {kg/m3};
  4017. real dimension[3] = [0.005;0.065;0.01] {m};
  4018. real initial_position[2] = [0.0325;0] {m};
  4019. real initial_angle = 0 {rad};
  4020. variables
  4021. real body_angle[3];
  4022. real body_position[3];
  4023. real body_size[3];
  4024. real moment[3];
  4025. initialequations
  4026. mass = dimension[1] * dimension[2] * dimension[3] * density;
  4027. moment[1] = mass/12 * ( dimension[2]^2 + dimension[3]^2);
  4028. moment[2] = mass/12 * ( dimension[1]^2 + dimension[3]^2);
  4029. moment[3] = mass/12 * ( dimension[1]^2 + dimension[2]^2);
  4030. angular_momentum = moment[1];
  4031. equations
  4032. angle = int(angle_velocity,initial_angle);
  4033. body_angle = [angle;0;0];
  4034. position = int(velocity,initial_position);
  4035. body_position = [0; position[1];position[2]];
  4036. joint1=[-dimension[2]/2;0];
  4037. joint2=[dimension[2]/2;0];
  4038. implementation_end;
  4039. Submodel4 744 480
  4040. description '<Description><Version>4.0</Version>
  4041. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  4042. <IsMainModel>1</IsMainModel>
  4043. <KeepParameterValues>False</KeepParameterValues>
  4044. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  4045. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  4046. </Description>';
  4047. type 'Submodel-Equation'
  4048. ports
  4049. signal in angle_velocity {rad/s} ;
  4050. signal out angle {rad} ;
  4051. signal in velocity [2,1] {m/s} ;
  4052. signal out position [2,1] {m} ;
  4053. signal out mass {kg} ;
  4054. signal out angular_momentum {N.m.s} ;
  4055. signal out joint1 [2,1];
  4056. signal out joint2 [2,1];
  4057. end;
  4058. icon bg
  4059. figures
  4060. rectangle 704 464 784 496 color 0 fill 15132390;
  4061. text 'name' 744 480 color 0 16;
  4062. end;
  4063. implementation eq
  4064. /* Equation Submodel
  4065. Enter your equations here. You can use the Toolbar buttons at the top ( Add , f(x) etc. ).
  4066. */
  4067. parameters
  4068. real density = 1400 {kg/m3};
  4069. real dimension[3] = [0.005;0.05;0.01] {m};
  4070. real initial_position[2] = [0.09;0.0] {m};
  4071. real initial_angle = 0.0 {rad};
  4072. variables
  4073. real body_angle[3];
  4074. real body_position[3];
  4075. real body_size[3];
  4076. real moment[3];
  4077. initialequations
  4078. mass = dimension[1] * dimension[2] * dimension[3] * density;
  4079. moment[1] = mass/12 * ( dimension[2]^2 + dimension[3]^2);
  4080. moment[2] = mass/12 * ( dimension[1]^2 + dimension[3]^2);
  4081. moment[3] = mass/12 * ( dimension[1]^2 + dimension[2]^2);
  4082. angular_momentum = moment[1];
  4083. equations
  4084. angle = int(angle_velocity,initial_angle);
  4085. body_angle = [angle;0;0];
  4086. position = int(velocity,initial_position);
  4087. body_position = [0; position[1];position[2]];
  4088. joint1=[-dimension[2]/2;0];
  4089. joint2=[dimension[2]/2;0];implementation_end;
  4090. Submodel5 520 800
  4091. description '<Description>
  4092. <Version>4.8</Version>
  4093. <IsMainModel>1</IsMainModel>
  4094. </Description>';
  4095. type Submodel
  4096. ports
  4097. signal in input;
  4098. power out p2;
  4099. end;
  4100. implementation bg
  4101. submodels
  4102. Gain1 552 88
  4103. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4104. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  4105. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  4106. </Description>';
  4107. type Gain
  4108. ports
  4109. signal in input;
  4110. signal out output;
  4111. end;
  4112. icon bg bottom
  4113. figures
  4114. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  4115. text 'K' 552 88 color 16711680 16 bold;
  4116. end;
  4117. implementation eq
  4118. parameters
  4119. real K = 12.0; // gain
  4120. equations
  4121. output = K * input;
  4122. implementation_end;
  4123. GY 624 184
  4124. description '<Information>
  4125. <Description>
  4126. <Version>4.2</Version>
  4127. <IsMainModel>1</IsMainModel>
  4128. <KeepParameterValues>False</KeepParameterValues>
  4129. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  4130. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  4131. </Description>
  4132. </Information>';
  4133. type GY
  4134. ports
  4135. power in p1;
  4136. power out p2;
  4137. restrictions
  4138. causality constraint equal p1 p2;
  4139. end;
  4140. icon bg bottom
  4141. figures
  4142. text 'GY' 624 184 color 0 18 bold;
  4143. end;
  4144. implementation eq
  4145. parameters
  4146. real r = 0.127;
  4147. equations
  4148. p1.e = r * p2.f;
  4149. p2.e = r * p1.f;
  4150. implementation_end;
  4151. MSe 624 88
  4152. description '<Information>
  4153. <Description>
  4154. <Version>4.2</Version>
  4155. <IsMainModel>1</IsMainModel>
  4156. <KeepParameterValues>False</KeepParameterValues>
  4157. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  4158. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  4159. </Description>
  4160. </Information>';
  4161. type MSe
  4162. ports
  4163. power out p;
  4164. signal in effort;
  4165. restrictions
  4166. causality fixed out p;
  4167. end;
  4168. icon bg bottom
  4169. figures
  4170. text 'MSe' 624 88 color 0 18 bold;
  4171. end;
  4172. implementation eq
  4173. variables
  4174. real flow;
  4175. equations
  4176. p.e = effort;
  4177. flow = p.f;
  4178. implementation_end;
  4179. plug input 424 88;
  4180. plug p2 624 220;
  4181. OneJunction2 624 136
  4182. description '<Information>
  4183. <Description>
  4184. <Version>4.2</Version>
  4185. <IsMainModel>1</IsMainModel>
  4186. <KeepParameterValues>False</KeepParameterValues>
  4187. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  4188. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  4189. </Description>
  4190. </Information>';
  4191. knot OneJunction
  4192. ports
  4193. power knot duplicatable none p [1];
  4194. signal knot out flow [1];
  4195. restrictions
  4196. causality constraint one_out p;
  4197. end;
  4198. icon bg
  4199. figures
  4200. text '1' 624 136 color 0 18 bold;
  4201. end;
  4202. implementation eq
  4203. equations
  4204. sum (direct (p.e)) = 0;
  4205. equal (collect (p.f));
  4206. flow = first (p.f);
  4207. implementation_end;
  4208. R 664 136
  4209. description '<Information>
  4210. <Description>
  4211. <Version>4.2</Version>
  4212. <IsMainModel>1</IsMainModel>
  4213. <KeepParameterValues>False</KeepParameterValues>
  4214. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  4215. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  4216. </Description>
  4217. </Information>';
  4218. type R
  4219. ports
  4220. power in p;
  4221. end;
  4222. icon bg bottom
  4223. figures
  4224. text 'R' 664 136 color 0 18 bold;
  4225. end;
  4226. implementation eq
  4227. parameters
  4228. real r = 0.08;
  4229. equations
  4230. p.e = r * p.f;
  4231. implementation_end;
  4232. SignalLimiter2 488 88
  4233. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4234. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  4235. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  4236. </Description>';
  4237. type 'SignalLimiter-Limit'
  4238. ports
  4239. signal in input;
  4240. signal out output;
  4241. end;
  4242. icon bg bottom
  4243. figures
  4244. group
  4245. rectangle 472 72 504 104 color 0 fill 15132390;
  4246. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  4247. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  4248. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  4249. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  4250. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  4251. end;
  4252. end;
  4253. implementation eq
  4254. parameters
  4255. real maximum = 1;
  4256. real minimum = -1;
  4257. equations
  4258. output = limit (input, minimum, maximum);
  4259. implementation_end;
  4260. end;
  4261. connections
  4262. Gain1\output -> MSe\effort;
  4263. GY\p2 => p2;
  4264. input -> SignalLimiter2\input;
  4265. MSe\p => OneJunction2\p;
  4266. OneJunction2\p => GY\p1;
  4267. R\p <= OneJunction2\p;
  4268. SignalLimiter2\output -> Gain1\input;
  4269. end;
  4270. implementation_end;
  4271. Submodel8 624 160
  4272. description '<Description>
  4273. <Version>4.8</Version>
  4274. <IsMainModel>1</IsMainModel>
  4275. </Description>';
  4276. type Submodel
  4277. ports
  4278. signal in input;
  4279. power out p2;
  4280. end;
  4281. implementation bg
  4282. submodels
  4283. Gain1 552 88
  4284. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4285. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  4286. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  4287. </Description>';
  4288. type Gain
  4289. ports
  4290. signal in input;
  4291. signal out output;
  4292. end;
  4293. icon bg bottom
  4294. figures
  4295. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  4296. text 'K' 552 88 color 16711680 16 bold;
  4297. end;
  4298. implementation eq
  4299. parameters
  4300. real K = 12.0; // gain
  4301. equations
  4302. output = K * input;
  4303. implementation_end;
  4304. GY 624 192
  4305. description '<Information>
  4306. <Description>
  4307. <Version>4.2</Version>
  4308. <IsMainModel>1</IsMainModel>
  4309. <KeepParameterValues>False</KeepParameterValues>
  4310. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  4311. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  4312. </Description>
  4313. </Information>';
  4314. type GY
  4315. ports
  4316. power in p1;
  4317. power out p2;
  4318. restrictions
  4319. causality constraint equal p1 p2;
  4320. end;
  4321. icon bg bottom
  4322. figures
  4323. text 'GY' 624 192 color 0 18 bold;
  4324. end;
  4325. implementation eq
  4326. parameters
  4327. real r = 0.127;
  4328. equations
  4329. p1.e = r * p2.f;
  4330. p2.e = r * p1.f;
  4331. implementation_end;
  4332. MSe 624 88
  4333. description '<Information>
  4334. <Description>
  4335. <Version>4.2</Version>
  4336. <IsMainModel>1</IsMainModel>
  4337. <KeepParameterValues>False</KeepParameterValues>
  4338. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  4339. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  4340. </Description>
  4341. </Information>';
  4342. type MSe
  4343. ports
  4344. power out p;
  4345. signal in effort;
  4346. restrictions
  4347. causality fixed out p;
  4348. end;
  4349. icon bg bottom
  4350. figures
  4351. text 'MSe' 624 88 color 0 18 bold;
  4352. end;
  4353. implementation eq
  4354. variables
  4355. real flow;
  4356. equations
  4357. p.e = effort;
  4358. flow = p.f;
  4359. implementation_end;
  4360. plug input 424 88;
  4361. plug p2 624 280;
  4362. OneJunction2 624 144
  4363. description '<Information>
  4364. <Description>
  4365. <Version>4.2</Version>
  4366. <IsMainModel>1</IsMainModel>
  4367. <KeepParameterValues>False</KeepParameterValues>
  4368. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  4369. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  4370. </Description>
  4371. </Information>';
  4372. knot OneJunction
  4373. ports
  4374. power knot duplicatable none p [1];
  4375. signal knot out flow [1];
  4376. restrictions
  4377. causality constraint one_out p;
  4378. end;
  4379. icon bg
  4380. figures
  4381. text '1' 624 144 color 0 18 bold;
  4382. end;
  4383. implementation eq
  4384. equations
  4385. sum (direct (p.e)) = 0;
  4386. equal (collect (p.f));
  4387. flow = first (p.f);
  4388. implementation_end;
  4389. R 672 144
  4390. description '<Information>
  4391. <Description>
  4392. <Version>4.2</Version>
  4393. <IsMainModel>1</IsMainModel>
  4394. <KeepParameterValues>False</KeepParameterValues>
  4395. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  4396. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  4397. </Description>
  4398. </Information>';
  4399. type R
  4400. ports
  4401. power in p;
  4402. end;
  4403. icon bg bottom
  4404. figures
  4405. text 'R' 672 144 color 0 18 bold;
  4406. end;
  4407. implementation eq
  4408. parameters
  4409. real r = 0.08;
  4410. equations
  4411. p.e = r * p.f;
  4412. implementation_end;
  4413. SignalLimiter2 488 88
  4414. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4415. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  4416. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  4417. </Description>';
  4418. type 'SignalLimiter-Limit'
  4419. ports
  4420. signal in input;
  4421. signal out output;
  4422. end;
  4423. icon bg bottom
  4424. figures
  4425. group
  4426. rectangle 472 72 504 104 color 0 fill 15132390;
  4427. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  4428. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  4429. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  4430. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  4431. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  4432. end;
  4433. end;
  4434. implementation eq
  4435. parameters
  4436. real maximum = 1;
  4437. real minimum = -1;
  4438. equations
  4439. output = limit (input, minimum, maximum);
  4440. implementation_end;
  4441. end;
  4442. connections
  4443. Gain1\output -> MSe\effort;
  4444. GY\p2 => p2;
  4445. input -> SignalLimiter2\input;
  4446. MSe\p => OneJunction2\p;
  4447. OneJunction2\p => GY\p1;
  4448. R\p <= OneJunction2\p;
  4449. SignalLimiter2\output -> Gain1\input;
  4450. end;
  4451. implementation_end;
  4452. TF 504 288
  4453. description '<Information>
  4454. <Description>
  4455. <Version>4.8</Version>
  4456. <IsMainModel>1</IsMainModel>
  4457. <KeepParameterValues>False</KeepParameterValues>
  4458. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\2D\MXTF-2.emx</LibraryPath>
  4459. <TimeStamp>2020-7-14 16:54:28</TimeStamp>
  4460. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  4461. </Description>
  4462. </Information>';
  4463. type 'TF-2'
  4464. ports
  4465. power in p1;
  4466. power out p2 [2,1];
  4467. signal in p [2,1];
  4468. restrictions
  4469. causality constraint not_equal p1 p2;
  4470. causality fixed in p2;
  4471. causality fixed out p1;
  4472. end;
  4473. icon bg bottom
  4474. figures
  4475. text 'MXTF' 504 288 color 0 18 bold;
  4476. end;
  4477. implementation eq
  4478. variables
  4479. real r[2];
  4480. equations
  4481. r = [-p[2];p[1]];
  4482. p1.e = transpose (r) * p2.e;
  4483. p2.f = r * p1.f;implementation_end;
  4484. TF2 904 288
  4485. description '<Information>
  4486. <Description>
  4487. <Version>4.8</Version>
  4488. <IsMainModel>1</IsMainModel>
  4489. <KeepParameterValues>False</KeepParameterValues>
  4490. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\2D\MXTF-2.emx</LibraryPath>
  4491. <TimeStamp>2020-7-14 17:06:13</TimeStamp>
  4492. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  4493. </Description>
  4494. </Information>';
  4495. type 'TF-2'
  4496. ports
  4497. power in p1;
  4498. power out p2 [2,1];
  4499. signal in p [2,1];
  4500. restrictions
  4501. causality constraint not_equal p1 p2;
  4502. causality fixed in p2;
  4503. causality fixed out p1;
  4504. end;
  4505. icon bg bottom
  4506. figures
  4507. text 'MXTF' 904 288 color 0 18 bold;
  4508. end;
  4509. implementation eq
  4510. variables
  4511. real r[2];
  4512. equations
  4513. r = [-p[2];p[1]];
  4514. p1.e = transpose (r) * p2.e;
  4515. p2.f = r * p1.f;implementation_end;
  4516. TF3 808 288
  4517. description '<Information>
  4518. <Description>
  4519. <Version>4.8</Version>
  4520. <IsMainModel>1</IsMainModel>
  4521. <KeepParameterValues>False</KeepParameterValues>
  4522. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\2D\MXTF-2.emx</LibraryPath>
  4523. <TimeStamp>2020-7-14 16:54:28</TimeStamp>
  4524. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  4525. </Description>
  4526. </Information>';
  4527. type 'TF-2'
  4528. ports
  4529. power in p1;
  4530. power out p2 [2,1];
  4531. signal in p [2,1];
  4532. restrictions
  4533. causality constraint not_equal p1 p2;
  4534. causality fixed in p2;
  4535. causality fixed out p1;
  4536. end;
  4537. icon bg bottom
  4538. figures
  4539. text 'MXTF' 808 288 color 0 18 bold;
  4540. end;
  4541. implementation eq
  4542. variables
  4543. real r[2];
  4544. equations
  4545. r = [-p[2];p[1]];
  4546. p1.e = transpose (r) * p2.e;
  4547. p2.f = r * p1.f;implementation_end;
  4548. Zero 80 704
  4549. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4550. <LibraryPath>Signal\Sources\Zero.emx</LibraryPath>
  4551. <TimeStamp>2007-9-27 15:54:36</TimeStamp>
  4552. </Description>
  4553. ';
  4554. type Zero
  4555. ports
  4556. signal out output [4,4];
  4557. end;
  4558. icon bg bottom
  4559. figures
  4560. rectangle 64.1 688 95.9 720 color 0 fill 15132390;
  4561. text '0' 80 704 color 16711680 18 bold;
  4562. end;
  4563. implementation eq
  4564. equations
  4565. output = eye(4);implementation_end;
  4566. ZeroJunction 504 368
  4567. description '<Information>
  4568. <Description>
  4569. <Version>4.2</Version>
  4570. <IsMainModel>1</IsMainModel>
  4571. <KeepParameterValues>False</KeepParameterValues>
  4572. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  4573. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  4574. </Description>
  4575. </Information>';
  4576. knot ZeroJunction
  4577. ports
  4578. power knot duplicatable none p [2,1];
  4579. signal knot out effort [2,1];
  4580. restrictions
  4581. causality constraint one_in p;
  4582. end;
  4583. icon bg
  4584. figures
  4585. text '0' 504 368 color 0 18 bold;
  4586. end;
  4587. implementation eq
  4588. equations
  4589. sum (direct (p.f)) = 0;
  4590. equal (collect (p.e));
  4591. effort = first (p.e);
  4592. implementation_end;
  4593. ZeroJunction1 352.3 368
  4594. description '<Information>
  4595. <Description>
  4596. <Version>4.2</Version>
  4597. <IsMainModel>1</IsMainModel>
  4598. <KeepParameterValues>False</KeepParameterValues>
  4599. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  4600. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  4601. </Description>
  4602. </Information>';
  4603. knot ZeroJunction
  4604. ports
  4605. power knot duplicatable none p [2,1];
  4606. signal knot out effort [2,1];
  4607. restrictions
  4608. causality constraint one_in p;
  4609. end;
  4610. icon bg
  4611. figures
  4612. text '0' 352.3 368 color 0 18 bold;
  4613. end;
  4614. implementation eq
  4615. equations
  4616. sum (direct (p.f)) = 0;
  4617. equal (collect (p.e));
  4618. effort = first (p.e);
  4619. implementation_end;
  4620. ZeroJunction2 904 368
  4621. description '<Information>
  4622. <Description>
  4623. <Version>4.2</Version>
  4624. <IsMainModel>1</IsMainModel>
  4625. <KeepParameterValues>False</KeepParameterValues>
  4626. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  4627. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  4628. </Description>
  4629. </Information>';
  4630. knot ZeroJunction
  4631. ports
  4632. power knot duplicatable none p [2,1];
  4633. signal knot out effort [2,1];
  4634. restrictions
  4635. causality constraint one_in p;
  4636. end;
  4637. icon bg
  4638. figures
  4639. text '0' 904 368 color 0 18 bold;
  4640. end;
  4641. implementation eq
  4642. equations
  4643. sum (direct (p.f)) = 0;
  4644. equal (collect (p.e));
  4645. effort = first (p.e);
  4646. implementation_end;
  4647. ZeroJunction3 752.3 368
  4648. description '<Information>
  4649. <Description>
  4650. <Version>4.2</Version>
  4651. <IsMainModel>1</IsMainModel>
  4652. <KeepParameterValues>False</KeepParameterValues>
  4653. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  4654. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  4655. </Description>
  4656. </Information>';
  4657. knot ZeroJunction
  4658. ports
  4659. power knot duplicatable none p [2,1];
  4660. signal knot out effort [2,1];
  4661. restrictions
  4662. causality constraint one_in p;
  4663. end;
  4664. icon bg
  4665. figures
  4666. text '0' 752.3 368 color 0 18 bold;
  4667. end;
  4668. implementation eq
  4669. equations
  4670. sum (direct (p.f)) = 0;
  4671. equal (collect (p.e));
  4672. effort = first (p.e);
  4673. implementation_end;
  4674. ZeroJunction4 624 232
  4675. description '<Information>
  4676. <Description>
  4677. <Version>4.2</Version>
  4678. <IsMainModel>1</IsMainModel>
  4679. <KeepParameterValues>False</KeepParameterValues>
  4680. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  4681. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  4682. </Description>
  4683. </Information>';
  4684. knot ZeroJunction
  4685. ports
  4686. rotation knot duplicatable none p [1];
  4687. signal knot out effort [1];
  4688. restrictions
  4689. causality constraint one_in p;
  4690. end;
  4691. icon bg
  4692. figures
  4693. text '0' 624 232 color 0 18 bold;
  4694. end;
  4695. implementation eq
  4696. equations
  4697. sum (direct (p.f)) = 0;
  4698. equal (collect (p.e));
  4699. effort = first (p.e);
  4700. implementation_end;
  4701. ZeroJunction5 248 232
  4702. description '<Information>
  4703. <Description>
  4704. <Version>4.2</Version>
  4705. <IsMainModel>1</IsMainModel>
  4706. <KeepParameterValues>False</KeepParameterValues>
  4707. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  4708. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  4709. </Description>
  4710. </Information>';
  4711. knot ZeroJunction
  4712. ports
  4713. rotation knot duplicatable none p [1];
  4714. signal knot out effort [1];
  4715. restrictions
  4716. causality constraint one_in p;
  4717. end;
  4718. icon bg
  4719. figures
  4720. text '0' 248 232 color 0 18 bold;
  4721. end;
  4722. implementation eq
  4723. equations
  4724. sum (direct (p.f)) = 0;
  4725. equal (collect (p.e));
  4726. effort = first (p.e);
  4727. implementation_end;
  4728. ZeroJunction7 208 752
  4729. description '<Information>
  4730. <Description>
  4731. <Version>4.2</Version>
  4732. <IsMainModel>1</IsMainModel>
  4733. <KeepParameterValues>False</KeepParameterValues>
  4734. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  4735. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  4736. </Description>
  4737. </Information>';
  4738. knot OneJunction
  4739. ports
  4740. power knot duplicatable none p [1];
  4741. signal knot out flow [1];
  4742. restrictions
  4743. causality constraint one_out p;
  4744. end;
  4745. icon bg
  4746. figures
  4747. text '1' 208 752 color 0 18 bold;
  4748. end;
  4749. implementation eq
  4750. equations
  4751. sum (direct (p.e)) = 0;
  4752. equal (collect (p.f));
  4753. flow = first (p.f);
  4754. implementation_end;
  4755. end;
  4756. connections
  4757. Base1\Hout -> Splitter5\input;
  4758. Base1\p1 <= Link3\Pout;
  4759. Base2\Hout -> new_joint3\input;
  4760. Base3\Hin <- Link\Hout;
  4761. Base3\Hout -> Splitter6\input;
  4762. Base3\p1 <= Link1\Pout;
  4763. Constant\output -> COM3\mass;
  4764. I\p <= OneJunction3\p;
  4765. I1\p <= OneJunction10\p;
  4766. inverse_kinematics\angle1 -> PlusMinus2\plus;
  4767. inverse_kinematics\angle2 -> PlusMinus3\plus;
  4768. inverse_kinematics1\angle1 -> PlusMinus4\plus;
  4769. inverse_kinematics1\angle2 -> PlusMinus5\plus 656 864;
  4770. Joint1\Hout -> Link\Hin;
  4771. Joint1\p => OneJunction2\p;
  4772. Joint1\p2 <= Link\Pout;
  4773. Joint1\q -> PlusMinus4\minus 280 752;
  4774. Joint2\Hout -> Link2\Hin;
  4775. Joint2\p2 <= Link2\Pout;
  4776. Joint2\q -> PlusMinus5\minus 608 752;
  4777. Link\Pin <= Base3\p;
  4778. Link1\Hout -> Joint2\Hin;
  4779. Link1\Pin <= Joint2\p;
  4780. Link2\Hout -> Base1\Hin;
  4781. Link2\Pin <= Base1\p;
  4782. Link3\Hout -> Base2\Hin;
  4783. Link3\Pin <= Base2\p;
  4784. MXTF\p2 => ZeroJunction1\p;
  4785. Negate1\output -> Submodel2\input;
  4786. Negate2\output -> Submodel5\input;
  4787. OneJunction\p => RTF\p1;
  4788. OneJunction\p => ZeroJunction\p;
  4789. OneJunction\p => ZeroJunction1\p;
  4790. OneJunction1\flow -> Submodel3\velocity 344 520;
  4791. OneJunction1\p => COM1\p;
  4792. OneJunction10\flow -> Submodel4\angle_velocity 728 288 728 424;
  4793. OneJunction10\p => TF2\p1;
  4794. OneJunction10\p => TF3\p1;
  4795. OneJunction11\flow -> Integrate\input;
  4796. OneJunction11\p => COM3\p;
  4797. OneJunction16\flow -> Integrate1\input;
  4798. OneJunction16\p => ZeroJunction4\p;
  4799. OneJunction17\p => Joint2\p1;
  4800. OneJunction18\p => ZeroJunction5\p;
  4801. OneJunction3\flow -> Submodel3\angle_velocity 328 264 328 440;
  4802. OneJunction3\p => MXTF\p1;
  4803. OneJunction3\p => TF\p1;
  4804. OneJunction3\p => ZeroJunction4\p;
  4805. OneJunction5\p => RTF2\p1;
  4806. OneJunction7\p => RTF3\p1;
  4807. OneJunction7\p => ZeroJunction2\p;
  4808. OneJunction7\p => ZeroJunction3\p;
  4809. OneJunction8\flow -> Submodel4\velocity 744 520;
  4810. OneJunction8\p => COM2\p;
  4811. OneJunction9\p => RTF4\p1;
  4812. PID\output -> Submodel1\input;
  4813. PID2\output -> Negate1\input;
  4814. PID3\output -> Negate2\input;
  4815. PlusMinus1\output -> RTF1\angle;
  4816. PlusMinus2\output -> PID\error;
  4817. PlusMinus3\output -> PID1\error;
  4818. PlusMinus4\output -> PID2\error;
  4819. PlusMinus5\output -> PID3\error;
  4820. R\p <= ZeroJunction7\p;
  4821. R1\p <= OneJunction17\p;
  4822. R2\p <= OneJunction18\p;
  4823. R3\p <= OneJunction16\p;
  4824. rectanglepath\output -> Splitter7\input;
  4825. RTF\p2 => OneJunction1\p;
  4826. RTF1\p2 => OneJunction12\p;
  4827. RTF2\p2 => OneJunction6\p;
  4828. RTF3\p2 => OneJunction8\p;
  4829. RTF4\p2 => OneJunction11\p;
  4830. Se\p => Base2\p1;
  4831. Sf\p => OneJunction6\p;
  4832. Sf1\p => ZeroJunction5\p;
  4833. Sf2\p => OneJunction2\p;
  4834. Splitter1\output -> PlusMinus1\plus;
  4835. Splitter1\output -> RTF\angle 400 416 400 432;
  4836. Splitter1\output -> Splitter3\input;
  4837. Splitter2\output -> RTF3\angle 800 408;
  4838. Splitter2\output -> RTF4\angle 952 400;
  4839. Splitter2\output -> Splitter4\input;
  4840. Splitter3\output -> PlusMinus2\minus 304 160;
  4841. Splitter3\output -> RTF2\angle 296 400;
  4842. Splitter4\output -> PlusMinus1\minus;
  4843. Splitter4\output -> PlusMinus3\minus 632 344 552 288;
  4844. Splitter5\output -> Link3\Hin;
  4845. Splitter5\output -> new_joint2\input;
  4846. Splitter6\output -> Link1\Hin;
  4847. Splitter6\output -> new_joint1\input;
  4848. Splitter7\output -> inverse_kinematics\input;
  4849. Splitter7\output -> inverse_kinematics1\input 32 680 32 864;
  4850. Submodel1\p2 => OneJunction18\p;
  4851. Submodel2\p2 => ZeroJunction7\p;
  4852. Submodel3\angle -> Splitter1\input 368 448 368 416;
  4853. Submodel3\angular_momentum -> I\i 320 440 320 264;
  4854. Submodel3\joint1 -> MXTF\p 392 320;
  4855. Submodel3\joint2 -> TF\p;
  4856. Submodel3\mass -> COM1\mass 336 528 416 528 416 568;
  4857. Submodel4\angle -> Splitter2\input;
  4858. Submodel4\angular_momentum -> I1\i 720 424 720 288;
  4859. Submodel4\joint1 -> TF3\p;
  4860. Submodel4\joint2 -> TF2\p;
  4861. Submodel4\mass -> COM2\mass 736 528 736 584;
  4862. Submodel5\p2 => OneJunction17\p;
  4863. Submodel8\input <- PID1\output;
  4864. Submodel8\p2 => OneJunction16\p;
  4865. TF\p2 => ZeroJunction\p;
  4866. TF2\p2 => ZeroJunction2\p;
  4867. TF3\p2 => ZeroJunction3\p;
  4868. Zero\output -> Joint1\Hin;
  4869. ZeroJunction\p => RTF1\p1;
  4870. ZeroJunction1\p => OneJunction5\p;
  4871. ZeroJunction2\p => OneJunction9\p;
  4872. ZeroJunction3\p => OneJunction12\p;
  4873. ZeroJunction4\p => OneJunction10\p;
  4874. ZeroJunction5\p => OneJunction3\p;
  4875. ZeroJunction7\p => Joint1\p1;
  4876. end;
  4877. implementation_end;
  4878. ]]>
  4879. </Sidops>
  4880. </Model>
  4881. <Experiments>
  4882. <DefaultExperiment><![CDATA[Experiment 1]]>
  4883. </DefaultExperiment>
  4884. <Experiment>
  4885. <Name>Experiment 1</Name>
  4886. <CreatedBy></CreatedBy>
  4887. <Info></Info>
  4888. <ExpData>
  4889. <VersionNumber>4.8</VersionNumber>
  4890. <ModelProperties>
  4891. <ModelProperty section="GenSimProps" entry="ClearVarsAtStart" value="1"/>
  4892. <ModelProperty section="tools\graph editor" entry="debugMode" value="0"/>
  4893. </ModelProperties>
  4894. <Variables>
  4895. <Constants>
  4896. </Constants>
  4897. <Parameters>
  4898. </Parameters>
  4899. <Initials>
  4900. <Variable>
  4901. <Name>Base1\InertialTensor\state_initial</Name>
  4902. <Rows>6</Rows>
  4903. <Columns>1</Columns>
  4904. <Value>0 0 0 0 0 0</Value>
  4905. </Variable>
  4906. <Variable>
  4907. <Name>Base3\InertialTensor\state_initial</Name>
  4908. <Rows>6</Rows>
  4909. <Columns>1</Columns>
  4910. <Value>0 0 0 0 0 0</Value>
  4911. </Variable>
  4912. <Variable>
  4913. <Name>I1\state_initial</Name>
  4914. <Value>0</Value>
  4915. </Variable>
  4916. <Variable>
  4917. <Name>I\state_initial</Name>
  4918. <Value>0</Value>
  4919. </Variable>
  4920. <Variable>
  4921. <Name>Joint1\JointType\uTbai\state_initial</Name>
  4922. <Rows>6</Rows>
  4923. <Columns>1</Columns>
  4924. <Value>0 0 0 0 0 0</Value>
  4925. </Variable>
  4926. <Variable>
  4927. <Name>Joint2\JointType\uTbai\state_initial</Name>
  4928. <Rows>6</Rows>
  4929. <Columns>1</Columns>
  4930. <Value>0 0 0 0 0 0</Value>
  4931. </Variable>
  4932. <Variable>
  4933. <Name>PID1\pdstate_initial</Name>
  4934. <Value>0</Value>
  4935. </Variable>
  4936. <Variable>
  4937. <Name>PID1\pistate_initial</Name>
  4938. <Value>0</Value>
  4939. </Variable>
  4940. <Variable>
  4941. <Name>PID2\pdstate_initial</Name>
  4942. <Value>0</Value>
  4943. </Variable>
  4944. <Variable>
  4945. <Name>PID2\pistate_initial</Name>
  4946. <Value>0</Value>
  4947. </Variable>
  4948. <Variable>
  4949. <Name>PID3\pdstate_initial</Name>
  4950. <Value>0</Value>
  4951. </Variable>
  4952. <Variable>
  4953. <Name>PID3\pistate_initial</Name>
  4954. <Value>0</Value>
  4955. </Variable>
  4956. <Variable>
  4957. <Name>PID\pdstate_initial</Name>
  4958. <Value>0</Value>
  4959. </Variable>
  4960. <Variable>
  4961. <Name>PID\pistate_initial</Name>
  4962. <Value>0</Value>
  4963. </Variable>
  4964. <Variable>
  4965. <Name>Base2\InertialTensor\p.e_initial</Name>
  4966. <Rows>6</Rows>
  4967. <Columns>1</Columns>
  4968. <Value>0 0 0 0 0 0</Value>
  4969. </Variable>
  4970. <Variable>
  4971. <Name>COM1\I\p.e_initial</Name>
  4972. <Rows>2</Rows>
  4973. <Columns>1</Columns>
  4974. <Value>0 0</Value>
  4975. </Variable>
  4976. <Variable>
  4977. <Name>COM2\I\p.e_initial</Name>
  4978. <Rows>2</Rows>
  4979. <Columns>1</Columns>
  4980. <Value>0 0</Value>
  4981. </Variable>
  4982. <Variable>
  4983. <Name>COM3\I\p.e_initial</Name>
  4984. <Rows>2</Rows>
  4985. <Columns>1</Columns>
  4986. <Value>0 0</Value>
  4987. </Variable>
  4988. <Variable>
  4989. <Name>R1\p.e_initial</Name>
  4990. <Value>0</Value>
  4991. </Variable>
  4992. <Variable>
  4993. <Name>R\p.e_initial</Name>
  4994. <Value>0</Value>
  4995. </Variable>
  4996. <Variable>
  4997. <Name>Submodel2\R\p.f_initial</Name>
  4998. <Value>0</Value>
  4999. </Variable>
  5000. <Variable>
  5001. <Name>Submodel5\R\p.f_initial</Name>
  5002. <Value>0</Value>
  5003. </Variable>
  5004. </Initials>
  5005. <FavoriteVariables>
  5006. <Variable>
  5007. <Name>Joint1\JointType\uTbai\state</Name>
  5008. <Rows>6</Rows>
  5009. <Columns>1</Columns>
  5010. <RowIndex>0</RowIndex>
  5011. <ColumnIndex>0</ColumnIndex>
  5012. </Variable>
  5013. <Variable>
  5014. <Name>Joint1\JointType\Integrate\q</Name>
  5015. </Variable>
  5016. </FavoriteVariables>
  5017. </Variables>
  5018. <PlotSpecs>
  5019. <VarNames>
  5020. <VarName>time</VarName>
  5021. <VarName>Submodel3\body_position[1]</VarName>
  5022. <VarName>Submodel3\body_position[2]</VarName>
  5023. <VarName>Submodel3\body_position[3]</VarName>
  5024. <VarName>Submodel3\body_angle[1]</VarName>
  5025. <VarName>Submodel3\body_angle[2]</VarName>
  5026. <VarName>Submodel3\body_angle[3]</VarName>
  5027. <VarName>Submodel3\dimension[1]</VarName>
  5028. <VarName>Submodel3\dimension[2]</VarName>
  5029. <VarName>Submodel3\dimension[3]</VarName>
  5030. <VarName>Submodel4\dimension[1]</VarName>
  5031. <VarName>Submodel4\dimension[2]</VarName>
  5032. <VarName>Submodel4\dimension[3]</VarName>
  5033. <VarName>Submodel4\body_angle[1]</VarName>
  5034. <VarName>Submodel4\body_angle[2]</VarName>
  5035. <VarName>Submodel4\body_angle[3]</VarName>
  5036. <VarName>Submodel4\body_position[1]</VarName>
  5037. <VarName>Submodel4\body_position[2]</VarName>
  5038. <VarName>Submodel4\body_position[3]</VarName>
  5039. <VarName>PlusMinus2\output</VarName>
  5040. <VarName>PlusMinus3\output</VarName>
  5041. <VarName>Integrate\output[2]</VarName>
  5042. <VarName>Integrate\output[1]</VarName>
  5043. <VarName>new_joint1\position[1]</VarName>
  5044. <VarName>new_joint1\position[2]</VarName>
  5045. <VarName>new_joint1\position[3]</VarName>
  5046. <VarName>new_joint1\R[1,3]</VarName>
  5047. <VarName>new_joint1\R[2,3]</VarName>
  5048. <VarName>new_joint1\R[3,3]</VarName>
  5049. <VarName>new_joint1\R[1,2]</VarName>
  5050. <VarName>new_joint1\R[2,2]</VarName>
  5051. <VarName>new_joint1\R[3,2]</VarName>
  5052. <VarName>new_joint2\R[1,3]</VarName>
  5053. <VarName>new_joint2\R[2,3]</VarName>
  5054. <VarName>new_joint2\R[3,3]</VarName>
  5055. <VarName>new_joint2\R[1,2]</VarName>
  5056. <VarName>new_joint2\R[2,2]</VarName>
  5057. <VarName>new_joint2\R[3,2]</VarName>
  5058. <VarName>new_joint2\position[1]</VarName>
  5059. <VarName>new_joint2\position[2]</VarName>
  5060. <VarName>new_joint2\position[3]</VarName>
  5061. <VarName>PID2\error</VarName>
  5062. <VarName>PID3\error</VarName>
  5063. <VarName>new_joint3\position[3]</VarName>
  5064. <VarName>new_joint3\position[2]</VarName>
  5065. <VarName>MSe1\effort</VarName>
  5066. <VarName>MSe2\effort</VarName>
  5067. <VarName>MSe2\flow</VarName>
  5068. <VarName>MSe1\flow</VarName>
  5069. </VarNames>
  5070. <Plots>
  5071. <Plot>
  5072. <PlotType>GraphPlot</PlotType>
  5073. <BasePlot>
  5074. <PlotId>1</PlotId>
  5075. <UseWindowsBGColor>false</UseWindowsBGColor>
  5076. <BGColor>16777215</BGColor>
  5077. <PlotIsVisible>true</PlotIsVisible>
  5078. </BasePlot>
  5079. <Grid>
  5080. <DrawGrid>true</DrawGrid>
  5081. <GridColor>15780518</GridColor>
  5082. <GridBorderLineColor>12624260</GridBorderLineColor>
  5083. <GridZeroLineColor>0</GridZeroLineColor>
  5084. <XTicks>10</XTicks>
  5085. <YTicks>10</YTicks>
  5086. <ZTicks>10</ZTicks>
  5087. <Use3DLook>false</Use3DLook>
  5088. </Grid>
  5089. <PlotBGColor>16777215</PlotBGColor>
  5090. <ShowPlotTitle>true</ShowPlotTitle>
  5091. <TitlePosition>1</TitlePosition>
  5092. <PlotTitle>model</PlotTitle>
  5093. <ShowXValues>true</ShowXValues>
  5094. <Fonts>
  5095. <TitleFont>
  5096. <Name>Arial</Name>
  5097. <Height>12</Height>
  5098. <PitchFamily>34</PitchFamily>
  5099. <Weight>400</Weight>
  5100. <Italic>0</Italic>
  5101. <UnderLine>0</UnderLine>
  5102. <StrikeOut>0</StrikeOut>
  5103. <Color>0</Color>
  5104. </TitleFont>
  5105. <LabelFont>
  5106. <Name>Arial</Name>
  5107. <Height>12</Height>
  5108. <PitchFamily>34</PitchFamily>
  5109. <Weight>400</Weight>
  5110. <Italic>0</Italic>
  5111. <UnderLine>0</UnderLine>
  5112. <StrikeOut>0</StrikeOut>
  5113. <Color>0</Color>
  5114. </LabelFont>
  5115. <ValuesFont>
  5116. <Name>Arial</Name>
  5117. <Height>10</Height>
  5118. <PitchFamily>34</PitchFamily>
  5119. <Weight>400</Weight>
  5120. <Italic>0</Italic>
  5121. <UnderLine>0</UnderLine>
  5122. <StrikeOut>0</StrikeOut>
  5123. <Color>0</Color>
  5124. </ValuesFont>
  5125. <LegendFont>
  5126. <Name>Arial</Name>
  5127. <Height>12</Height>
  5128. <PitchFamily>34</PitchFamily>
  5129. <Weight>400</Weight>
  5130. <Italic>0</Italic>
  5131. <UnderLine>0</UnderLine>
  5132. <StrikeOut>0</StrikeOut>
  5133. <Color>0</Color>
  5134. </LegendFont>
  5135. </Fonts>
  5136. <SharedXAxis>true</SharedXAxis>
  5137. <SharedYAxis>true</SharedYAxis>
  5138. <SharedZAxis>false</SharedZAxis>
  5139. <XAxes>
  5140. <Axis>
  5141. <Minimum>0.0</Minimum>
  5142. <Maximum>0.10311339559032781</Maximum>
  5143. <Linear>true</Linear>
  5144. <Scaling>3</Scaling>
  5145. <Label>time</Label>
  5146. </Axis>
  5147. </XAxes>
  5148. <YAxes>
  5149. <Axis>
  5150. <Minimum>-0.009999999999999998</Minimum>
  5151. <Maximum>0.04</Maximum>
  5152. <Linear>true</Linear>
  5153. <Scaling>1</Scaling>
  5154. <Label>Joint 2 Torque</Label>
  5155. </Axis>
  5156. <Axis>
  5157. <Minimum>-0.25</Minimum>
  5158. <Maximum>0.25</Maximum>
  5159. <Linear>true</Linear>
  5160. <Scaling>1</Scaling>
  5161. <Label>Joint 1 Torque</Label>
  5162. </Axis>
  5163. <Axis>
  5164. <Minimum>-0.25</Minimum>
  5165. <Maximum>0.25</Maximum>
  5166. <Linear>true</Linear>
  5167. <Scaling>1</Scaling>
  5168. <Label>joint1 flow</Label>
  5169. </Axis>
  5170. <Axis>
  5171. <Minimum>-0.25</Minimum>
  5172. <Maximum>0.25</Maximum>
  5173. <Linear>true</Linear>
  5174. <Scaling>1</Scaling>
  5175. <Label>joint2 flow</Label>
  5176. </Axis>
  5177. </YAxes>
  5178. <ZAxes>
  5179. </ZAxes>
  5180. <Curves>
  5181. <Curve>
  5182. <LineColor>3355111</LineColor>
  5183. <LineStyle>1</LineStyle>
  5184. <TickColor>6076255</TickColor>
  5185. <TickStyle>0</TickStyle>
  5186. <CurveVisible>true</CurveVisible>
  5187. <PixelThresshold>1</PixelThresshold>
  5188. <LineThickness>1</LineThickness>
  5189. <LineOrder>1</LineOrder>
  5190. <ShowYValues>true</ShowYValues>
  5191. <XCurveData>
  5192. <ShowUnit>true</ShowUnit>
  5193. <VarName>time</VarName>
  5194. </XCurveData>
  5195. <YCurveData>
  5196. <ShowUnit>true</ShowUnit>
  5197. <VarName>MSe1\effort</VarName>
  5198. </YCurveData>
  5199. </Curve>
  5200. <Curve>
  5201. <LineColor>6076255</LineColor>
  5202. <LineStyle>1</LineStyle>
  5203. <TickColor>6076255</TickColor>
  5204. <TickStyle>0</TickStyle>
  5205. <CurveVisible>true</CurveVisible>
  5206. <PixelThresshold>1</PixelThresshold>
  5207. <LineThickness>1</LineThickness>
  5208. <LineOrder>1</LineOrder>
  5209. <ShowYValues>true</ShowYValues>
  5210. <XCurveData>
  5211. <ShowUnit>true</ShowUnit>
  5212. <VarName>time</VarName>
  5213. </XCurveData>
  5214. <YCurveData>
  5215. <ShowUnit>true</ShowUnit>
  5216. <VarName>MSe2\effort</VarName>
  5217. </YCurveData>
  5218. </Curve>
  5219. <Curve>
  5220. <LineColor>12553035</LineColor>
  5221. <LineStyle>1</LineStyle>
  5222. <TickColor>12553035</TickColor>
  5223. <TickStyle>0</TickStyle>
  5224. <CurveVisible>false</CurveVisible>
  5225. <PixelThresshold>1</PixelThresshold>
  5226. <LineThickness>1</LineThickness>
  5227. <LineOrder>1</LineOrder>
  5228. <ShowYValues>true</ShowYValues>
  5229. <XCurveData>
  5230. <ShowUnit>true</ShowUnit>
  5231. <VarName>time</VarName>
  5232. </XCurveData>
  5233. <YCurveData>
  5234. <ShowUnit>true</ShowUnit>
  5235. <VarName>MSe2\flow</VarName>
  5236. </YCurveData>
  5237. </Curve>
  5238. <Curve>
  5239. <LineColor>15086320</LineColor>
  5240. <LineStyle>1</LineStyle>
  5241. <TickColor>15086320</TickColor>
  5242. <TickStyle>0</TickStyle>
  5243. <CurveVisible>false</CurveVisible>
  5244. <PixelThresshold>1</PixelThresshold>
  5245. <LineThickness>1</LineThickness>
  5246. <LineOrder>1</LineOrder>
  5247. <ShowYValues>true</ShowYValues>
  5248. <XCurveData>
  5249. <ShowUnit>true</ShowUnit>
  5250. <VarName>time</VarName>
  5251. </XCurveData>
  5252. <YCurveData>
  5253. <ShowUnit>true</ShowUnit>
  5254. <VarName>MSe1\flow</VarName>
  5255. </YCurveData>
  5256. </Curve>
  5257. </Curves>
  5258. <Legenda>
  5259. <ShowLegenda>true</ShowLegenda>
  5260. <Position>
  5261. <X>0.9024193548387097</X>
  5262. <Y>0.0308411214953271</Y>
  5263. </Position>
  5264. <BorderPenColor>0</BorderPenColor>
  5265. <BackgroundColor>16777215</BackgroundColor>
  5266. </Legenda>
  5267. </Plot>
  5268. <Plot>
  5269. <PlotType>GraphPlot</PlotType>
  5270. <BasePlot>
  5271. <PlotId>2</PlotId>
  5272. <UseWindowsBGColor>false</UseWindowsBGColor>
  5273. <BGColor>16777215</BGColor>
  5274. <PlotIsVisible>true</PlotIsVisible>
  5275. </BasePlot>
  5276. <Grid>
  5277. <DrawGrid>true</DrawGrid>
  5278. <GridColor>15780518</GridColor>
  5279. <GridBorderLineColor>12624260</GridBorderLineColor>
  5280. <GridZeroLineColor>0</GridZeroLineColor>
  5281. <XTicks>10</XTicks>
  5282. <YTicks>10</YTicks>
  5283. <ZTicks>10</ZTicks>
  5284. <Use3DLook>false</Use3DLook>
  5285. </Grid>
  5286. <PlotBGColor>16777215</PlotBGColor>
  5287. <ShowPlotTitle>true</ShowPlotTitle>
  5288. <TitlePosition>1</TitlePosition>
  5289. <PlotTitle>model(1)</PlotTitle>
  5290. <ShowXValues>true</ShowXValues>
  5291. <Fonts>
  5292. <TitleFont>
  5293. <Name>Arial</Name>
  5294. <Height>12</Height>
  5295. <PitchFamily>34</PitchFamily>
  5296. <Weight>400</Weight>
  5297. <Italic>0</Italic>
  5298. <UnderLine>0</UnderLine>
  5299. <StrikeOut>0</StrikeOut>
  5300. <Color>0</Color>
  5301. </TitleFont>
  5302. <LabelFont>
  5303. <Name>Arial</Name>
  5304. <Height>12</Height>
  5305. <PitchFamily>34</PitchFamily>
  5306. <Weight>400</Weight>
  5307. <Italic>0</Italic>
  5308. <UnderLine>0</UnderLine>
  5309. <StrikeOut>0</StrikeOut>
  5310. <Color>0</Color>
  5311. </LabelFont>
  5312. <ValuesFont>
  5313. <Name>Arial</Name>
  5314. <Height>10</Height>
  5315. <PitchFamily>34</PitchFamily>
  5316. <Weight>400</Weight>
  5317. <Italic>0</Italic>
  5318. <UnderLine>0</UnderLine>
  5319. <StrikeOut>0</StrikeOut>
  5320. <Color>0</Color>
  5321. </ValuesFont>
  5322. <LegendFont>
  5323. <Name>Arial</Name>
  5324. <Height>12</Height>
  5325. <PitchFamily>34</PitchFamily>
  5326. <Weight>400</Weight>
  5327. <Italic>0</Italic>
  5328. <UnderLine>0</UnderLine>
  5329. <StrikeOut>0</StrikeOut>
  5330. <Color>0</Color>
  5331. </LegendFont>
  5332. </Fonts>
  5333. <SharedXAxis>true</SharedXAxis>
  5334. <SharedYAxis>true</SharedYAxis>
  5335. <SharedZAxis>false</SharedZAxis>
  5336. <XAxes>
  5337. <Axis>
  5338. <Minimum>0.0</Minimum>
  5339. <Maximum>0.10311339559032781</Maximum>
  5340. <Linear>true</Linear>
  5341. <Scaling>3</Scaling>
  5342. <Label>time</Label>
  5343. </Axis>
  5344. </XAxes>
  5345. <YAxes>
  5346. <Axis>
  5347. <Minimum>-1.5</Minimum>
  5348. <Maximum>3.5</Maximum>
  5349. <Linear>true</Linear>
  5350. <Scaling>2</Scaling>
  5351. <Label>error Joint 1</Label>
  5352. </Axis>
  5353. <Axis>
  5354. <Minimum>0.0</Minimum>
  5355. <Maximum>235.918450873204</Maximum>
  5356. <Linear>true</Linear>
  5357. <Scaling>2</Scaling>
  5358. <Label>error joint 2</Label>
  5359. </Axis>
  5360. </YAxes>
  5361. <ZAxes>
  5362. </ZAxes>
  5363. <Curves>
  5364. <Curve>
  5365. <LineColor>3355111</LineColor>
  5366. <LineStyle>1</LineStyle>
  5367. <TickColor>3355111</TickColor>
  5368. <TickStyle>0</TickStyle>
  5369. <CurveVisible>true</CurveVisible>
  5370. <PixelThresshold>1</PixelThresshold>
  5371. <LineThickness>1</LineThickness>
  5372. <LineOrder>1</LineOrder>
  5373. <ShowYValues>true</ShowYValues>
  5374. <XCurveData>
  5375. <ShowUnit>true</ShowUnit>
  5376. <VarName>time</VarName>
  5377. </XCurveData>
  5378. <YCurveData>
  5379. <ShowUnit>true</ShowUnit>
  5380. <VarName>PlusMinus2\output</VarName>
  5381. </YCurveData>
  5382. </Curve>
  5383. <Curve>
  5384. <LineColor>6076255</LineColor>
  5385. <LineStyle>1</LineStyle>
  5386. <TickColor>6076255</TickColor>
  5387. <TickStyle>0</TickStyle>
  5388. <CurveVisible>true</CurveVisible>
  5389. <PixelThresshold>1</PixelThresshold>
  5390. <LineThickness>1</LineThickness>
  5391. <LineOrder>1</LineOrder>
  5392. <ShowYValues>true</ShowYValues>
  5393. <XCurveData>
  5394. <ShowUnit>true</ShowUnit>
  5395. <VarName>time</VarName>
  5396. </XCurveData>
  5397. <YCurveData>
  5398. <ShowUnit>true</ShowUnit>
  5399. <VarName>PlusMinus3\output</VarName>
  5400. </YCurveData>
  5401. </Curve>
  5402. </Curves>
  5403. <Legenda>
  5404. <ShowLegenda>true</ShowLegenda>
  5405. <BorderPenColor>0</BorderPenColor>
  5406. <BackgroundColor>16777215</BackgroundColor>
  5407. </Legenda>
  5408. </Plot>
  5409. <Plot>
  5410. <PlotType>D3DPlot</PlotType>
  5411. <BasePlot>
  5412. <PlotId>3</PlotId>
  5413. <UseWindowsBGColor>false</UseWindowsBGColor>
  5414. <BGColor>16777215</BGColor>
  5415. <PlotIsVisible>true</PlotIsVisible>
  5416. </BasePlot>
  5417. <PlotTitle>3D Animation</PlotTitle>
  5418. <RenderQuality>137</RenderQuality>
  5419. <ShowGrid>true</ShowGrid>
  5420. <ShowFPS>false</ShowFPS>
  5421. <BackgroundColor>4294967295</BackgroundColor>
  5422. <SceneBackgroundImage>Gradients\BlueWhite.png</SceneBackgroundImage>
  5423. <ApplyTextureBackground>true</ApplyTextureBackground>
  5424. <FrameScale>1.0</FrameScale>
  5425. <FrameThickness>1.0</FrameThickness>
  5426. <MainFrame>
  5427. <Frame>
  5428. <ScaleValue>
  5429. <X>
  5430. <Value>1</Value>
  5431. </X>
  5432. <Y>
  5433. <Value>1</Value>
  5434. </Y>
  5435. <Z>
  5436. <Value>1</Value>
  5437. </Z>
  5438. </ScaleValue>
  5439. <ShowReferenceFrame>true</ShowReferenceFrame>
  5440. <Name>Reference Frame</Name>
  5441. <Position>
  5442. </Position>
  5443. <Orientation>
  5444. <Angles>
  5445. </Angles>
  5446. <OrientationType>Bryant</OrientationType>
  5447. </Orientation>
  5448. <LockX>false</LockX>
  5449. <LockY>false</LockY>
  5450. <LockZ>false</LockZ>
  5451. <LockXPitch>false</LockXPitch>
  5452. <LockYYaw>false</LockYYaw>
  5453. <LockZRoll>false</LockZRoll>
  5454. <Childs>
  5455. <Frame>
  5456. <ScaleValue>
  5457. <X>
  5458. <Value>1</Value>
  5459. </X>
  5460. <Y>
  5461. <Value>1</Value>
  5462. </Y>
  5463. <Z>
  5464. <Value>1</Value>
  5465. </Z>
  5466. </ScaleValue>
  5467. <ShowReferenceFrame>false</ShowReferenceFrame>
  5468. <Name>Default Lights and Cameras</Name>
  5469. <Position>
  5470. </Position>
  5471. <Orientation>
  5472. <Angles>
  5473. </Angles>
  5474. <OrientationType>Bryant</OrientationType>
  5475. </Orientation>
  5476. <LockX>false</LockX>
  5477. <LockY>false</LockY>
  5478. <LockZ>false</LockZ>
  5479. <LockXPitch>false</LockXPitch>
  5480. <LockYYaw>false</LockYYaw>
  5481. <LockZRoll>false</LockZRoll>
  5482. <Childs>
  5483. <Light>
  5484. <ShowReferenceFrame>false</ShowReferenceFrame>
  5485. <Name>Ambient</Name>
  5486. <Position>
  5487. </Position>
  5488. <Orientation>
  5489. <ZAxis>
  5490. <Z>
  5491. <Value>1</Value>
  5492. </Z>
  5493. </ZAxis>
  5494. <YAxis>
  5495. <Y>
  5496. <Value>1</Value>
  5497. </Y>
  5498. </YAxis>
  5499. <OrientationType>Direct3D</OrientationType>
  5500. </Orientation>
  5501. <LockX>false</LockX>
  5502. <LockY>false</LockY>
  5503. <LockZ>false</LockZ>
  5504. <LockXPitch>false</LockXPitch>
  5505. <LockYYaw>false</LockYYaw>
  5506. <LockZRoll>false</LockZRoll>
  5507. <Childs>
  5508. </Childs>
  5509. <LightType>0</LightType>
  5510. <LightColor>
  5511. <Color>
  5512. <X>
  5513. <Value>0.3</Value>
  5514. </X>
  5515. <Y>
  5516. <Value>0.3</Value>
  5517. </Y>
  5518. <Z>
  5519. <Value>0.3</Value>
  5520. </Z>
  5521. </Color>
  5522. <Offset>
  5523. </Offset>
  5524. <Multipliers>
  5525. <X>
  5526. <Value>1</Value>
  5527. </X>
  5528. <Y>
  5529. <Value>1</Value>
  5530. </Y>
  5531. <Z>
  5532. <Value>1</Value>
  5533. </Z>
  5534. </Multipliers>
  5535. <Direct3DColorRange>true</Direct3DColorRange>
  5536. </LightColor>
  5537. <AmbientLight>
  5538. <Color>
  5539. <X>
  5540. <Value>0.3</Value>
  5541. </X>
  5542. <Y>
  5543. <Value>0.3</Value>
  5544. </Y>
  5545. <Z>
  5546. <Value>0.3</Value>
  5547. </Z>
  5548. </Color>
  5549. <Offset>
  5550. </Offset>
  5551. <Multipliers>
  5552. <X>
  5553. <Value>1</Value>
  5554. </X>
  5555. <Y>
  5556. <Value>1</Value>
  5557. </Y>
  5558. <Z>
  5559. <Value>1</Value>
  5560. </Z>
  5561. </Multipliers>
  5562. <Direct3DColorRange>true</Direct3DColorRange>
  5563. </AmbientLight>
  5564. <AmbientOn>true</AmbientOn>
  5565. <DiffuseOn>false</DiffuseOn>
  5566. <SpecularOn>false</SpecularOn>
  5567. </Light>
  5568. <Light>
  5569. <ShowReferenceFrame>false</ShowReferenceFrame>
  5570. <Name>Parallel</Name>
  5571. <Position>
  5572. <X>
  5573. <Value>-3</Value>
  5574. </X>
  5575. <Y>
  5576. <Value>5</Value>
  5577. </Y>
  5578. <Z>
  5579. <Value>3</Value>
  5580. </Z>
  5581. </Position>
  5582. <Orientation>
  5583. <ZAxis>
  5584. <X>
  5585. <Value>0.457495710997814</Value>
  5586. </X>
  5587. <Y>
  5588. <Value>-0.762492851663023</Value>
  5589. </Y>
  5590. <Z>
  5591. <Value>-0.457495710997814</Value>
  5592. </Z>
  5593. </ZAxis>
  5594. <YAxis>
  5595. <X>
  5596. <Value>0.235379601434674</Value>
  5597. </X>
  5598. <Y>
  5599. <Value>-0.392299335724456</Value>
  5600. </Y>
  5601. <Z>
  5602. <Value>0.889211827642101</Value>
  5603. </Z>
  5604. </YAxis>
  5605. <OrientationType>Direct3D</OrientationType>
  5606. </Orientation>
  5607. <LockX>false</LockX>
  5608. <LockY>false</LockY>
  5609. <LockZ>false</LockZ>
  5610. <LockXPitch>false</LockXPitch>
  5611. <LockYYaw>false</LockYYaw>
  5612. <LockZRoll>false</LockZRoll>
  5613. <Childs>
  5614. </Childs>
  5615. <LightType>3</LightType>
  5616. <LightColor>
  5617. <Color>
  5618. <X>
  5619. <Value>0.5</Value>
  5620. </X>
  5621. <Y>
  5622. <Value>0.5</Value>
  5623. </Y>
  5624. <Z>
  5625. <Value>0.5</Value>
  5626. </Z>
  5627. </Color>
  5628. <Offset>
  5629. </Offset>
  5630. <Multipliers>
  5631. <X>
  5632. <Value>1</Value>
  5633. </X>
  5634. <Y>
  5635. <Value>1</Value>
  5636. </Y>
  5637. <Z>
  5638. <Value>1</Value>
  5639. </Z>
  5640. </Multipliers>
  5641. <Direct3DColorRange>true</Direct3DColorRange>
  5642. </LightColor>
  5643. <Attenuation>
  5644. <Constant>
  5645. <Value>1.0</Value>
  5646. </Constant>
  5647. <Linear>
  5648. <Value>0.0</Value>
  5649. </Linear>
  5650. <Quadratic>
  5651. <Value>0.0</Value>
  5652. </Quadratic>
  5653. </Attenuation>
  5654. <DiffuseLight>
  5655. <Color>
  5656. <X>
  5657. <Value>0.5</Value>
  5658. </X>
  5659. <Y>
  5660. <Value>0.5</Value>
  5661. </Y>
  5662. <Z>
  5663. <Value>0.5</Value>
  5664. </Z>
  5665. </Color>
  5666. <Offset>
  5667. </Offset>
  5668. <Multipliers>
  5669. <X>
  5670. <Value>1</Value>
  5671. </X>
  5672. <Y>
  5673. <Value>1</Value>
  5674. </Y>
  5675. <Z>
  5676. <Value>1</Value>
  5677. </Z>
  5678. </Multipliers>
  5679. <Direct3DColorRange>true</Direct3DColorRange>
  5680. </DiffuseLight>
  5681. <SpecularLight>
  5682. <Color>
  5683. <X>
  5684. <Value>0.5</Value>
  5685. </X>
  5686. <Y>
  5687. <Value>0.5</Value>
  5688. </Y>
  5689. <Z>
  5690. <Value>0.5</Value>
  5691. </Z>
  5692. </Color>
  5693. <Offset>
  5694. </Offset>
  5695. <Multipliers>
  5696. <X>
  5697. <Value>1</Value>
  5698. </X>
  5699. <Y>
  5700. <Value>1</Value>
  5701. </Y>
  5702. <Z>
  5703. <Value>1</Value>
  5704. </Z>
  5705. </Multipliers>
  5706. <Direct3DColorRange>true</Direct3DColorRange>
  5707. </SpecularLight>
  5708. <AmbientOn>false</AmbientOn>
  5709. <DiffuseOn>true</DiffuseOn>
  5710. <SpecularOn>true</SpecularOn>
  5711. </Light>
  5712. <Light>
  5713. <ShowReferenceFrame>false</ShowReferenceFrame>
  5714. <Name>Spot Light 1</Name>
  5715. <Position>
  5716. <X>
  5717. <Value>-3</Value>
  5718. </X>
  5719. <Y>
  5720. <Value>-5</Value>
  5721. </Y>
  5722. <Z>
  5723. <Value>1</Value>
  5724. </Z>
  5725. </Position>
  5726. <Orientation>
  5727. <ZAxis>
  5728. <X>
  5729. <Value>0.50709255283711</Value>
  5730. </X>
  5731. <Y>
  5732. <Value>0.845154254728517</Value>
  5733. </Y>
  5734. <Z>
  5735. <Value>-0.169030850945703</Value>
  5736. </Z>
  5737. </ZAxis>
  5738. <YAxis>
  5739. <X>
  5740. <Value>0.0869656553478673</Value>
  5741. </X>
  5742. <Y>
  5743. <Value>0.144942758913112</Value>
  5744. </Y>
  5745. <Z>
  5746. <Value>0.985610760609162</Value>
  5747. </Z>
  5748. </YAxis>
  5749. <OrientationType>Direct3D</OrientationType>
  5750. </Orientation>
  5751. <LockX>false</LockX>
  5752. <LockY>false</LockY>
  5753. <LockZ>false</LockZ>
  5754. <LockXPitch>false</LockXPitch>
  5755. <LockYYaw>false</LockYYaw>
  5756. <LockZRoll>false</LockZRoll>
  5757. <Childs>
  5758. </Childs>
  5759. <LightType>2</LightType>
  5760. <LightColor>
  5761. <Color>
  5762. <X>
  5763. <Value>0.5</Value>
  5764. </X>
  5765. <Y>
  5766. <Value>0.5</Value>
  5767. </Y>
  5768. <Z>
  5769. <Value>0.5</Value>
  5770. </Z>
  5771. </Color>
  5772. <Offset>
  5773. </Offset>
  5774. <Multipliers>
  5775. <X>
  5776. <Value>1</Value>
  5777. </X>
  5778. <Y>
  5779. <Value>1</Value>
  5780. </Y>
  5781. <Z>
  5782. <Value>1</Value>
  5783. </Z>
  5784. </Multipliers>
  5785. <Direct3DColorRange>true</Direct3DColorRange>
  5786. </LightColor>
  5787. <Attenuation>
  5788. <Constant>
  5789. <Value>1.0</Value>
  5790. </Constant>
  5791. <Linear>
  5792. <Value>0.05</Value>
  5793. </Linear>
  5794. <Quadratic>
  5795. <Value>0.05</Value>
  5796. </Quadratic>
  5797. </Attenuation>
  5798. <Umbra>
  5799. <Value>1.0471975511965976</Value>
  5800. </Umbra>
  5801. <Penumbra>
  5802. <Value>1.0471975511965976</Value>
  5803. </Penumbra>
  5804. <SpotExponent>0.0</SpotExponent>
  5805. <DiffuseLight>
  5806. <Color>
  5807. <X>
  5808. <Value>0.5</Value>
  5809. </X>
  5810. <Y>
  5811. <Value>0.5</Value>
  5812. </Y>
  5813. <Z>
  5814. <Value>0.5</Value>
  5815. </Z>
  5816. </Color>
  5817. <Offset>
  5818. </Offset>
  5819. <Multipliers>
  5820. <X>
  5821. <Value>1</Value>
  5822. </X>
  5823. <Y>
  5824. <Value>1</Value>
  5825. </Y>
  5826. <Z>
  5827. <Value>1</Value>
  5828. </Z>
  5829. </Multipliers>
  5830. <Direct3DColorRange>true</Direct3DColorRange>
  5831. </DiffuseLight>
  5832. <SpecularLight>
  5833. <Color>
  5834. <X>
  5835. <Value>0.5</Value>
  5836. </X>
  5837. <Y>
  5838. <Value>0.5</Value>
  5839. </Y>
  5840. <Z>
  5841. <Value>0.5</Value>
  5842. </Z>
  5843. </Color>
  5844. <Offset>
  5845. </Offset>
  5846. <Multipliers>
  5847. <X>
  5848. <Value>1</Value>
  5849. </X>
  5850. <Y>
  5851. <Value>1</Value>
  5852. </Y>
  5853. <Z>
  5854. <Value>1</Value>
  5855. </Z>
  5856. </Multipliers>
  5857. <Direct3DColorRange>true</Direct3DColorRange>
  5858. </SpecularLight>
  5859. <AmbientOn>false</AmbientOn>
  5860. <DiffuseOn>true</DiffuseOn>
  5861. <SpecularOn>true</SpecularOn>
  5862. </Light>
  5863. <Light>
  5864. <ShowReferenceFrame>false</ShowReferenceFrame>
  5865. <Name>Spot Light 2</Name>
  5866. <Position>
  5867. <X>
  5868. <Value>2</Value>
  5869. </X>
  5870. <Y>
  5871. <Value>-3</Value>
  5872. </Y>
  5873. <Z>
  5874. <Value>-1</Value>
  5875. </Z>
  5876. </Position>
  5877. <Orientation>
  5878. <ZAxis>
  5879. <X>
  5880. <Value>-0.534522483824849</Value>
  5881. </X>
  5882. <Y>
  5883. <Value>0.801783725737273</Value>
  5884. </Y>
  5885. <Z>
  5886. <Value>0.267261241912424</Value>
  5887. </Z>
  5888. </ZAxis>
  5889. <YAxis>
  5890. <X>
  5891. <Value>0.14824986333222</Value>
  5892. </X>
  5893. <Y>
  5894. <Value>-0.22237479499833</Value>
  5895. </Y>
  5896. <Z>
  5897. <Value>0.963624111659432</Value>
  5898. </Z>
  5899. </YAxis>
  5900. <OrientationType>Direct3D</OrientationType>
  5901. </Orientation>
  5902. <LockX>false</LockX>
  5903. <LockY>false</LockY>
  5904. <LockZ>false</LockZ>
  5905. <LockXPitch>false</LockXPitch>
  5906. <LockYYaw>false</LockYYaw>
  5907. <LockZRoll>false</LockZRoll>
  5908. <Childs>
  5909. </Childs>
  5910. <LightType>2</LightType>
  5911. <LightColor>
  5912. <Color>
  5913. <X>
  5914. <Value>1</Value>
  5915. </X>
  5916. <Y>
  5917. <Value>1</Value>
  5918. </Y>
  5919. <Z>
  5920. <Value>1</Value>
  5921. </Z>
  5922. </Color>
  5923. <Offset>
  5924. </Offset>
  5925. <Multipliers>
  5926. <X>
  5927. <Value>1</Value>
  5928. </X>
  5929. <Y>
  5930. <Value>1</Value>
  5931. </Y>
  5932. <Z>
  5933. <Value>1</Value>
  5934. </Z>
  5935. </Multipliers>
  5936. <Direct3DColorRange>true</Direct3DColorRange>
  5937. </LightColor>
  5938. <Attenuation>
  5939. <Constant>
  5940. <Value>1.0</Value>
  5941. </Constant>
  5942. <Linear>
  5943. <Value>0.05</Value>
  5944. </Linear>
  5945. <Quadratic>
  5946. <Value>0.05</Value>
  5947. </Quadratic>
  5948. </Attenuation>
  5949. <Umbra>
  5950. <Value>1.5707963267948966</Value>
  5951. </Umbra>
  5952. <Penumbra>
  5953. <Value>1.5707963267948966</Value>
  5954. </Penumbra>
  5955. <SpotExponent>0.0</SpotExponent>
  5956. <DiffuseLight>
  5957. <Color>
  5958. <X>
  5959. <Value>1</Value>
  5960. </X>
  5961. <Y>
  5962. <Value>1</Value>
  5963. </Y>
  5964. <Z>
  5965. <Value>1</Value>
  5966. </Z>
  5967. </Color>
  5968. <Offset>
  5969. </Offset>
  5970. <Multipliers>
  5971. <X>
  5972. <Value>1</Value>
  5973. </X>
  5974. <Y>
  5975. <Value>1</Value>
  5976. </Y>
  5977. <Z>
  5978. <Value>1</Value>
  5979. </Z>
  5980. </Multipliers>
  5981. <Direct3DColorRange>true</Direct3DColorRange>
  5982. </DiffuseLight>
  5983. <SpecularLight>
  5984. <Color>
  5985. <X>
  5986. <Value>0.5</Value>
  5987. </X>
  5988. <Y>
  5989. <Value>0.5</Value>
  5990. </Y>
  5991. <Z>
  5992. <Value>0.5</Value>
  5993. </Z>
  5994. </Color>
  5995. <Offset>
  5996. </Offset>
  5997. <Multipliers>
  5998. <X>
  5999. <Value>1</Value>
  6000. </X>
  6001. <Y>
  6002. <Value>1</Value>
  6003. </Y>
  6004. <Z>
  6005. <Value>1</Value>
  6006. </Z>
  6007. </Multipliers>
  6008. <Direct3DColorRange>true</Direct3DColorRange>
  6009. </SpecularLight>
  6010. <AmbientOn>false</AmbientOn>
  6011. <DiffuseOn>true</DiffuseOn>
  6012. <SpecularOn>true</SpecularOn>
  6013. </Light>
  6014. <Camera>
  6015. <ShowReferenceFrame>false</ShowReferenceFrame>
  6016. <Name>Camera Looking at Origin</Name>
  6017. <Position>
  6018. <X>
  6019. <Value>2.3432919923881</Value>
  6020. </X>
  6021. <Y>
  6022. <Value>2.28068543057283</Value>
  6023. </Y>
  6024. <Z>
  6025. <Value>1.56751702352047</Value>
  6026. </Z>
  6027. </Position>
  6028. <Orientation>
  6029. <ZAxis>
  6030. <X>
  6031. <Value>-0.646203434499502</Value>
  6032. </X>
  6033. <Y>
  6034. <Value>-0.628938588548314</Value>
  6035. </Y>
  6036. <Z>
  6037. <Value>-0.432270023337153</Value>
  6038. </Z>
  6039. </ZAxis>
  6040. <YAxis>
  6041. <X>
  6042. <Value>-0.309771185077498</Value>
  6043. </X>
  6044. <Y>
  6045. <Value>-0.301494918649693</Value>
  6046. </Y>
  6047. <Z>
  6048. <Value>0.901744213690389</Value>
  6049. </Z>
  6050. </YAxis>
  6051. <OrientationType>Direct3D</OrientationType>
  6052. </Orientation>
  6053. <LockX>false</LockX>
  6054. <LockY>false</LockY>
  6055. <LockZ>false</LockZ>
  6056. <LockXPitch>false</LockXPitch>
  6057. <LockYYaw>false</LockYYaw>
  6058. <LockZRoll>false</LockZRoll>
  6059. <Childs>
  6060. </Childs>
  6061. <FrontPlane>0.01</FrontPlane>
  6062. <BackPlane>100.0</BackPlane>
  6063. <AutoFrontBack>true</AutoFrontBack>
  6064. <Field>0.003926990816987242</Field>
  6065. <Fieldy>45.0</Fieldy>
  6066. <PlaneLeft>-10.0</PlaneLeft>
  6067. <PlaneRight>10.0</PlaneRight>
  6068. <PlaneTop>10.0</PlaneTop>
  6069. <PlaneBottom>-10.0</PlaneBottom>
  6070. <UseLookatPosition>true</UseLookatPosition>
  6071. <LookatPosition>
  6072. <X>
  6073. <Value>-9.99200722162641e-016</Value>
  6074. </X>
  6075. <Y>
  6076. <Value>1.76247905159244e-015</Value>
  6077. </Y>
  6078. <Z>
  6079. <Value>-3.05678199886544e-015</Value>
  6080. </Z>
  6081. </LookatPosition>
  6082. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  6083. <LookUpVector>
  6084. <Z>
  6085. <Value>1</Value>
  6086. </Z>
  6087. </LookUpVector>
  6088. <RightHand>true</RightHand>
  6089. <Perspective>true</Perspective>
  6090. <IsSelectedCamera>true</IsSelectedCamera>
  6091. </Camera>
  6092. <Camera>
  6093. <ShowReferenceFrame>false</ShowReferenceFrame>
  6094. <Name>Front(XY)-Camera</Name>
  6095. <Position>
  6096. <Z>
  6097. <Value>10</Value>
  6098. </Z>
  6099. </Position>
  6100. <Orientation>
  6101. <ZAxis>
  6102. <Z>
  6103. <Value>-1</Value>
  6104. </Z>
  6105. </ZAxis>
  6106. <YAxis>
  6107. <Y>
  6108. <Value>1</Value>
  6109. </Y>
  6110. </YAxis>
  6111. <OrientationType>Direct3D</OrientationType>
  6112. </Orientation>
  6113. <LockX>false</LockX>
  6114. <LockY>false</LockY>
  6115. <LockZ>false</LockZ>
  6116. <LockXPitch>false</LockXPitch>
  6117. <LockYYaw>false</LockYYaw>
  6118. <LockZRoll>false</LockZRoll>
  6119. <Childs>
  6120. </Childs>
  6121. <FrontPlane>0.01</FrontPlane>
  6122. <BackPlane>100.0</BackPlane>
  6123. <AutoFrontBack>true</AutoFrontBack>
  6124. <Field>9.999999999999998</Field>
  6125. <Fieldy>45.0</Fieldy>
  6126. <PlaneLeft>-9.999999999999998</PlaneLeft>
  6127. <PlaneRight>9.999999999999998</PlaneRight>
  6128. <PlaneTop>9.999999999999998</PlaneTop>
  6129. <PlaneBottom>-9.999999999999998</PlaneBottom>
  6130. <UseLookatPosition>true</UseLookatPosition>
  6131. <LookatPosition>
  6132. </LookatPosition>
  6133. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  6134. <LookUpVector>
  6135. <Y>
  6136. <Value>1</Value>
  6137. </Y>
  6138. </LookUpVector>
  6139. <RightHand>true</RightHand>
  6140. <Perspective>false</Perspective>
  6141. <IsSelectedCamera>false</IsSelectedCamera>
  6142. </Camera>
  6143. <Camera>
  6144. <ShowReferenceFrame>false</ShowReferenceFrame>
  6145. <Name>Side(YZ)-Camera</Name>
  6146. <Position>
  6147. <X>
  6148. <Value>10</Value>
  6149. </X>
  6150. </Position>
  6151. <Orientation>
  6152. <ZAxis>
  6153. <X>
  6154. <Value>-1</Value>
  6155. </X>
  6156. </ZAxis>
  6157. <YAxis>
  6158. <Z>
  6159. <Value>1</Value>
  6160. </Z>
  6161. </YAxis>
  6162. <OrientationType>Direct3D</OrientationType>
  6163. </Orientation>
  6164. <LockX>false</LockX>
  6165. <LockY>false</LockY>
  6166. <LockZ>false</LockZ>
  6167. <LockXPitch>false</LockXPitch>
  6168. <LockYYaw>false</LockYYaw>
  6169. <LockZRoll>false</LockZRoll>
  6170. <Childs>
  6171. </Childs>
  6172. <FrontPlane>0.01</FrontPlane>
  6173. <BackPlane>100.0</BackPlane>
  6174. <AutoFrontBack>true</AutoFrontBack>
  6175. <Field>9.999999999999998</Field>
  6176. <Fieldy>45.0</Fieldy>
  6177. <PlaneLeft>-9.999999999999998</PlaneLeft>
  6178. <PlaneRight>9.999999999999998</PlaneRight>
  6179. <PlaneTop>9.999999999999998</PlaneTop>
  6180. <PlaneBottom>-9.999999999999998</PlaneBottom>
  6181. <UseLookatPosition>true</UseLookatPosition>
  6182. <LookatPosition>
  6183. </LookatPosition>
  6184. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  6185. <LookUpVector>
  6186. <Z>
  6187. <Value>1</Value>
  6188. </Z>
  6189. </LookUpVector>
  6190. <RightHand>true</RightHand>
  6191. <Perspective>false</Perspective>
  6192. <IsSelectedCamera>false</IsSelectedCamera>
  6193. </Camera>
  6194. <Camera>
  6195. <ShowReferenceFrame>false</ShowReferenceFrame>
  6196. <Name>Top(XZ)-Camera</Name>
  6197. <Position>
  6198. <Y>
  6199. <Value>10</Value>
  6200. </Y>
  6201. </Position>
  6202. <Orientation>
  6203. <ZAxis>
  6204. <Y>
  6205. <Value>-1</Value>
  6206. </Y>
  6207. </ZAxis>
  6208. <YAxis>
  6209. <X>
  6210. <Value>1</Value>
  6211. </X>
  6212. </YAxis>
  6213. <OrientationType>Direct3D</OrientationType>
  6214. </Orientation>
  6215. <LockX>false</LockX>
  6216. <LockY>false</LockY>
  6217. <LockZ>false</LockZ>
  6218. <LockXPitch>false</LockXPitch>
  6219. <LockYYaw>false</LockYYaw>
  6220. <LockZRoll>false</LockZRoll>
  6221. <Childs>
  6222. </Childs>
  6223. <FrontPlane>0.01</FrontPlane>
  6224. <BackPlane>100.0</BackPlane>
  6225. <AutoFrontBack>true</AutoFrontBack>
  6226. <Field>9.999999999999998</Field>
  6227. <Fieldy>45.0</Fieldy>
  6228. <PlaneLeft>-9.999999999999998</PlaneLeft>
  6229. <PlaneRight>9.999999999999998</PlaneRight>
  6230. <PlaneTop>9.999999999999998</PlaneTop>
  6231. <PlaneBottom>-9.999999999999998</PlaneBottom>
  6232. <UseLookatPosition>true</UseLookatPosition>
  6233. <LookatPosition>
  6234. </LookatPosition>
  6235. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  6236. <LookUpVector>
  6237. <X>
  6238. <Value>1</Value>
  6239. </X>
  6240. </LookUpVector>
  6241. <RightHand>true</RightHand>
  6242. <Perspective>false</Perspective>
  6243. <IsSelectedCamera>false</IsSelectedCamera>
  6244. </Camera>
  6245. </Childs>
  6246. </Frame>
  6247. <Frame>
  6248. <ScaleValue>
  6249. <X>
  6250. <Value>1</Value>
  6251. </X>
  6252. <Y>
  6253. <Value>1</Value>
  6254. </Y>
  6255. <Z>
  6256. <Value>1</Value>
  6257. </Z>
  6258. </ScaleValue>
  6259. <ShowReferenceFrame>false</ShowReferenceFrame>
  6260. <Name>Scenery</Name>
  6261. <Position>
  6262. </Position>
  6263. <Orientation>
  6264. <Angles>
  6265. </Angles>
  6266. <OrientationType>Bryant</OrientationType>
  6267. </Orientation>
  6268. <LockX>false</LockX>
  6269. <LockY>false</LockY>
  6270. <LockZ>false</LockZ>
  6271. <LockXPitch>false</LockXPitch>
  6272. <LockYYaw>false</LockYYaw>
  6273. <LockZRoll>false</LockZRoll>
  6274. <Childs>
  6275. <Frame>
  6276. <ScaleValue>
  6277. <X>
  6278. <Value>10</Value>
  6279. </X>
  6280. <Y>
  6281. <Value>10</Value>
  6282. </Y>
  6283. <Z>
  6284. <Value>10</Value>
  6285. </Z>
  6286. </ScaleValue>
  6287. <ShowReferenceFrame>false</ShowReferenceFrame>
  6288. <Name>Reference Frame</Name>
  6289. <Position>
  6290. </Position>
  6291. <Orientation>
  6292. <Angles>
  6293. </Angles>
  6294. <OrientationType>Bryant</OrientationType>
  6295. </Orientation>
  6296. <LockX>false</LockX>
  6297. <LockY>false</LockY>
  6298. <LockZ>false</LockZ>
  6299. <LockXPitch>false</LockXPitch>
  6300. <LockYYaw>false</LockYYaw>
  6301. <LockZRoll>false</LockZRoll>
  6302. <Childs>
  6303. <Cube>
  6304. <Center>Center</Center>
  6305. <RibLength>1.0</RibLength>
  6306. <ShowInnerSide>true</ShowInnerSide>
  6307. <Accuracy>4</Accuracy>
  6308. <ScaleValue>
  6309. <X>
  6310. <VariableName>Submodel3\dimension[1]</VariableName>
  6311. <Value>0.005</Value>
  6312. </X>
  6313. <Y>
  6314. <VariableName>Submodel3\dimension[2]</VariableName>
  6315. <Value>0.065</Value>
  6316. </Y>
  6317. <Z>
  6318. <VariableName>Submodel3\dimension[3]</VariableName>
  6319. <Value>0.01</Value>
  6320. </Z>
  6321. </ScaleValue>
  6322. <OverrideColor>true</OverrideColor>
  6323. <MeshColor>
  6324. <X>
  6325. <Value>1</Value>
  6326. </X>
  6327. <Y>
  6328. <Value>1</Value>
  6329. </Y>
  6330. <Z>
  6331. <Value>1</Value>
  6332. </Z>
  6333. </MeshColor>
  6334. <Alpha>1.0</Alpha>
  6335. <MeshColorMultipliers>
  6336. <X>
  6337. <Value>1</Value>
  6338. </X>
  6339. <Y>
  6340. <Value>1</Value>
  6341. </Y>
  6342. <Z>
  6343. <Value>1</Value>
  6344. </Z>
  6345. </MeshColorMultipliers>
  6346. <MeshColorOffsets>
  6347. </MeshColorOffsets>
  6348. <Direct3DColorRange>true</Direct3DColorRange>
  6349. <SpecularColor>
  6350. <X>
  6351. <Value>0.498039215686275</Value>
  6352. </X>
  6353. <Y>
  6354. <Value>0.498039215686275</Value>
  6355. </Y>
  6356. <Z>
  6357. <Value>0.498039215686275</Value>
  6358. </Z>
  6359. </SpecularColor>
  6360. <EmissiveColor>
  6361. </EmissiveColor>
  6362. <ShininessPower>
  6363. <Value>14.298713684082</Value>
  6364. </ShininessPower>
  6365. <OverrideQuality>false</OverrideQuality>
  6366. <ShowReferenceFrame>false</ShowReferenceFrame>
  6367. <Name>Block</Name>
  6368. <Position>
  6369. <X>
  6370. <VariableName>Submodel3\body_position[1]</VariableName>
  6371. <Value>0.0</Value>
  6372. </X>
  6373. <Y>
  6374. <VariableName>Submodel3\body_position[2]</VariableName>
  6375. <Value>-0.009158353632383561</Value>
  6376. </Y>
  6377. <Z>
  6378. <VariableName>Submodel3\body_position[3]</VariableName>
  6379. <Value>0.03118053280824738</Value>
  6380. </Z>
  6381. </Position>
  6382. <Orientation>
  6383. <Angles>
  6384. <X>
  6385. <VariableName>Submodel3\body_angle[1]</VariableName>
  6386. <Value>1.8564889888314844</Value>
  6387. </X>
  6388. <Y>
  6389. <VariableName>Submodel3\body_angle[2]</VariableName>
  6390. <Value>0.0</Value>
  6391. </Y>
  6392. <Z>
  6393. <VariableName>Submodel3\body_angle[3]</VariableName>
  6394. <Value>0.0</Value>
  6395. </Z>
  6396. </Angles>
  6397. <OrientationType>Euler</OrientationType>
  6398. </Orientation>
  6399. <LockX>false</LockX>
  6400. <LockY>false</LockY>
  6401. <LockZ>false</LockZ>
  6402. <LockXPitch>false</LockXPitch>
  6403. <LockYYaw>false</LockYYaw>
  6404. <LockZRoll>false</LockZRoll>
  6405. <Childs>
  6406. </Childs>
  6407. </Cube>
  6408. <Cube>
  6409. <Center>Center</Center>
  6410. <RibLength>1.0</RibLength>
  6411. <ShowInnerSide>true</ShowInnerSide>
  6412. <Accuracy>4</Accuracy>
  6413. <ScaleValue>
  6414. <X>
  6415. <VariableName>Submodel4\dimension[1]</VariableName>
  6416. <Value>0.005</Value>
  6417. </X>
  6418. <Y>
  6419. <VariableName>Submodel4\dimension[2]</VariableName>
  6420. <Value>0.05</Value>
  6421. </Y>
  6422. <Z>
  6423. <VariableName>Submodel4\dimension[3]</VariableName>
  6424. <Value>0.01</Value>
  6425. </Z>
  6426. </ScaleValue>
  6427. <OverrideColor>true</OverrideColor>
  6428. <MeshColor>
  6429. <X>
  6430. <Value>1</Value>
  6431. </X>
  6432. <Y>
  6433. <Value>1</Value>
  6434. </Y>
  6435. <Z>
  6436. <Value>1</Value>
  6437. </Z>
  6438. </MeshColor>
  6439. <Alpha>1.0</Alpha>
  6440. <MeshColorMultipliers>
  6441. <X>
  6442. <Value>1</Value>
  6443. </X>
  6444. <Y>
  6445. <Value>1</Value>
  6446. </Y>
  6447. <Z>
  6448. <Value>1</Value>
  6449. </Z>
  6450. </MeshColorMultipliers>
  6451. <MeshColorOffsets>
  6452. </MeshColorOffsets>
  6453. <Direct3DColorRange>true</Direct3DColorRange>
  6454. <SpecularColor>
  6455. <X>
  6456. <Value>0.5</Value>
  6457. </X>
  6458. <Y>
  6459. <Value>0.5</Value>
  6460. </Y>
  6461. <Z>
  6462. <Value>0.5</Value>
  6463. </Z>
  6464. </SpecularColor>
  6465. <EmissiveColor>
  6466. </EmissiveColor>
  6467. <ShininessPower>
  6468. <Value>15</Value>
  6469. </ShininessPower>
  6470. <OverrideQuality>false</OverrideQuality>
  6471. <ShowReferenceFrame>false</ShowReferenceFrame>
  6472. <Name>Block</Name>
  6473. <Position>
  6474. <X>
  6475. <VariableName>Submodel4\body_position[1]</VariableName>
  6476. <Value>0.0</Value>
  6477. </X>
  6478. <Y>
  6479. <VariableName>Submodel4\body_position[2]</VariableName>
  6480. <Value>0.0013903741642251554</Value>
  6481. </Y>
  6482. <Z>
  6483. <VariableName>Submodel4\body_position[3]</VariableName>
  6484. <Value>0.07774345829579168</Value>
  6485. </Z>
  6486. </Position>
  6487. <Orientation>
  6488. <Angles>
  6489. <X>
  6490. <VariableName>Submodel4\body_angle[1]</VariableName>
  6491. <Value>0.66277054304191</Value>
  6492. </X>
  6493. <Y>
  6494. <VariableName>Submodel4\body_angle[2]</VariableName>
  6495. <Value>0.0</Value>
  6496. </Y>
  6497. <Z>
  6498. <VariableName>Submodel4\body_angle[3]</VariableName>
  6499. <Value>0.0</Value>
  6500. </Z>
  6501. </Angles>
  6502. <OrientationType>Euler</OrientationType>
  6503. </Orientation>
  6504. <LockX>false</LockX>
  6505. <LockY>false</LockY>
  6506. <LockZ>false</LockZ>
  6507. <LockXPitch>false</LockXPitch>
  6508. <LockYYaw>false</LockYYaw>
  6509. <LockZRoll>false</LockZRoll>
  6510. <Childs>
  6511. </Childs>
  6512. </Cube>
  6513. </Childs>
  6514. </Frame>
  6515. <Frame>
  6516. <ScaleValue>
  6517. <X>
  6518. <Value>10</Value>
  6519. </X>
  6520. <Y>
  6521. <Value>10</Value>
  6522. </Y>
  6523. <Z>
  6524. <Value>10</Value>
  6525. </Z>
  6526. </ScaleValue>
  6527. <ShowReferenceFrame>false</ShowReferenceFrame>
  6528. <Name>Reference Frame</Name>
  6529. <Position>
  6530. <X>
  6531. <Value>0.5</Value>
  6532. </X>
  6533. </Position>
  6534. <Orientation>
  6535. <Angles>
  6536. </Angles>
  6537. <OrientationType>Bryant</OrientationType>
  6538. </Orientation>
  6539. <LockX>false</LockX>
  6540. <LockY>false</LockY>
  6541. <LockZ>false</LockZ>
  6542. <LockXPitch>false</LockXPitch>
  6543. <LockYYaw>false</LockYYaw>
  6544. <LockZRoll>false</LockZRoll>
  6545. <Childs>
  6546. <Cube>
  6547. <Center>Center</Center>
  6548. <RibLength>1.0</RibLength>
  6549. <ShowInnerSide>true</ShowInnerSide>
  6550. <Accuracy>4</Accuracy>
  6551. <ScaleValue>
  6552. <X>
  6553. <VariableName>Submodel3\dimension[1]</VariableName>
  6554. <Value>0.005</Value>
  6555. </X>
  6556. <Y>
  6557. <VariableName>Submodel3\dimension[2]</VariableName>
  6558. <Value>0.065</Value>
  6559. </Y>
  6560. <Z>
  6561. <VariableName>Submodel3\dimension[3]</VariableName>
  6562. <Value>0.01</Value>
  6563. </Z>
  6564. </ScaleValue>
  6565. <OverrideColor>true</OverrideColor>
  6566. <MeshColor>
  6567. <X>
  6568. <Value>1</Value>
  6569. </X>
  6570. <Y>
  6571. <Value>1</Value>
  6572. </Y>
  6573. <Z>
  6574. <Value>1</Value>
  6575. </Z>
  6576. </MeshColor>
  6577. <Alpha>1.0</Alpha>
  6578. <MeshColorMultipliers>
  6579. <X>
  6580. <Value>1</Value>
  6581. </X>
  6582. <Y>
  6583. <Value>1</Value>
  6584. </Y>
  6585. <Z>
  6586. <Value>1</Value>
  6587. </Z>
  6588. </MeshColorMultipliers>
  6589. <MeshColorOffsets>
  6590. </MeshColorOffsets>
  6591. <Direct3DColorRange>true</Direct3DColorRange>
  6592. <SpecularColor>
  6593. <X>
  6594. <Value>0.498039215686275</Value>
  6595. </X>
  6596. <Y>
  6597. <Value>0.498039215686275</Value>
  6598. </Y>
  6599. <Z>
  6600. <Value>0.498039215686275</Value>
  6601. </Z>
  6602. </SpecularColor>
  6603. <EmissiveColor>
  6604. </EmissiveColor>
  6605. <ShininessPower>
  6606. <Value>14.298713684082</Value>
  6607. </ShininessPower>
  6608. <OverrideQuality>false</OverrideQuality>
  6609. <ShowReferenceFrame>false</ShowReferenceFrame>
  6610. <Name>Block</Name>
  6611. <Position>
  6612. <X>
  6613. <VariableName>new_joint1\position[1]</VariableName>
  6614. <Value>0.0</Value>
  6615. </X>
  6616. <Y>
  6617. <VariableName>new_joint1\position[2]</VariableName>
  6618. <Value>-0.009202768540009312</Value>
  6619. </Y>
  6620. <Z>
  6621. <VariableName>new_joint1\position[3]</VariableName>
  6622. <Value>0.031169842014341604</Value>
  6623. </Z>
  6624. </Position>
  6625. <Orientation>
  6626. <ZAxis>
  6627. <X>
  6628. <VariableName>new_joint1\R[1,3]</VariableName>
  6629. <Value>0.0</Value>
  6630. </X>
  6631. <Y>
  6632. <VariableName>new_joint1\R[2,3]</VariableName>
  6633. <Value>-0.9590720619797416</Value>
  6634. </Y>
  6635. <Z>
  6636. <VariableName>new_joint1\R[3,3]</VariableName>
  6637. <Value>-0.2831621089233634</Value>
  6638. </Z>
  6639. </ZAxis>
  6640. <YAxis>
  6641. <X>
  6642. <VariableName>new_joint1\R[1,2]</VariableName>
  6643. <Value>0.0</Value>
  6644. </X>
  6645. <Y>
  6646. <VariableName>new_joint1\R[2,2]</VariableName>
  6647. <Value>-0.2831621089233634</Value>
  6648. </Y>
  6649. <Z>
  6650. <VariableName>new_joint1\R[3,2]</VariableName>
  6651. <Value>0.9590720619797416</Value>
  6652. </Z>
  6653. </YAxis>
  6654. <OrientationType>Matrix</OrientationType>
  6655. </Orientation>
  6656. <LockX>false</LockX>
  6657. <LockY>false</LockY>
  6658. <LockZ>false</LockZ>
  6659. <LockXPitch>false</LockXPitch>
  6660. <LockYYaw>false</LockYYaw>
  6661. <LockZRoll>false</LockZRoll>
  6662. <Childs>
  6663. </Childs>
  6664. </Cube>
  6665. <Cube>
  6666. <Center>Center</Center>
  6667. <RibLength>1.0</RibLength>
  6668. <ShowInnerSide>true</ShowInnerSide>
  6669. <Accuracy>4</Accuracy>
  6670. <ScaleValue>
  6671. <X>
  6672. <VariableName>Submodel4\dimension[1]</VariableName>
  6673. <Value>0.005</Value>
  6674. </X>
  6675. <Y>
  6676. <VariableName>Submodel4\dimension[2]</VariableName>
  6677. <Value>0.05</Value>
  6678. </Y>
  6679. <Z>
  6680. <VariableName>Submodel4\dimension[3]</VariableName>
  6681. <Value>0.01</Value>
  6682. </Z>
  6683. </ScaleValue>
  6684. <OverrideColor>true</OverrideColor>
  6685. <MeshColor>
  6686. <X>
  6687. <Value>1</Value>
  6688. </X>
  6689. <Y>
  6690. <Value>1</Value>
  6691. </Y>
  6692. <Z>
  6693. <Value>1</Value>
  6694. </Z>
  6695. </MeshColor>
  6696. <Alpha>1.0</Alpha>
  6697. <MeshColorMultipliers>
  6698. <X>
  6699. <Value>1</Value>
  6700. </X>
  6701. <Y>
  6702. <Value>1</Value>
  6703. </Y>
  6704. <Z>
  6705. <Value>1</Value>
  6706. </Z>
  6707. </MeshColorMultipliers>
  6708. <MeshColorOffsets>
  6709. </MeshColorOffsets>
  6710. <Direct3DColorRange>true</Direct3DColorRange>
  6711. <SpecularColor>
  6712. <X>
  6713. <Value>0.5</Value>
  6714. </X>
  6715. <Y>
  6716. <Value>0.5</Value>
  6717. </Y>
  6718. <Z>
  6719. <Value>0.5</Value>
  6720. </Z>
  6721. </SpecularColor>
  6722. <EmissiveColor>
  6723. </EmissiveColor>
  6724. <ShininessPower>
  6725. <Value>15</Value>
  6726. </ShininessPower>
  6727. <OverrideQuality>false</OverrideQuality>
  6728. <ShowReferenceFrame>false</ShowReferenceFrame>
  6729. <Name>Block</Name>
  6730. <Position>
  6731. <X>
  6732. <VariableName>new_joint2\position[1]</VariableName>
  6733. <Value>0.0</Value>
  6734. </X>
  6735. <Y>
  6736. <VariableName>new_joint2\position[2]</VariableName>
  6737. <Value>0.0027085042716763867</Value>
  6738. </Y>
  6739. <Z>
  6740. <VariableName>new_joint2\position[3]</VariableName>
  6741. <Value>0.07572614202917434</Value>
  6742. </Z>
  6743. </Position>
  6744. <Orientation>
  6745. <ZAxis>
  6746. <X>
  6747. <VariableName>new_joint2\R[1,3]</VariableName>
  6748. <Value>0.0</Value>
  6749. </X>
  6750. <Y>
  6751. <VariableName>new_joint2\R[2,3]</VariableName>
  6752. <Value>-0.5354583200196454</Value>
  6753. </Y>
  6754. <Z>
  6755. <VariableName>new_joint2\R[3,3]</VariableName>
  6756. <Value>0.8445616540678004</Value>
  6757. </Z>
  6758. </ZAxis>
  6759. <YAxis>
  6760. <X>
  6761. <VariableName>new_joint2\R[1,2]</VariableName>
  6762. <Value>0.0</Value>
  6763. </X>
  6764. <Y>
  6765. <VariableName>new_joint2\R[2,2]</VariableName>
  6766. <Value>0.8445616540678004</Value>
  6767. </Y>
  6768. <Z>
  6769. <VariableName>new_joint2\R[3,2]</VariableName>
  6770. <Value>0.5354583200196454</Value>
  6771. </Z>
  6772. </YAxis>
  6773. <OrientationType>Matrix</OrientationType>
  6774. </Orientation>
  6775. <LockX>false</LockX>
  6776. <LockY>false</LockY>
  6777. <LockZ>false</LockZ>
  6778. <LockXPitch>false</LockXPitch>
  6779. <LockYYaw>false</LockYYaw>
  6780. <LockZRoll>false</LockZRoll>
  6781. <Childs>
  6782. </Childs>
  6783. </Cube>
  6784. </Childs>
  6785. </Frame>
  6786. </Childs>
  6787. </Frame>
  6788. </Childs>
  6789. </Frame>
  6790. </MainFrame>
  6791. </Plot>
  6792. <Plot>
  6793. <PlotType>GraphPlot</PlotType>
  6794. <BasePlot>
  6795. <PlotId>4</PlotId>
  6796. <UseWindowsBGColor>false</UseWindowsBGColor>
  6797. <BGColor>16777215</BGColor>
  6798. <PlotIsVisible>true</PlotIsVisible>
  6799. </BasePlot>
  6800. <Grid>
  6801. <DrawGrid>true</DrawGrid>
  6802. <GridColor>15780518</GridColor>
  6803. <GridBorderLineColor>12624260</GridBorderLineColor>
  6804. <GridZeroLineColor>0</GridZeroLineColor>
  6805. <XTicks>10</XTicks>
  6806. <YTicks>10</YTicks>
  6807. <ZTicks>10</ZTicks>
  6808. <Use3DLook>false</Use3DLook>
  6809. </Grid>
  6810. <PlotBGColor>16777215</PlotBGColor>
  6811. <ShowPlotTitle>true</ShowPlotTitle>
  6812. <TitlePosition>1</TitlePosition>
  6813. <PlotTitle>model(2)</PlotTitle>
  6814. <ShowXValues>true</ShowXValues>
  6815. <Fonts>
  6816. <TitleFont>
  6817. <Name>Arial</Name>
  6818. <Height>12</Height>
  6819. <PitchFamily>34</PitchFamily>
  6820. <Weight>400</Weight>
  6821. <Italic>0</Italic>
  6822. <UnderLine>0</UnderLine>
  6823. <StrikeOut>0</StrikeOut>
  6824. <Color>0</Color>
  6825. </TitleFont>
  6826. <LabelFont>
  6827. <Name>Arial</Name>
  6828. <Height>12</Height>
  6829. <PitchFamily>34</PitchFamily>
  6830. <Weight>400</Weight>
  6831. <Italic>0</Italic>
  6832. <UnderLine>0</UnderLine>
  6833. <StrikeOut>0</StrikeOut>
  6834. <Color>0</Color>
  6835. </LabelFont>
  6836. <ValuesFont>
  6837. <Name>Arial</Name>
  6838. <Height>10</Height>
  6839. <PitchFamily>34</PitchFamily>
  6840. <Weight>400</Weight>
  6841. <Italic>0</Italic>
  6842. <UnderLine>0</UnderLine>
  6843. <StrikeOut>0</StrikeOut>
  6844. <Color>0</Color>
  6845. </ValuesFont>
  6846. <LegendFont>
  6847. <Name>Arial</Name>
  6848. <Height>12</Height>
  6849. <PitchFamily>34</PitchFamily>
  6850. <Weight>400</Weight>
  6851. <Italic>0</Italic>
  6852. <UnderLine>0</UnderLine>
  6853. <StrikeOut>0</StrikeOut>
  6854. <Color>0</Color>
  6855. </LegendFont>
  6856. </Fonts>
  6857. <SharedXAxis>true</SharedXAxis>
  6858. <SharedYAxis>true</SharedYAxis>
  6859. <SharedZAxis>false</SharedZAxis>
  6860. <XAxes>
  6861. <Axis>
  6862. <Minimum>0.021097455593261694</Minimum>
  6863. <Maximum>0.115</Maximum>
  6864. <Linear>true</Linear>
  6865. <Scaling>3</Scaling>
  6866. <Label>output[1]</Label>
  6867. </Axis>
  6868. </XAxes>
  6869. <YAxes>
  6870. <Axis>
  6871. <Minimum>-0.06</Minimum>
  6872. <Maximum>0.14</Maximum>
  6873. <Linear>true</Linear>
  6874. <Scaling>2</Scaling>
  6875. <Label>output[2]</Label>
  6876. </Axis>
  6877. <Axis>
  6878. <Minimum>-0.06</Minimum>
  6879. <Maximum>0.14</Maximum>
  6880. <Linear>true</Linear>
  6881. <Scaling>2</Scaling>
  6882. <Label>position[3]</Label>
  6883. </Axis>
  6884. </YAxes>
  6885. <ZAxes>
  6886. </ZAxes>
  6887. <Curves>
  6888. <Curve>
  6889. <LineColor>3355111</LineColor>
  6890. <LineStyle>1</LineStyle>
  6891. <TickColor>3355111</TickColor>
  6892. <TickStyle>0</TickStyle>
  6893. <CurveVisible>true</CurveVisible>
  6894. <PixelThresshold>1</PixelThresshold>
  6895. <LineThickness>1</LineThickness>
  6896. <LineOrder>1</LineOrder>
  6897. <ShowYValues>true</ShowYValues>
  6898. <XCurveData>
  6899. <ShowUnit>true</ShowUnit>
  6900. <VarName>Integrate\output[1]</VarName>
  6901. </XCurveData>
  6902. <YCurveData>
  6903. <ShowUnit>true</ShowUnit>
  6904. <VarName>Integrate\output[2]</VarName>
  6905. </YCurveData>
  6906. </Curve>
  6907. <Curve>
  6908. <LineColor>6076255</LineColor>
  6909. <LineStyle>1</LineStyle>
  6910. <TickColor>6076255</TickColor>
  6911. <TickStyle>0</TickStyle>
  6912. <CurveVisible>true</CurveVisible>
  6913. <PixelThresshold>1</PixelThresshold>
  6914. <LineThickness>1</LineThickness>
  6915. <LineOrder>1</LineOrder>
  6916. <ShowYValues>true</ShowYValues>
  6917. <XCurveData>
  6918. <ShowUnit>true</ShowUnit>
  6919. <VarName>new_joint3\position[2]</VarName>
  6920. </XCurveData>
  6921. <YCurveData>
  6922. <ShowUnit>true</ShowUnit>
  6923. <VarName>new_joint3\position[3]</VarName>
  6924. </YCurveData>
  6925. </Curve>
  6926. </Curves>
  6927. <Legenda>
  6928. <ShowLegenda>true</ShowLegenda>
  6929. <BorderPenColor>0</BorderPenColor>
  6930. <BackgroundColor>16777215</BackgroundColor>
  6931. </Legenda>
  6932. </Plot>
  6933. <Plot>
  6934. <PlotType>GraphPlot</PlotType>
  6935. <BasePlot>
  6936. <PlotId>5</PlotId>
  6937. <UseWindowsBGColor>false</UseWindowsBGColor>
  6938. <BGColor>16777215</BGColor>
  6939. <PlotIsVisible>true</PlotIsVisible>
  6940. </BasePlot>
  6941. <Grid>
  6942. <DrawGrid>true</DrawGrid>
  6943. <GridColor>15780518</GridColor>
  6944. <GridBorderLineColor>12624260</GridBorderLineColor>
  6945. <GridZeroLineColor>0</GridZeroLineColor>
  6946. <XTicks>10</XTicks>
  6947. <YTicks>10</YTicks>
  6948. <ZTicks>10</ZTicks>
  6949. <Use3DLook>false</Use3DLook>
  6950. </Grid>
  6951. <PlotBGColor>16777215</PlotBGColor>
  6952. <ShowPlotTitle>true</ShowPlotTitle>
  6953. <TitlePosition>1</TitlePosition>
  6954. <PlotTitle>Plot</PlotTitle>
  6955. <ShowXValues>true</ShowXValues>
  6956. <Fonts>
  6957. <TitleFont>
  6958. <Name>Arial</Name>
  6959. <Height>12</Height>
  6960. <PitchFamily>34</PitchFamily>
  6961. <Weight>400</Weight>
  6962. <Italic>0</Italic>
  6963. <UnderLine>0</UnderLine>
  6964. <StrikeOut>0</StrikeOut>
  6965. <Color>0</Color>
  6966. </TitleFont>
  6967. <LabelFont>
  6968. <Name>Arial</Name>
  6969. <Height>12</Height>
  6970. <PitchFamily>34</PitchFamily>
  6971. <Weight>400</Weight>
  6972. <Italic>0</Italic>
  6973. <UnderLine>0</UnderLine>
  6974. <StrikeOut>0</StrikeOut>
  6975. <Color>0</Color>
  6976. </LabelFont>
  6977. <ValuesFont>
  6978. <Name>Arial</Name>
  6979. <Height>10</Height>
  6980. <PitchFamily>34</PitchFamily>
  6981. <Weight>400</Weight>
  6982. <Italic>0</Italic>
  6983. <UnderLine>0</UnderLine>
  6984. <StrikeOut>0</StrikeOut>
  6985. <Color>0</Color>
  6986. </ValuesFont>
  6987. <LegendFont>
  6988. <Name>Arial</Name>
  6989. <Height>12</Height>
  6990. <PitchFamily>34</PitchFamily>
  6991. <Weight>400</Weight>
  6992. <Italic>0</Italic>
  6993. <UnderLine>0</UnderLine>
  6994. <StrikeOut>0</StrikeOut>
  6995. <Color>0</Color>
  6996. </LegendFont>
  6997. </Fonts>
  6998. <SharedXAxis>true</SharedXAxis>
  6999. <SharedYAxis>true</SharedYAxis>
  7000. <SharedZAxis>false</SharedZAxis>
  7001. <XAxes>
  7002. <Axis>
  7003. <Minimum>0.0</Minimum>
  7004. <Maximum>0.10311339559032781</Maximum>
  7005. <Linear>true</Linear>
  7006. <Scaling>3</Scaling>
  7007. <Label>time</Label>
  7008. </Axis>
  7009. </XAxes>
  7010. <YAxes>
  7011. <Axis>
  7012. <Minimum>-5.0</Minimum>
  7013. <Maximum>5.0</Maximum>
  7014. <Linear>true</Linear>
  7015. <Scaling>2</Scaling>
  7016. <Label>error new joint 1</Label>
  7017. </Axis>
  7018. <Axis>
  7019. <Minimum>-1885.20460252739</Minimum>
  7020. <Maximum>0.0</Maximum>
  7021. <Linear>true</Linear>
  7022. <Scaling>2</Scaling>
  7023. <Label>error new joint 2</Label>
  7024. </Axis>
  7025. </YAxes>
  7026. <ZAxes>
  7027. </ZAxes>
  7028. <Curves>
  7029. <Curve>
  7030. <LineColor>3355111</LineColor>
  7031. <LineStyle>1</LineStyle>
  7032. <TickColor>3355111</TickColor>
  7033. <TickStyle>0</TickStyle>
  7034. <CurveVisible>true</CurveVisible>
  7035. <PixelThresshold>1</PixelThresshold>
  7036. <LineThickness>1</LineThickness>
  7037. <LineOrder>1</LineOrder>
  7038. <ShowYValues>true</ShowYValues>
  7039. <XCurveData>
  7040. <ShowUnit>true</ShowUnit>
  7041. <VarName>time</VarName>
  7042. </XCurveData>
  7043. <YCurveData>
  7044. <ShowUnit>true</ShowUnit>
  7045. <VarName>PID2\error</VarName>
  7046. </YCurveData>
  7047. </Curve>
  7048. <Curve>
  7049. <LineColor>6076255</LineColor>
  7050. <LineStyle>1</LineStyle>
  7051. <TickColor>6076255</TickColor>
  7052. <TickStyle>0</TickStyle>
  7053. <CurveVisible>true</CurveVisible>
  7054. <PixelThresshold>1</PixelThresshold>
  7055. <LineThickness>1</LineThickness>
  7056. <LineOrder>1</LineOrder>
  7057. <ShowYValues>true</ShowYValues>
  7058. <XCurveData>
  7059. <ShowUnit>true</ShowUnit>
  7060. <VarName>time</VarName>
  7061. </XCurveData>
  7062. <YCurveData>
  7063. <ShowUnit>true</ShowUnit>
  7064. <VarName>PID3\error</VarName>
  7065. </YCurveData>
  7066. </Curve>
  7067. </Curves>
  7068. <Legenda>
  7069. <ShowLegenda>true</ShowLegenda>
  7070. <BorderPenColor>0</BorderPenColor>
  7071. <BackgroundColor>16777215</BackgroundColor>
  7072. </Legenda>
  7073. </Plot>
  7074. </Plots>
  7075. <PlotPanels>
  7076. <PlotPanel>
  7077. <PlotPanelId>1</PlotPanelId>
  7078. <PlotPanelVisible>true</PlotPanelVisible>
  7079. <Name>Window 1</Name>
  7080. <Tiling>0</Tiling>
  7081. <PlotIds>
  7082. <PlotId>1</PlotId>
  7083. <PlotId>2</PlotId>
  7084. <PlotId>4</PlotId>
  7085. </PlotIds>
  7086. <ToggleState>Base</ToggleState>
  7087. </PlotPanel>
  7088. <PlotPanel>
  7089. <PlotPanelId>2</PlotPanelId>
  7090. <PlotPanelVisible>false</PlotPanelVisible>
  7091. <Name>Window 2</Name>
  7092. <Tiling>0</Tiling>
  7093. <PlotIds>
  7094. <PlotId>3</PlotId>
  7095. </PlotIds>
  7096. <ToggleState>Base</ToggleState>
  7097. </PlotPanel>
  7098. <PlotPanel>
  7099. <PlotPanelId>3</PlotPanelId>
  7100. <PlotPanelVisible>false</PlotPanelVisible>
  7101. <Name>Window 3</Name>
  7102. <Tiling>0</Tiling>
  7103. <PlotIds>
  7104. <PlotId>5</PlotId>
  7105. </PlotIds>
  7106. <ToggleState>Base</ToggleState>
  7107. </PlotPanel>
  7108. </PlotPanels>
  7109. <WindowRectangles virtualDesktopWidth="5760" virtualDesktopHeight="1080">
  7110. <WindowRectangle monitor="2" left="1920" top="0" right="3840" bottom="1080" plotpanelid="1">
  7111. 0.149479 0.0675926 0.908333 0.847222
  7112. </WindowRectangle>
  7113. <WindowRectangle monitor="1" left="-1920" top="0" right="0" bottom="1080" plotpanelid="2">
  7114. 0.138021 0.169444 0.777604 0.862963
  7115. </WindowRectangle>
  7116. <WindowRectangle monitor="1" left="-1920" top="0" right="0" bottom="1080" plotpanelid="3">
  7117. 0.526042 0.287963 0.922396 0.725926
  7118. </WindowRectangle>
  7119. </WindowRectangles>
  7120. </PlotSpecs>
  7121. <RunSpecs>
  7122. <SimulatorSettings>
  7123. <StartTime>0.0</StartTime>
  7124. <FinishTime>10.0</FinishTime>
  7125. <AllowPassFinishTime>false</AllowPassFinishTime>
  7126. <Warp>false</Warp>
  7127. <FPGonio>false</FPGonio>
  7128. <UseOutputAfterEach>false</UseOutputAfterEach>
  7129. <OutputAfterEach>0.1</OutputAfterEach>
  7130. <EventEpsilon>1.0e-6</EventEpsilon>
  7131. <AlgebraicTolerance>1.0e-7</AlgebraicTolerance>
  7132. <SteadyStateAnalysis>false</SteadyStateAnalysis>
  7133. <UpdateHoldInstructions>true</UpdateHoldInstructions>
  7134. </SimulatorSettings>
  7135. <IntegrationMethods>
  7136. <IntegrationMethod>
  7137. <Name>Euler</Name>
  7138. <StepSize>0.01</StepSize>
  7139. <AutoStepSize>false</AutoStepSize>
  7140. </IntegrationMethod>
  7141. <IntegrationMethod>
  7142. <Name>BackwardEuler</Name>
  7143. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  7144. <RelativeTolerance>1.0e-5</RelativeTolerance>
  7145. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  7146. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  7147. <StepSize>0.01</StepSize>
  7148. <Alpha>1.0</Alpha>
  7149. </IntegrationMethod>
  7150. <IntegrationMethod>
  7151. <Name>AdamsBashforth</Name>
  7152. <StepSize>0.01</StepSize>
  7153. <AutoStepSize>false</AutoStepSize>
  7154. </IntegrationMethod>
  7155. <IntegrationMethod>
  7156. <Name>RungeKutta2</Name>
  7157. <StepSize>0.01</StepSize>
  7158. <AutoStepSize>false</AutoStepSize>
  7159. </IntegrationMethod>
  7160. <IntegrationMethod>
  7161. <Name>RungeKutta4</Name>
  7162. <StepSize>0.01</StepSize>
  7163. <AutoStepSize>false</AutoStepSize>
  7164. </IntegrationMethod>
  7165. <IntegrationMethod>
  7166. <Name>RungeKutta8</Name>
  7167. <UseInitialStepSize>false</UseInitialStepSize>
  7168. <InitialStepSize>0.0</InitialStepSize>
  7169. <UseMaximumStepSize>false</UseMaximumStepSize>
  7170. <MaximumStepSize>0.0</MaximumStepSize>
  7171. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  7172. <RelativeTolerance>1.0e-6</RelativeTolerance>
  7173. <SafetyFactor>0.9</SafetyFactor>
  7174. <Factor1>0.33</Factor1>
  7175. <Factor2>6.0</Factor2>
  7176. <Beta>0.0</Beta>
  7177. <UseMaxNrSteps>false</UseMaxNrSteps>
  7178. <MaxNrSteps>100000</MaxNrSteps>
  7179. <UseStiffDetection>false</UseStiffDetection>
  7180. <MaxNrStiffnessSteps>1000</MaxNrStiffnessSteps>
  7181. </IntegrationMethod>
  7182. <IntegrationMethod>
  7183. <Name>RungeKuttaFehlberg</Name>
  7184. <UseInitialStepSize>false</UseInitialStepSize>
  7185. <InitialStepSize>0.0</InitialStepSize>
  7186. <UseMaximumStepSize>false</UseMaximumStepSize>
  7187. <MaximumStepSize>0.0</MaximumStepSize>
  7188. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  7189. <RelativeTolerance>1.0e-6</RelativeTolerance>
  7190. </IntegrationMethod>
  7191. <IntegrationMethod>
  7192. <Name>VodeAdams</Name>
  7193. <UseInitialStepSize>false</UseInitialStepSize>
  7194. <InitialStepSize>0.0</InitialStepSize>
  7195. <UseMaximumStepSize>false</UseMaximumStepSize>
  7196. <MaximumStepSize>0.0</MaximumStepSize>
  7197. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  7198. <RelativeTolerance>1.0e-6</RelativeTolerance>
  7199. <VodeUseBDF>true</VodeUseBDF>
  7200. <VodeUseNewton>true</VodeUseNewton>
  7201. </IntegrationMethod>
  7202. <IntegrationMethod>
  7203. <Name>BDFMethod</Name>
  7204. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  7205. <RelativeTolerance>1.0e-5</RelativeTolerance>
  7206. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  7207. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  7208. <UseInitialStepSize>false</UseInitialStepSize>
  7209. <InitialStepSize>0.0</InitialStepSize>
  7210. <UseMaximumStepSize>false</UseMaximumStepSize>
  7211. <MaximumStepSize>0.0</MaximumStepSize>
  7212. </IntegrationMethod>
  7213. <IntegrationMethod>
  7214. <Name>MeBDFiMethod</Name>
  7215. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  7216. <RelativeTolerance>1.0e-5</RelativeTolerance>
  7217. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  7218. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  7219. <UseInitialStepSize>false</UseInitialStepSize>
  7220. <InitialStepSize>0.0</InitialStepSize>
  7221. <UseMaximumStepSize>false</UseMaximumStepSize>
  7222. <MaximumStepSize>0.0</MaximumStepSize>
  7223. </IntegrationMethod>
  7224. <SelectedIntegrationMethod>8</SelectedIntegrationMethod>
  7225. </IntegrationMethods>
  7226. </RunSpecs>
  7227. <MultipleRun>
  7228. <NrSteps>10</NrSteps>
  7229. <CopyFromStates>false</CopyFromStates>
  7230. <JoinParameterVariation>true</JoinParameterVariation>
  7231. <ClearAfterRun>true</ClearAfterRun>
  7232. <RedrawAfterRun>false</RedrawAfterRun>
  7233. <DrawDuringSimulation>true</DrawDuringSimulation>
  7234. <ActionBeforeOptimization>0</ActionBeforeOptimization>
  7235. <CompareValue>0.0</CompareValue>
  7236. <UseCompareValue>true</UseCompareValue>
  7237. <MultipleRunType>MultipleRun</MultipleRunType>
  7238. <Minimize>true</Minimize>
  7239. <OptimizationVariable></OptimizationVariable>
  7240. <ResulVarUsage>UseEndValue</ResulVarUsage>
  7241. <Tolerance>0.001</Tolerance>
  7242. <OptimizationMethod>BroydonFletcherGoldfarbShanno</OptimizationMethod>
  7243. <MultipleRunVariables>
  7244. </MultipleRunVariables>
  7245. </MultipleRun>
  7246. <ExportData>
  7247. <WriteAsText>true</WriteAsText>
  7248. <ReadAsText>true</ReadAsText>
  7249. <WriteHeader>true</WriteHeader>
  7250. <ReadHeader>true</ReadHeader>
  7251. <ReadFilename></ReadFilename>
  7252. <WriteFilename></WriteFilename>
  7253. <DoWrite>false</DoWrite>
  7254. <ExportVariables>
  7255. </ExportVariables>
  7256. <ImportVariables>
  7257. </ImportVariables>
  7258. </ExportData>
  7259. <BreakPoints>
  7260. </BreakPoints>
  7261. <AnimationPlayback>
  7262. <PlaybackSpeed>1.0</PlaybackSpeed>
  7263. </AnimationPlayback>
  7264. </ExpData>
  7265. </Experiment>
  7266. </Experiments>
  7267. </Document>