Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

7577 lignes
210KB

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