Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

6582 строки
182KB

  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_dynamics2.emx</LibraryPath>
  11. <TimeStamp>2020-7-19 14:01:30</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. Constant 168 336
  1459. description '<Description>
  1460. <Version>4.0</Version>
  1461. <IsMainModel>1</IsMainModel>
  1462. <KeepParameterValues>False</KeepParameterValues>
  1463. <LibraryPath>Signal\Sources\Constant.emx</LibraryPath>
  1464. <TimeStamp>2007-10-19 14:48:44</TimeStamp>
  1465. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1466. </Description>';
  1467. type Constant
  1468. ports
  1469. signal out output [4,4];
  1470. end;
  1471. icon bg bottom
  1472. figures
  1473. rectangle 152.1 320 183.9 352 color 0 fill 15132390;
  1474. line 156.9 331.6 178.9 331.6 color 16711680 width 2;
  1475. line 154.2 342.7 179.9 342.7 color 0;
  1476. line 156.5 326.7 156.5 345 color 0;
  1477. end;
  1478. implementation eq
  1479. equations
  1480. output = eye(4);
  1481. implementation_end;
  1482. Constant1 296 48
  1483. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1484. <LibraryPath>Signal\Sources\Constant.emx</LibraryPath>
  1485. <TimeStamp>2007-10-19 14:48:44</TimeStamp>
  1486. </Description>';
  1487. type Constant
  1488. ports
  1489. signal out output;
  1490. end;
  1491. icon bg bottom
  1492. figures
  1493. rectangle 280.1 32 311.9 64 color 0 fill 15132390;
  1494. line 284.9 43.6 306.9 43.6 color 16711680 width 2;
  1495. line 282.2 54.7 307.9 54.7 color 0;
  1496. line 284.5 38.7 284.5 57 color 0;
  1497. end;
  1498. implementation eq
  1499. parameters
  1500. real C = 1.0; // output value
  1501. equations
  1502. output = C;
  1503. implementation_end;
  1504. Constant2 480 688
  1505. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1506. <LibraryPath>Signal\Sources\Constant.emx</LibraryPath>
  1507. <TimeStamp>2007-10-19 14:48:44</TimeStamp>
  1508. </Description>';
  1509. type Constant
  1510. ports
  1511. signal out output;
  1512. end;
  1513. icon bg bottom
  1514. figures
  1515. rectangle 464.1 672 495.9 704 color 0 fill 15132390;
  1516. line 468.9 683.6 490.9 683.6 color 16711680 width 2;
  1517. line 466.2 694.7 491.9 694.7 color 0;
  1518. line 468.5 678.7 468.5 697 color 0;
  1519. end;
  1520. implementation eq
  1521. parameters
  1522. real C = 1.0; // output value
  1523. equations
  1524. output = C;
  1525. implementation_end;
  1526. Joint 384.1 502
  1527. description '<Information>
  1528. <Description>
  1529. <Version>4.8</Version>
  1530. <IsMainModel>1</IsMainModel>
  1531. <KeepParameterValues>False</KeepParameterValues>
  1532. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1533. <LibraryPath>Bond Graph\MR\joint-v2.emx</LibraryPath>
  1534. <TimeStamp>2020-7-17 15:47:03</TimeStamp>
  1535. </Description>
  1536. </Information>';
  1537. type 'Submodel-rotz'
  1538. ports
  1539. power out p [6,1];
  1540. power in p1;
  1541. power in p2 [6,1];
  1542. signal in Hin [4,4];
  1543. signal out Hout [4,4];
  1544. end;
  1545. icon bg bottom
  1546. figures
  1547. rectangle 352.2 464 416 540 color 0 fill 14745599;
  1548. text 'Joint' 384 496 color 0;
  1549. terminals
  1550. p 352 480 fixed;
  1551. p1 384 464 fixed;
  1552. p2 416 480 fixed;
  1553. Hin 352 528 fixed;
  1554. Hout 416 528 fixed;
  1555. end;
  1556. implementation bg
  1557. submodels
  1558. AdHji 416 328
  1559. description '<Description>
  1560. <Version>4.0</Version>
  1561. <IsMainModel>1</IsMainModel>
  1562. <KeepParameterValues>False</KeepParameterValues>
  1563. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1564. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1565. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1566. </Description>';
  1567. type MTF
  1568. ports
  1569. power out p1 [6,1];
  1570. power in p2 [6,1];
  1571. signal in H [4,4];
  1572. restrictions
  1573. causality constraint not_equal p1 p2;
  1574. end;
  1575. icon bg bottom
  1576. figures
  1577. text 'MTF' 416 328 color 0 18 bold;
  1578. end;
  1579. implementation eq
  1580. equations
  1581. p2.e = transpose(Adjoint(H)) * p1.e;
  1582. p1.f = Adjoint(H) * p2.f;implementation_end;
  1583. JointType 232 216
  1584. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate></Description><Attributes><GlobalRelations>parameters
  1585. real joint = 3;</GlobalRelations></Attributes></Information>';
  1586. type Submodel
  1587. ports
  1588. mechanical in p1;
  1589. signal out output [4,4];
  1590. power out p2 [6,1];
  1591. end;
  1592. implementation bg
  1593. submodels
  1594. Integrate 320 272
  1595. description '<Description>
  1596. <Version>4.0</Version>
  1597. <IsMainModel>1</IsMainModel>
  1598. <KeepParameterValues>False</KeepParameterValues>
  1599. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1600. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  1601. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1602. </Description>';
  1603. type Integrate
  1604. ports
  1605. signal in input;
  1606. signal out output [4,4];
  1607. parameters
  1608. real init = -2.9496;
  1609. end;
  1610. icon bg
  1611. figures
  1612. rectangle 304 256 336 288 color 0 fill 15132390;
  1613. text 'ò' 320 269.3 color 16711680 'SymbolProp BT' 21 symbol;
  1614. end;
  1615. implementation eq
  1616. parameters
  1617. real global joint;
  1618. variables
  1619. real R[3,3];
  1620. real p[3];
  1621. real q;
  1622. real qa[6];
  1623. real temp [4,4];
  1624. initialequations
  1625. qa = 0;
  1626. equations
  1627. q = -int(input,init);
  1628. qa[joint] = q;
  1629. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',qa);
  1630. output = homogeneous(R,qa[4:6]);implementation_end;
  1631. plug p1 240 188;
  1632. plug output 320 368;
  1633. plug p2 240 412;
  1634. OneJunction2 240 271.9
  1635. description '<Information>
  1636. <Description>
  1637. <Version>4.2</Version>
  1638. <IsMainModel>1</IsMainModel>
  1639. <KeepParameterValues>False</KeepParameterValues>
  1640. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  1641. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  1642. </Description>
  1643. </Information>';
  1644. knot FlowSensor
  1645. ports
  1646. mechanical knot in p1 [1];
  1647. power knot out p2 [1];
  1648. signal knot out flow [1];
  1649. restrictions
  1650. causality constraint not_equal p1 p2;
  1651. end;
  1652. icon bg ellipse
  1653. figures
  1654. ellipse 233.1 264.8 246.9 279.1 color 0 fill 16777215;
  1655. text 'f' 240 271.2 color 0;
  1656. end;
  1657. implementation eq
  1658. equations
  1659. p2.f = p1.f;
  1660. p1.e = p2.e;
  1661. flow = p1.f;
  1662. implementation_end;
  1663. uTbai 240 328
  1664. description '<Description>
  1665. <Version>4.0</Version>
  1666. <IsMainModel>1</IsMainModel>
  1667. <KeepParameterValues>False</KeepParameterValues>
  1668. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  1669. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  1670. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1671. </Description>';
  1672. type TF
  1673. ports
  1674. power in p1;
  1675. power out p2 [6,1];
  1676. restrictions
  1677. causality constraint not_equal p1 p2;
  1678. causality fixed in p1;
  1679. causality fixed out p2;
  1680. parameters
  1681. real Cconstraint = 1.0e-4;
  1682. real Rconstraint = 1000.0;
  1683. end;
  1684. icon bg left
  1685. figures
  1686. text 'TF' 240 328 color 0 18 bold;
  1687. end;
  1688. implementation eq
  1689. parameters
  1690. real global joint;
  1691. variables
  1692. real i;
  1693. real state[6];
  1694. equations
  1695. /*p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  1696. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  1697. p2.e[3] = p1.e;
  1698. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  1699. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  1700. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  1701. p1.f = p2.f[3];*/
  1702. state = int(p2.f);
  1703. for i = 1 to 6 do
  1704. if i == joint then
  1705. p1.f = p2.f[i];
  1706. p2.e[i] = p1.e;
  1707. else
  1708. p2.e[i] = (Rconstraint*-p2.f[i] + -state[i]/Cconstraint);
  1709. end;
  1710. end;
  1711. implementation_end;
  1712. end;
  1713. connections
  1714. Integrate\output -> output;
  1715. OneJunction2\flow -> Integrate\input;
  1716. OneJunction2\p2 => uTbai\p1;
  1717. p1 => OneJunction2\p1;
  1718. uTbai\p2 => p2;
  1719. end;
  1720. implementation_end;
  1721. MatrixMul 312 480
  1722. description '<Description>
  1723. <Version>4.0</Version>
  1724. <IsMainModel>1</IsMainModel>
  1725. <KeepParameterValues>False</KeepParameterValues>
  1726. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1727. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1728. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1729. </Description>';
  1730. type Gain
  1731. ports
  1732. signal in input1 [4,4];
  1733. signal out output [4,4];
  1734. signal in input2 [4,4];
  1735. end;
  1736. icon bg bottom
  1737. figures
  1738. rectangle 296.1 464 327.9 496 color 0 fill 15132390;
  1739. text 'X' 312 480 color 16711680 16 bold;
  1740. end;
  1741. implementation eq
  1742. variables
  1743. real temp[4,4];
  1744. equations
  1745. output = input2*input1;
  1746. temp = input2*input1; implementation_end;
  1747. plug p 104 328;
  1748. plug p1 232 88;
  1749. plug p2 488 328;
  1750. plug Hin 104 480;
  1751. plug Hout 496 480;
  1752. Splitter2 312 216
  1753. description '<Description><Version>4.0</Version>
  1754. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1755. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1756. <IsMainModel>1</IsMainModel>
  1757. <KeepParameterValues>False</KeepParameterValues>
  1758. </Description>';
  1759. knot Splitter
  1760. ports
  1761. signal knot duplicatable out output [4,4];
  1762. signal knot in input [4,4];
  1763. end;
  1764. icon bg ellipse
  1765. figures
  1766. ellipse 308.8 212.8 315.2 219.2 color -1 fill 0;
  1767. ellipse 307.7 211.7 316.3 220.3 color -1;
  1768. terminals
  1769. input 312 216 fixed;
  1770. end;
  1771. implementation eq
  1772. equations
  1773. collect (output) = input;
  1774. implementation_end;
  1775. Wbai 232 328
  1776. description '<Description>
  1777. <Version>4.0</Version>
  1778. <IsMainModel>1</IsMainModel>
  1779. <KeepParameterValues>False</KeepParameterValues>
  1780. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  1781. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  1782. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1783. </Description>';
  1784. knot ZeroJunction
  1785. ports
  1786. power knot duplicatable none p [6,1];
  1787. signal knot out effort [6,1];
  1788. restrictions
  1789. causality constraint one_in p;
  1790. end;
  1791. icon bg bottom
  1792. figures
  1793. text '0' 232 328 color 0 18 bold;
  1794. end;
  1795. implementation eq
  1796. equations
  1797. sum (direct (p.f)) = 0;
  1798. equal (collect (p.e));
  1799. effort = first (p.e);
  1800. implementation_end;
  1801. end;
  1802. connections
  1803. Hin -> MatrixMul\input2;
  1804. JointType\output -> Splitter2\input;
  1805. JointType\p2 => Wbai\p;
  1806. MatrixMul\output -> Hout;
  1807. p <= Wbai\p;
  1808. p1 => JointType\p1;
  1809. p2 => AdHji\p2;
  1810. Splitter2\output -> AdHji\H 416 216;
  1811. Splitter2\output -> MatrixMul\input1;
  1812. Wbai\p <= AdHji\p1;
  1813. end;
  1814. parameterrelations
  1815. EndstopMin\Rendstop = Rendstop;
  1816. EndstopMin\Cendstop = Cendstop;
  1817. EndstopMin\InitialPos = InitialPos;
  1818. EndstopMin\EndstopPos = MinEndstopPos;
  1819. EndstopMax\Rendstop = Rendstop;
  1820. EndstopMax\Cendstop = Cendstop;
  1821. EndstopMax\InitialPos = InitialPos;
  1822. EndstopMax\EndstopPos = MaxEndstopPos;
  1823. Rjoint\Rjoint= Rjoint;
  1824. Integrate\init = InitialPos;
  1825. uTbai\Rconstraint = Rconstraint;
  1826. uTbai\Cconstraint = Cconstraint;
  1827. parameterrelations_end;
  1828. figures
  1829. text 'b = next link (body)
  1830. a = previous link (body)
  1831. i = Frame fixed in previous body, fixed in joint
  1832. j = Frame fixed in next body, fixed in joint
  1833. ' 672 392 color 0;
  1834. implementation_end;
  1835. Joint1 728.1 502
  1836. description '<Information>
  1837. <Description>
  1838. <Version>4.8</Version>
  1839. <IsMainModel>1</IsMainModel>
  1840. <KeepParameterValues>False</KeepParameterValues>
  1841. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1842. <LibraryPath>Bond Graph\MR\joint-v2.emx</LibraryPath>
  1843. <TimeStamp>2020-7-17 14:55:32</TimeStamp>
  1844. </Description>
  1845. </Information>';
  1846. type 'Submodel-rotz'
  1847. ports
  1848. power out p [6,1];
  1849. power in p1;
  1850. power in p2 [6,1];
  1851. signal in Hin [4,4];
  1852. signal out Hout [4,4];
  1853. signal out q;
  1854. end;
  1855. icon bg bottom
  1856. figures
  1857. rectangle 696.2 464 760 540 color 0 fill 14745599;
  1858. text 'Joint' 728 496 color 0;
  1859. terminals
  1860. p 696 480 fixed;
  1861. p1 728 464 fixed;
  1862. p2 760 480 fixed;
  1863. Hin 696 528 fixed;
  1864. Hout 760 528 fixed;
  1865. end;
  1866. implementation bg
  1867. submodels
  1868. AdHji 424 424
  1869. description '<Description>
  1870. <Version>4.0</Version>
  1871. <IsMainModel>1</IsMainModel>
  1872. <KeepParameterValues>False</KeepParameterValues>
  1873. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1874. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1875. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1876. </Description>';
  1877. type MTF
  1878. ports
  1879. power out p1 [6,1];
  1880. power in p2 [6,1];
  1881. signal in H [4,4];
  1882. restrictions
  1883. causality constraint not_equal p1 p2;
  1884. end;
  1885. icon bg bottom
  1886. figures
  1887. text 'MTF' 424 424 color 0 18 bold;
  1888. end;
  1889. implementation eq
  1890. equations
  1891. p2.e = transpose(Adjoint(H)) * p1.e;
  1892. p1.f = Adjoint(H) * p2.f;implementation_end;
  1893. JointType 240 312
  1894. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate></Description><Attributes><GlobalRelations>parameters
  1895. real joint = 3;</GlobalRelations></Attributes></Information>';
  1896. type Submodel
  1897. ports
  1898. mechanical in p1;
  1899. signal out output [4,4];
  1900. power out p2 [6,1];
  1901. signal out q;
  1902. end;
  1903. implementation bg
  1904. submodels
  1905. Integrate 320 272
  1906. description '<Description>
  1907. <Version>4.0</Version>
  1908. <IsMainModel>1</IsMainModel>
  1909. <KeepParameterValues>False</KeepParameterValues>
  1910. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1911. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  1912. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1913. </Description>';
  1914. type Integrate
  1915. ports
  1916. signal in input;
  1917. signal out output [4,4];
  1918. signal out q;
  1919. parameters
  1920. real init = -2.9496;
  1921. end;
  1922. icon bg
  1923. figures
  1924. rectangle 304 256 336 288 color 0 fill 15132390;
  1925. text 'ò' 320 269.3 color 16711680 'SymbolProp BT' 21 symbol;
  1926. end;
  1927. implementation eq
  1928. parameters
  1929. real global joint;
  1930. variables
  1931. real R[3,3];
  1932. real p[3];
  1933. real qa[6];
  1934. real temp [4,4];
  1935. initialequations
  1936. qa = 0;
  1937. equations
  1938. q = -int(input,init);
  1939. qa[joint] = q;
  1940. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',qa);
  1941. output = homogeneous(R,qa[4:6]);implementation_end;
  1942. plug p1 240 188;
  1943. plug output 320 416;
  1944. plug p2 240 412;
  1945. plug q 320 184;
  1946. OneJunction2 240 271.9
  1947. description '<Information>
  1948. <Description>
  1949. <Version>4.2</Version>
  1950. <IsMainModel>1</IsMainModel>
  1951. <KeepParameterValues>False</KeepParameterValues>
  1952. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  1953. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  1954. </Description>
  1955. </Information>';
  1956. knot FlowSensor
  1957. ports
  1958. mechanical knot in p1 [1];
  1959. power knot out p2 [1];
  1960. signal knot out flow [1];
  1961. restrictions
  1962. causality constraint not_equal p1 p2;
  1963. end;
  1964. icon bg ellipse
  1965. figures
  1966. ellipse 233.1 264.8 246.9 279.1 color 0 fill 16777215;
  1967. text 'f' 240 271.2 color 0;
  1968. end;
  1969. implementation eq
  1970. equations
  1971. p2.f = p1.f;
  1972. p1.e = p2.e;
  1973. flow = p1.f;
  1974. implementation_end;
  1975. uTbai 240 328
  1976. description '<Description>
  1977. <Version>4.0</Version>
  1978. <IsMainModel>1</IsMainModel>
  1979. <KeepParameterValues>False</KeepParameterValues>
  1980. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  1981. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  1982. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1983. </Description>';
  1984. type TF
  1985. ports
  1986. power in p1;
  1987. power out p2 [6,1];
  1988. restrictions
  1989. causality constraint not_equal p1 p2;
  1990. causality fixed in p1;
  1991. causality fixed out p2;
  1992. parameters
  1993. real Cconstraint = 1.0e-4;
  1994. real Rconstraint = 1000.0;
  1995. end;
  1996. icon bg left
  1997. figures
  1998. text 'TF' 240 328 color 0 18 bold;
  1999. end;
  2000. implementation eq
  2001. parameters
  2002. real global joint;
  2003. variables
  2004. real i;
  2005. real state[6];
  2006. equations
  2007. /*p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  2008. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  2009. p2.e[3] = p1.e;
  2010. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  2011. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  2012. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  2013. p1.f = p2.f[3];*/
  2014. state = int(p2.f);
  2015. for i = 1 to 6 do
  2016. if i == joint then
  2017. p1.f = p2.f[i];
  2018. p2.e[i] = p1.e;
  2019. else
  2020. p2.e[i] = (Rconstraint*-p2.f[i] + -state[i]/Cconstraint);
  2021. end;
  2022. end;
  2023. implementation_end;
  2024. end;
  2025. connections
  2026. Integrate\output -> output;
  2027. Integrate\q -> q;
  2028. OneJunction2\flow -> Integrate\input;
  2029. OneJunction2\p2 => uTbai\p1;
  2030. p1 => OneJunction2\p1;
  2031. uTbai\p2 => p2;
  2032. end;
  2033. implementation_end;
  2034. MatrixMul 320 576
  2035. description '<Description>
  2036. <Version>4.0</Version>
  2037. <IsMainModel>1</IsMainModel>
  2038. <KeepParameterValues>False</KeepParameterValues>
  2039. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  2040. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  2041. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2042. </Description>';
  2043. type Gain
  2044. ports
  2045. signal in input1 [4,4];
  2046. signal out output [4,4];
  2047. signal in input2 [4,4];
  2048. end;
  2049. icon bg bottom
  2050. figures
  2051. rectangle 304.1 560 335.9 592 color 0 fill 15132390;
  2052. text 'X' 320 576 color 16711680 16 bold;
  2053. end;
  2054. implementation eq
  2055. equations
  2056. output = input2*input1; implementation_end;
  2057. plug p 112 424;
  2058. plug p1 240 40;
  2059. plug p2 496 424;
  2060. plug Hin 112 576;
  2061. plug Hout 504 576;
  2062. plug q 112 312;
  2063. Splitter2 320 312
  2064. description '<Description><Version>4.0</Version>
  2065. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2066. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2067. <IsMainModel>1</IsMainModel>
  2068. <KeepParameterValues>False</KeepParameterValues>
  2069. </Description>';
  2070. knot Splitter
  2071. ports
  2072. signal knot duplicatable out output [4,4];
  2073. signal knot in input [4,4];
  2074. end;
  2075. icon bg ellipse
  2076. figures
  2077. ellipse 316.8 308.8 323.2 315.2 color -1 fill 0;
  2078. ellipse 315.7 307.7 324.3 316.3 color -1;
  2079. terminals
  2080. input 320 312 fixed;
  2081. end;
  2082. implementation eq
  2083. equations
  2084. collect (output) = input;
  2085. implementation_end;
  2086. Wbai 240 424
  2087. description '<Description>
  2088. <Version>4.0</Version>
  2089. <IsMainModel>1</IsMainModel>
  2090. <KeepParameterValues>False</KeepParameterValues>
  2091. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2092. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2093. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2094. </Description>';
  2095. knot ZeroJunction
  2096. ports
  2097. power knot duplicatable none p [6,1];
  2098. signal knot out effort [6,1];
  2099. restrictions
  2100. causality constraint one_in p;
  2101. end;
  2102. icon bg bottom
  2103. figures
  2104. text '0' 240 424 color 0 18 bold;
  2105. end;
  2106. implementation eq
  2107. equations
  2108. sum (direct (p.f)) = 0;
  2109. equal (collect (p.e));
  2110. effort = first (p.e);
  2111. implementation_end;
  2112. end;
  2113. connections
  2114. Hin -> MatrixMul\input2;
  2115. JointType\output -> Splitter2\input;
  2116. JointType\p1 <= p1;
  2117. JointType\p2 => Wbai\p;
  2118. JointType\q -> q;
  2119. MatrixMul\output -> Hout;
  2120. p <= Wbai\p;
  2121. p2 => AdHji\p2;
  2122. Splitter2\output -> AdHji\H 424 312;
  2123. Splitter2\output -> MatrixMul\input1;
  2124. Wbai\p <= AdHji\p1;
  2125. end;
  2126. parameterrelations
  2127. EndstopMin\Rendstop = Rendstop;
  2128. EndstopMin\Cendstop = Cendstop;
  2129. EndstopMin\InitialPos = InitialPos;
  2130. EndstopMin\EndstopPos = MinEndstopPos;
  2131. EndstopMax\Rendstop = Rendstop;
  2132. EndstopMax\Cendstop = Cendstop;
  2133. EndstopMax\InitialPos = InitialPos;
  2134. EndstopMax\EndstopPos = MaxEndstopPos;
  2135. Rjoint\Rjoint= Rjoint;
  2136. Integrate\init = InitialPos;
  2137. uTbai\Rconstraint = Rconstraint;
  2138. uTbai\Cconstraint = Cconstraint;
  2139. parameterrelations_end;
  2140. figures
  2141. text 'b = next link (body)
  2142. a = previous link (body)
  2143. i = Frame fixed in previous body, fixed in joint
  2144. j = Frame fixed in next body, fixed in joint
  2145. ' 680 488 color 0;
  2146. implementation_end;
  2147. Joint2 896.1 686
  2148. description '<Information>
  2149. <Description>
  2150. <Version>4.8</Version>
  2151. <IsMainModel>1</IsMainModel>
  2152. <KeepParameterValues>False</KeepParameterValues>
  2153. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2154. <LibraryPath>Bond Graph\MR\joint-v2.emx</LibraryPath>
  2155. <TimeStamp>2020-7-17 14:55:32</TimeStamp>
  2156. </Description>
  2157. </Information>';
  2158. type 'Submodel-rotz'
  2159. ports
  2160. power out p [6,1];
  2161. power in p1;
  2162. power in p2 [6,1];
  2163. signal in Hin [4,4];
  2164. signal out Hout [4,4];
  2165. signal out q;
  2166. end;
  2167. icon bg bottom
  2168. figures
  2169. rectangle 864.2 648 928 724 color 0 fill 14745599;
  2170. text 'Joint' 896 680 color 0;
  2171. terminals
  2172. p 864 664 fixed;
  2173. p1 896 648 fixed;
  2174. p2 928 664 fixed;
  2175. Hin 864 712 fixed;
  2176. Hout 928 712 fixed;
  2177. end;
  2178. implementation bg
  2179. submodels
  2180. AdHji 424 424
  2181. description '<Description>
  2182. <Version>4.0</Version>
  2183. <IsMainModel>1</IsMainModel>
  2184. <KeepParameterValues>False</KeepParameterValues>
  2185. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  2186. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  2187. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2188. </Description>';
  2189. type MTF
  2190. ports
  2191. power out p1 [6,1];
  2192. power in p2 [6,1];
  2193. signal in H [4,4];
  2194. restrictions
  2195. causality constraint not_equal p1 p2;
  2196. end;
  2197. icon bg bottom
  2198. figures
  2199. text 'MTF' 424 424 color 0 18 bold;
  2200. end;
  2201. implementation eq
  2202. equations
  2203. p2.e = transpose(Adjoint(H)) * p1.e;
  2204. p1.f = Adjoint(H) * p2.f;implementation_end;
  2205. Integrate 320 176
  2206. description '<Description>
  2207. <Version>4.0</Version>
  2208. <IsMainModel>1</IsMainModel>
  2209. <KeepParameterValues>False</KeepParameterValues>
  2210. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  2211. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  2212. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2213. </Description>';
  2214. type Integrate
  2215. ports
  2216. signal in input;
  2217. signal out output [4,4];
  2218. signal out q;
  2219. parameters
  2220. real init = -2.9496;
  2221. end;
  2222. icon bg
  2223. figures
  2224. rectangle 304 160 336 192 color 0 fill 15132390;
  2225. text 'ò' 320 173.3 color 16711680 'SymbolProp BT' 21 symbol;
  2226. end;
  2227. implementation eq
  2228. parameters
  2229. real global joint;
  2230. variables
  2231. real R[3,3];
  2232. real p[3];
  2233. real qa[6];
  2234. real temp [4,4];
  2235. initialequations
  2236. qa = 0;
  2237. equations
  2238. q = -int(input,init);
  2239. qa[joint] = q;
  2240. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',qa);
  2241. output = homogeneous(R,qa[4:6]);implementation_end;
  2242. MatrixMul 320 576
  2243. description '<Description>
  2244. <Version>4.0</Version>
  2245. <IsMainModel>1</IsMainModel>
  2246. <KeepParameterValues>False</KeepParameterValues>
  2247. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  2248. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  2249. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2250. </Description>';
  2251. type Gain
  2252. ports
  2253. signal in input1 [4,4];
  2254. signal out output [4,4];
  2255. signal in input2 [4,4];
  2256. end;
  2257. icon bg bottom
  2258. figures
  2259. rectangle 304.1 560 335.9 592 color 0 fill 15132390;
  2260. text 'X' 320 576 color 16711680 16 bold;
  2261. end;
  2262. implementation eq
  2263. equations
  2264. output = input2*input1; implementation_end;
  2265. plug p1 240 40;
  2266. plug p2 496 424;
  2267. plug Hin 112 576;
  2268. plug Hout 504 576;
  2269. plug q 448 176;
  2270. plug p 112 424;
  2271. OneJunction2 240 176
  2272. description '<Information>
  2273. <Description>
  2274. <Version>4.2</Version>
  2275. <IsMainModel>1</IsMainModel>
  2276. <KeepParameterValues>False</KeepParameterValues>
  2277. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  2278. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  2279. </Description>
  2280. </Information>';
  2281. knot FlowSensor
  2282. ports
  2283. mechanical knot in p1 [1];
  2284. power knot out p2 [1];
  2285. signal knot out flow [1];
  2286. restrictions
  2287. causality constraint not_equal p1 p2;
  2288. end;
  2289. icon bg ellipse
  2290. figures
  2291. ellipse 233.1 168.8 246.9 183.1 color 0 fill 16777215;
  2292. text 'f' 240 175.2 color 0;
  2293. end;
  2294. implementation eq
  2295. equations
  2296. p2.f = p1.f;
  2297. p1.e = p2.e;
  2298. flow = p1.f;
  2299. implementation_end;
  2300. Splitter2 320 312
  2301. description '<Description><Version>4.0</Version>
  2302. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2303. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2304. <IsMainModel>1</IsMainModel>
  2305. <KeepParameterValues>False</KeepParameterValues>
  2306. </Description>';
  2307. knot Splitter
  2308. ports
  2309. signal knot duplicatable out output [4,4];
  2310. signal knot in input [4,4];
  2311. end;
  2312. icon bg ellipse
  2313. figures
  2314. ellipse 316.8 308.8 323.2 315.2 color -1 fill 0;
  2315. ellipse 315.7 307.7 324.3 316.3 color -1;
  2316. terminals
  2317. input 320 312 fixed;
  2318. end;
  2319. implementation eq
  2320. equations
  2321. collect (output) = input;
  2322. implementation_end;
  2323. Submodel1 240 312
  2324. description '<Description><Version>4.0</Version>
  2325. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  2326. <IsMainModel>1</IsMainModel>
  2327. <KeepParameterValues>False</KeepParameterValues>
  2328. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  2329. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2330. </Description>';
  2331. type 'Submodel-Equation'
  2332. ports
  2333. power in p1 [6,1];
  2334. signal out H [4,4];
  2335. power out p2 [6,1];
  2336. end;
  2337. implementation eq
  2338. variables
  2339. real q[4]; //quaternions
  2340. real W[3,4]; //Quaternion Rates Matrix
  2341. real R[3,3]; //Rotation Matrix
  2342. equations
  2343. q = int(transpose(W) * p1.f[1:3] ./ 2);
  2344. W = [-q[2], q[1], -q[4], q[3];
  2345. -q[3], q[4], q[1], -q[2];
  2346. -q[4], -q[3], q[2], q[1]];
  2347. 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]);
  2348. 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]);
  2349. 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];implementation_end;
  2350. uTbai 240 248
  2351. description '<Description>
  2352. <Version>4.0</Version>
  2353. <IsMainModel>1</IsMainModel>
  2354. <KeepParameterValues>False</KeepParameterValues>
  2355. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  2356. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  2357. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2358. </Description>';
  2359. type TF
  2360. ports
  2361. power in p1;
  2362. power out p2 [6,1];
  2363. restrictions
  2364. causality constraint not_equal p1 p2;
  2365. causality fixed in p1;
  2366. causality fixed out p2;
  2367. parameters
  2368. real Cconstraint = 1.0e-4;
  2369. real Rconstraint = 1000.0;
  2370. end;
  2371. icon bg left
  2372. figures
  2373. text 'TF' 240 248 color 0 18 bold;
  2374. end;
  2375. implementation eq
  2376. parameters
  2377. real global joint;
  2378. variables
  2379. real i;
  2380. real state[6];
  2381. equations
  2382. /*p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  2383. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  2384. p2.e[3] = p1.e;
  2385. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  2386. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  2387. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  2388. p1.f = p2.f[3];*/
  2389. state = int(p2.f);
  2390. for i = 1 to 6 do
  2391. if i == joint then
  2392. p1.f = p2.f[i];
  2393. p2.e[i] = p1.e;
  2394. else
  2395. p2.e[i] = (Rconstraint*-p2.f[i] + -state[i]/Cconstraint);
  2396. end;
  2397. end;
  2398. implementation_end;
  2399. Wbai 240 424
  2400. description '<Description>
  2401. <Version>4.0</Version>
  2402. <IsMainModel>1</IsMainModel>
  2403. <KeepParameterValues>False</KeepParameterValues>
  2404. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2405. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2406. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2407. </Description>';
  2408. knot ZeroJunction
  2409. ports
  2410. power knot duplicatable none p [6,1];
  2411. signal knot out effort [6,1];
  2412. restrictions
  2413. causality constraint one_in p;
  2414. end;
  2415. icon bg bottom
  2416. figures
  2417. text '0' 240 424 color 0 18 bold;
  2418. end;
  2419. implementation eq
  2420. equations
  2421. sum (direct (p.f)) = 0;
  2422. equal (collect (p.e));
  2423. effort = first (p.e);
  2424. implementation_end;
  2425. end;
  2426. connections
  2427. Hin -> MatrixMul\input2;
  2428. Integrate\output -> Splitter2\input;
  2429. Integrate\q -> q;
  2430. MatrixMul\output -> Hout;
  2431. OneJunction2\flow -> Integrate\input;
  2432. OneJunction2\p1 <= p1;
  2433. OneJunction2\p2 => uTbai\p1;
  2434. p <= Wbai\p;
  2435. p2 => AdHji\p2;
  2436. Splitter2\output -> AdHji\H 424 312;
  2437. Splitter2\output -> MatrixMul\input1;
  2438. Submodel1\p2 => Wbai\p;
  2439. uTbai\p2 => Submodel1\p1;
  2440. Wbai\p <= AdHji\p1;
  2441. end;
  2442. parameterrelations
  2443. EndstopMin\Rendstop = Rendstop;
  2444. EndstopMin\Cendstop = Cendstop;
  2445. EndstopMin\InitialPos = InitialPos;
  2446. EndstopMin\EndstopPos = MinEndstopPos;
  2447. EndstopMax\Rendstop = Rendstop;
  2448. EndstopMax\Cendstop = Cendstop;
  2449. EndstopMax\InitialPos = InitialPos;
  2450. EndstopMax\EndstopPos = MaxEndstopPos;
  2451. Rjoint\Rjoint= Rjoint;
  2452. Integrate\init = InitialPos;
  2453. uTbai\Rconstraint = Rconstraint;
  2454. uTbai\Cconstraint = Cconstraint;
  2455. parameterrelations_end;
  2456. figures
  2457. text 'b = next link (body)
  2458. a = previous link (body)
  2459. i = Frame fixed in previous body, fixed in joint
  2460. j = Frame fixed in next body, fixed in joint
  2461. ' 680 488 color 0;
  2462. implementation_end;
  2463. JointBase1 488.2 296
  2464. description '<Description>
  2465. <Version>4.1</Version>
  2466. <IsMainModel>1</IsMainModel>
  2467. <KeepParameterValues>False</KeepParameterValues>
  2468. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2469. <LibraryPath>Joint-roty.emx</LibraryPath>
  2470. <TimeStamp>2011-1-18 17:30:05</TimeStamp>
  2471. </Description>';
  2472. type 'Submodel-roty'
  2473. ports
  2474. power out p [6,1];
  2475. power in p1;
  2476. power in p2 [6,1];
  2477. signal in Hin [4,4];
  2478. signal out Hout [4,4];
  2479. parameters
  2480. real Rconstraint = 1000.0;
  2481. real Cconstraint = 1.0e-4;
  2482. real Rendstop = 1000.0;
  2483. real Cendstop = 1.0e-4;
  2484. real InitialPos = -1.13;
  2485. real MaxEndstopPos = 1.57;
  2486. real MinEndstopPos = -1.131;
  2487. real Rjoint = 0.1;
  2488. end;
  2489. icon bg bottom
  2490. figures
  2491. rectangle 456.5 224 520 368 color 0 fill 14745599;
  2492. text 'Joint-roty' 488.5 299 color 0;
  2493. terminals
  2494. p 456 256 fixed;
  2495. p1 487.5 224 fixed;
  2496. p2 520 256 fixed;
  2497. Hin 456 336 fixed;
  2498. Hout 520 336 fixed;
  2499. end;
  2500. implementation bg
  2501. submodels
  2502. AdHji 424 424
  2503. description '<Description>
  2504. <Version>4.0</Version>
  2505. <IsMainModel>1</IsMainModel>
  2506. <KeepParameterValues>False</KeepParameterValues>
  2507. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  2508. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  2509. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2510. </Description>';
  2511. type MTF
  2512. ports
  2513. power out p1 [6,1];
  2514. power in p2 [6,1];
  2515. signal in H [4,4];
  2516. restrictions
  2517. causality constraint not_equal p1 p2;
  2518. end;
  2519. icon bg bottom
  2520. figures
  2521. text 'MTF' 424 424 color 0 18 bold;
  2522. end;
  2523. implementation eq
  2524. equations
  2525. p2.e = transpose(Adjoint(H)) * p1.e;
  2526. p1.f = Adjoint(H) * p2.f;implementation_end;
  2527. Integrate 320 336
  2528. description '<Description>
  2529. <Version>4.0</Version>
  2530. <IsMainModel>1</IsMainModel>
  2531. <KeepParameterValues>False</KeepParameterValues>
  2532. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  2533. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  2534. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2535. </Description>';
  2536. type Integrate
  2537. ports
  2538. signal in input;
  2539. signal out output [4,4];
  2540. parameters
  2541. real init = -2.9496;
  2542. end;
  2543. icon bg
  2544. figures
  2545. rectangle 304 320 336 352 color 0 fill 15132390;
  2546. text 'ò' 320 333.3 color 16711680 'SymbolProp BT' 21 symbol;
  2547. end;
  2548. implementation eq
  2549. variables
  2550. real R[3,3];
  2551. real p[3];
  2552. real q;
  2553. equations
  2554. q = -int(input,init);
  2555. R = [ cos(q), -sin(q), 0;
  2556. sin(q), cos(q), 0;
  2557. 0, 0, 1];
  2558. p = [0;0;0];
  2559. output = homogeneous(R,p);
  2560. implementation_end;
  2561. MatrixMul 320 496
  2562. description '<Description>
  2563. <Version>4.0</Version>
  2564. <IsMainModel>1</IsMainModel>
  2565. <KeepParameterValues>False</KeepParameterValues>
  2566. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  2567. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  2568. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2569. </Description>';
  2570. type Gain
  2571. ports
  2572. signal in input1 [4,4];
  2573. signal out output [4,4];
  2574. signal in input2 [4,4];
  2575. end;
  2576. icon bg bottom
  2577. figures
  2578. rectangle 304.1 480 335.9 512 color 0 fill 15132390;
  2579. text 'X' 320 496 color 16711680 16 bold;
  2580. end;
  2581. implementation eq
  2582. equations
  2583. output = input2*input1; implementation_end;
  2584. plug p1 240 56;
  2585. plug p2 496 424;
  2586. plug Hin 112 496;
  2587. plug Hout 504 496;
  2588. plug p 112 424;
  2589. OneJunction 240 272
  2590. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2591. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2592. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  2593. </Description>';
  2594. knot OneJunction
  2595. ports
  2596. power knot duplicatable none p [1];
  2597. signal knot out flow [1];
  2598. restrictions
  2599. causality constraint one_out p;
  2600. end;
  2601. icon bg
  2602. figures
  2603. text '1' 240 272 color 0 18 bold;
  2604. end;
  2605. implementation eq
  2606. equations
  2607. sum (direct (p.e)) = 0;
  2608. equal (collect (p.f));
  2609. flow = first (p.f);
  2610. implementation_end;
  2611. Rjoint 192 272
  2612. description '<Description>
  2613. <Version>4.0</Version>
  2614. <IsMainModel>1</IsMainModel>
  2615. <KeepParameterValues>False</KeepParameterValues>
  2616. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  2617. <TimeStamp>2007-9-25 12:3:18</TimeStamp>
  2618. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2619. </Description>';
  2620. type R
  2621. ports
  2622. power in p;
  2623. parameters
  2624. real Rjoint = 0.1;
  2625. end;
  2626. icon bg bottom
  2627. figures
  2628. text 'R' 192 272 color 0 18 bold;
  2629. end;
  2630. implementation eq
  2631. equations
  2632. p.e = Rjoint * p.f;
  2633. implementation_end;
  2634. Splitter2 320 368
  2635. description '<Description><Version>4.0</Version>
  2636. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2637. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2638. <IsMainModel>1</IsMainModel>
  2639. <KeepParameterValues>False</KeepParameterValues>
  2640. </Description>';
  2641. knot Splitter
  2642. ports
  2643. signal knot duplicatable out output [4,4];
  2644. signal knot in input [4,4];
  2645. end;
  2646. icon bg ellipse
  2647. figures
  2648. ellipse 316.8 364.8 323.2 371.2 color -1 fill 0;
  2649. ellipse 315.7 363.7 324.3 372.3 color -1;
  2650. terminals
  2651. input 320 368 fixed;
  2652. end;
  2653. implementation eq
  2654. equations
  2655. collect (output) = input;
  2656. implementation_end;
  2657. Tbai 240 384
  2658. description '<Description>
  2659. <Version>4.0</Version>
  2660. <IsMainModel>1</IsMainModel>
  2661. <KeepParameterValues>False</KeepParameterValues>
  2662. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2663. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  2664. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2665. </Description>';
  2666. knot OneJunction
  2667. ports
  2668. power knot duplicatable none p [6,1];
  2669. signal knot out flow [6,1];
  2670. restrictions
  2671. causality constraint one_out p;
  2672. end;
  2673. icon bg left
  2674. figures
  2675. text '1' 240 384 color 0 18 bold;
  2676. end;
  2677. implementation eq
  2678. equations
  2679. sum (direct (p.e)) = 0;
  2680. equal (collect (p.f));
  2681. flow = first (p.f);
  2682. implementation_end;
  2683. uTbai 240 328
  2684. description '<Description>
  2685. <Version>4.0</Version>
  2686. <IsMainModel>1</IsMainModel>
  2687. <KeepParameterValues>False</KeepParameterValues>
  2688. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  2689. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  2690. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2691. </Description>';
  2692. type TF
  2693. ports
  2694. power in p1;
  2695. power out p2 [6,1];
  2696. restrictions
  2697. causality constraint not_equal p1 p2;
  2698. causality fixed in p1;
  2699. causality fixed out p2;
  2700. parameters
  2701. real Cconstraint = 1.0e-4;
  2702. real Rconstraint = 1000.0;
  2703. end;
  2704. icon bg left
  2705. figures
  2706. text 'TF' 240 328 color 0 18 bold;
  2707. end;
  2708. implementation eq
  2709. equations
  2710. p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  2711. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  2712. p2.e[3] = p1.e;
  2713. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  2714. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  2715. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  2716. p1.f = p2.f[3];
  2717. implementation_end;
  2718. Wbai 240 424
  2719. description '<Description>
  2720. <Version>4.0</Version>
  2721. <IsMainModel>1</IsMainModel>
  2722. <KeepParameterValues>False</KeepParameterValues>
  2723. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2724. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2725. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2726. </Description>';
  2727. knot ZeroJunction
  2728. ports
  2729. power knot duplicatable none p [6,1];
  2730. signal knot out effort [6,1];
  2731. restrictions
  2732. causality constraint one_in p;
  2733. end;
  2734. icon bg bottom
  2735. figures
  2736. text '0' 240 424 color 0 18 bold;
  2737. end;
  2738. implementation eq
  2739. equations
  2740. sum (direct (p.f)) = 0;
  2741. equal (collect (p.e));
  2742. effort = first (p.e);
  2743. implementation_end;
  2744. ZeroJunction 240 104
  2745. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2746. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2747. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2748. </Description>';
  2749. knot ZeroJunction
  2750. ports
  2751. power knot duplicatable none p [1];
  2752. signal knot out effort [1];
  2753. restrictions
  2754. causality constraint one_in p;
  2755. end;
  2756. icon bg
  2757. figures
  2758. text '0' 240 104 color 0 18 bold;
  2759. end;
  2760. implementation eq
  2761. equations
  2762. sum (direct (p.f)) = 0;
  2763. equal (collect (p.e));
  2764. effort = first (p.e);
  2765. implementation_end;
  2766. end;
  2767. connections
  2768. Hin -> MatrixMul\input2;
  2769. Integrate\output -> Splitter2\input;
  2770. MatrixMul\output -> Hout;
  2771. OneJunction\flow -> Integrate\input 320 272;
  2772. OneJunction\p => Rjoint\p;
  2773. OneJunction\p => uTbai\p1;
  2774. p <= Wbai\p;
  2775. p1 => ZeroJunction\p;
  2776. p2 => AdHji\p2;
  2777. Splitter2\output -> AdHji\H 424 368;
  2778. Splitter2\output -> MatrixMul\input1;
  2779. Tbai\p => Wbai\p;
  2780. uTbai\p2 => Tbai\p;
  2781. Wbai\p <= AdHji\p1;
  2782. ZeroJunction\p => OneJunction\p;
  2783. end;
  2784. parameterrelations
  2785. EndstopMin\Rendstop = Rendstop;
  2786. EndstopMin\Cendstop = Cendstop;
  2787. EndstopMin\InitialPos = InitialPos;
  2788. EndstopMin\EndstopPos = MinEndstopPos;
  2789. EndstopMax\Rendstop = Rendstop;
  2790. EndstopMax\Cendstop = Cendstop;
  2791. EndstopMax\InitialPos = InitialPos;
  2792. EndstopMax\EndstopPos = MaxEndstopPos;
  2793. Rjoint\Rjoint= Rjoint;
  2794. Integrate\init = InitialPos;
  2795. uTbai\Rconstraint = Rconstraint;
  2796. uTbai\Cconstraint = Cconstraint;parameterrelations_end;
  2797. figures
  2798. text 'b = next link (body)
  2799. a = previous link (body)
  2800. i = Frame fixed in previous body, fixed in joint
  2801. j = Frame fixed in next body, fixed in joint
  2802. ' 744 400 color 0;
  2803. implementation_end;
  2804. JointBase2 296.2 296
  2805. description '<Description>
  2806. <Version>4.1</Version>
  2807. <IsMainModel>1</IsMainModel>
  2808. <KeepParameterValues>False</KeepParameterValues>
  2809. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2810. <LibraryPath>Joint-roty.emx</LibraryPath>
  2811. <TimeStamp>2011-1-18 17:30:05</TimeStamp>
  2812. </Description>';
  2813. type 'Submodel-roty'
  2814. ports
  2815. power out p [6,1];
  2816. power in p1;
  2817. power in p2 [6,1];
  2818. signal in Hin [4,4];
  2819. signal out Hout [4,4];
  2820. parameters
  2821. real Rconstraint = 1000.0;
  2822. real Cconstraint = 1.0e-4;
  2823. real Rendstop = 1000.0;
  2824. real Cendstop = 1.0e-4;
  2825. real InitialPos = 0.0;
  2826. real MaxEndstopPos = 1.57;
  2827. real MinEndstopPos = -1.131;
  2828. real Rjoint = 0.1;
  2829. end;
  2830. icon bg bottom
  2831. figures
  2832. rectangle 264.5 224 328 368 color 0 fill 14745599;
  2833. text 'Joint-roty' 296.5 299 color 0;
  2834. terminals
  2835. p 264 256 fixed;
  2836. p1 295.5 224 fixed;
  2837. p2 328 256 fixed;
  2838. Hin 264 336 fixed;
  2839. Hout 328 336 fixed;
  2840. end;
  2841. implementation bg
  2842. submodels
  2843. AdHji 424 424
  2844. description '<Description>
  2845. <Version>4.0</Version>
  2846. <IsMainModel>1</IsMainModel>
  2847. <KeepParameterValues>False</KeepParameterValues>
  2848. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  2849. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  2850. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2851. </Description>';
  2852. type MTF
  2853. ports
  2854. power out p1 [6,1];
  2855. power in p2 [6,1];
  2856. signal in H [4,4];
  2857. restrictions
  2858. causality constraint not_equal p1 p2;
  2859. end;
  2860. icon bg bottom
  2861. figures
  2862. text 'MTF' 424 424 color 0 18 bold;
  2863. end;
  2864. implementation eq
  2865. equations
  2866. p2.e = transpose(Adjoint(H)) * p1.e;
  2867. p1.f = Adjoint(H) * p2.f;implementation_end;
  2868. Integrate 320 328
  2869. description '<Description>
  2870. <Version>4.0</Version>
  2871. <IsMainModel>1</IsMainModel>
  2872. <KeepParameterValues>False</KeepParameterValues>
  2873. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  2874. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  2875. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2876. </Description>';
  2877. type Integrate
  2878. ports
  2879. signal in input;
  2880. signal out output [4,4];
  2881. parameters
  2882. real init = -2.9496;
  2883. end;
  2884. icon bg
  2885. figures
  2886. rectangle 304 312 336 344 color 0 fill 15132390;
  2887. text 'ò' 320 325.3 color 16711680 'SymbolProp BT' 21 symbol;
  2888. end;
  2889. implementation eq
  2890. variables
  2891. real R[3,3];
  2892. real p[3];
  2893. real q;
  2894. equations
  2895. q = -int(input,init);
  2896. R = [ cos(q), -sin(q), 0;
  2897. sin(q), cos(q), 0;
  2898. 0, 0, 1];
  2899. p = [0;0;0];
  2900. output = homogeneous(R,p);
  2901. implementation_end;
  2902. MatrixMul 320 496
  2903. description '<Description>
  2904. <Version>4.0</Version>
  2905. <IsMainModel>1</IsMainModel>
  2906. <KeepParameterValues>False</KeepParameterValues>
  2907. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  2908. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  2909. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2910. </Description>';
  2911. type Gain
  2912. ports
  2913. signal in input1 [4,4];
  2914. signal out output [4,4];
  2915. signal in input2 [4,4];
  2916. end;
  2917. icon bg bottom
  2918. figures
  2919. rectangle 304.1 480 335.9 512 color 0 fill 15132390;
  2920. text 'X' 320 496 color 16711680 16 bold;
  2921. end;
  2922. implementation eq
  2923. equations
  2924. output = input2*input1; implementation_end;
  2925. plug p1 240 56;
  2926. plug p2 496 424;
  2927. plug Hin 112 496;
  2928. plug Hout 504 496;
  2929. plug p 112 424;
  2930. OneJunction 240 272
  2931. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2932. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2933. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  2934. </Description>';
  2935. knot OneJunction
  2936. ports
  2937. power knot duplicatable none p [1];
  2938. signal knot out flow [1];
  2939. restrictions
  2940. causality constraint one_out p;
  2941. end;
  2942. icon bg
  2943. figures
  2944. text '1' 240 272 color 0 18 bold;
  2945. end;
  2946. implementation eq
  2947. equations
  2948. sum (direct (p.e)) = 0;
  2949. equal (collect (p.f));
  2950. flow = first (p.f);
  2951. implementation_end;
  2952. Rjoint 192 272
  2953. description '<Description>
  2954. <Version>4.0</Version>
  2955. <IsMainModel>1</IsMainModel>
  2956. <KeepParameterValues>False</KeepParameterValues>
  2957. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  2958. <TimeStamp>2007-9-25 12:3:18</TimeStamp>
  2959. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2960. </Description>';
  2961. type R
  2962. ports
  2963. power in p;
  2964. parameters
  2965. real Rjoint = 0.1;
  2966. end;
  2967. icon bg bottom
  2968. figures
  2969. text 'R' 192 272 color 0 18 bold;
  2970. end;
  2971. implementation eq
  2972. equations
  2973. p.e = Rjoint * p.f;
  2974. implementation_end;
  2975. Splitter2 320 368
  2976. description '<Description><Version>4.0</Version>
  2977. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2978. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2979. <IsMainModel>1</IsMainModel>
  2980. <KeepParameterValues>False</KeepParameterValues>
  2981. </Description>';
  2982. knot Splitter
  2983. ports
  2984. signal knot duplicatable out output [4,4];
  2985. signal knot in input [4,4];
  2986. end;
  2987. icon bg ellipse
  2988. figures
  2989. ellipse 316.8 364.8 323.2 371.2 color -1 fill 0;
  2990. ellipse 315.7 363.7 324.3 372.3 color -1;
  2991. terminals
  2992. input 320 368 fixed;
  2993. end;
  2994. implementation eq
  2995. equations
  2996. collect (output) = input;
  2997. implementation_end;
  2998. Tbai 240 376
  2999. description '<Description>
  3000. <Version>4.0</Version>
  3001. <IsMainModel>1</IsMainModel>
  3002. <KeepParameterValues>False</KeepParameterValues>
  3003. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3004. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  3005. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  3006. </Description>';
  3007. knot OneJunction
  3008. ports
  3009. power knot duplicatable none p [6,1];
  3010. signal knot out flow [6,1];
  3011. restrictions
  3012. causality constraint one_out p;
  3013. end;
  3014. icon bg left
  3015. figures
  3016. text '1' 240 376 color 0 18 bold;
  3017. end;
  3018. implementation eq
  3019. equations
  3020. sum (direct (p.e)) = 0;
  3021. equal (collect (p.f));
  3022. flow = first (p.f);
  3023. implementation_end;
  3024. uTbai 240 328
  3025. description '<Description>
  3026. <Version>4.0</Version>
  3027. <IsMainModel>1</IsMainModel>
  3028. <KeepParameterValues>False</KeepParameterValues>
  3029. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  3030. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  3031. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  3032. </Description>';
  3033. type TF
  3034. ports
  3035. power in p1;
  3036. power out p2 [6,1];
  3037. restrictions
  3038. causality constraint not_equal p1 p2;
  3039. causality fixed in p1;
  3040. causality fixed out p2;
  3041. parameters
  3042. real Cconstraint = 1.0e-4;
  3043. real Rconstraint = 1000.0;
  3044. end;
  3045. icon bg left
  3046. figures
  3047. text 'TF' 240 328 color 0 18 bold;
  3048. end;
  3049. implementation eq
  3050. equations
  3051. p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  3052. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  3053. p2.e[3] = p1.e;
  3054. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  3055. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  3056. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  3057. p1.f = p2.f[3];
  3058. implementation_end;
  3059. Wbai 240 424
  3060. description '<Description>
  3061. <Version>4.0</Version>
  3062. <IsMainModel>1</IsMainModel>
  3063. <KeepParameterValues>False</KeepParameterValues>
  3064. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  3065. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  3066. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  3067. </Description>';
  3068. knot ZeroJunction
  3069. ports
  3070. power knot duplicatable none p [6,1];
  3071. signal knot out effort [6,1];
  3072. restrictions
  3073. causality constraint one_in p;
  3074. end;
  3075. icon bg bottom
  3076. figures
  3077. text '0' 240 424 color 0 18 bold;
  3078. end;
  3079. implementation eq
  3080. equations
  3081. sum (direct (p.f)) = 0;
  3082. equal (collect (p.e));
  3083. effort = first (p.e);
  3084. implementation_end;
  3085. ZeroJunction 240 160
  3086. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3087. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  3088. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  3089. </Description>';
  3090. knot ZeroJunction
  3091. ports
  3092. power knot duplicatable none p [1];
  3093. signal knot out effort [1];
  3094. restrictions
  3095. causality constraint one_in p;
  3096. end;
  3097. icon bg
  3098. figures
  3099. text '0' 240 160 color 0 18 bold;
  3100. end;
  3101. implementation eq
  3102. equations
  3103. sum (direct (p.f)) = 0;
  3104. equal (collect (p.e));
  3105. effort = first (p.e);
  3106. implementation_end;
  3107. end;
  3108. connections
  3109. Hin -> MatrixMul\input2;
  3110. Integrate\output -> Splitter2\input;
  3111. MatrixMul\output -> Hout;
  3112. OneJunction\flow -> Integrate\input 320 272;
  3113. OneJunction\p => Rjoint\p;
  3114. OneJunction\p => uTbai\p1;
  3115. p <= Wbai\p;
  3116. p1 => ZeroJunction\p;
  3117. p2 => AdHji\p2;
  3118. Splitter2\output -> AdHji\H 424 368;
  3119. Splitter2\output -> MatrixMul\input1;
  3120. Tbai\p => Wbai\p;
  3121. uTbai\p2 => Tbai\p;
  3122. Wbai\p <= AdHji\p1;
  3123. ZeroJunction\p => OneJunction\p;
  3124. end;
  3125. parameterrelations
  3126. EndstopMin\Rendstop = Rendstop;
  3127. EndstopMin\Cendstop = Cendstop;
  3128. EndstopMin\InitialPos = InitialPos;
  3129. EndstopMin\EndstopPos = MinEndstopPos;
  3130. EndstopMax\Rendstop = Rendstop;
  3131. EndstopMax\Cendstop = Cendstop;
  3132. EndstopMax\InitialPos = InitialPos;
  3133. EndstopMax\EndstopPos = MaxEndstopPos;
  3134. Rjoint\Rjoint= Rjoint;
  3135. Integrate\init = InitialPos;
  3136. uTbai\Rconstraint = Rconstraint;
  3137. uTbai\Cconstraint = Cconstraint;parameterrelations_end;
  3138. figures
  3139. text 'b = next link (body)
  3140. a = previous link (body)
  3141. i = Frame fixed in previous body, fixed in joint
  3142. j = Frame fixed in next body, fixed in joint
  3143. ' 744 400 color 0;
  3144. implementation_end;
  3145. Link 464 504
  3146. description '<Information>
  3147. <Description>
  3148. <Version>4.8</Version>
  3149. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  3150. <IsMainModel>1</IsMainModel>
  3151. <KeepParameterValues>False</KeepParameterValues>
  3152. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  3153. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3154. </Description>
  3155. </Information>';
  3156. type 'Submodel-Equation'
  3157. ports
  3158. signal in Hin [4,4];
  3159. signal out Hout [4,4];
  3160. power in Pin [6,1];
  3161. power out Pout [6,1];
  3162. restrictions
  3163. causality constraint not_equal Pin Pout;
  3164. end;
  3165. icon bg bottom
  3166. figures
  3167. rectangle 432 464 496 544 color 0 fill 8454041;
  3168. text 'name' 464 488 color 0 'Clear Sans' 16;
  3169. terminals
  3170. Hin 432 528 fixed;
  3171. Hout 496 528 fixed;
  3172. Pin 496 480 fixed;
  3173. Pout 432 480 fixed;
  3174. end;
  3175. implementation eq
  3176. parameters
  3177. real offset[3]= [0.0; 0.0325; 0.0]; //coordinates of joint_1
  3178. variables
  3179. real Hab[4,4];
  3180. real AdHab[6,6];
  3181. equations
  3182. Hab = homogeneous(eye(3),offset);
  3183. AdHab = Adjoint(eye(3),offset);
  3184. Hout = Hin * Hab;
  3185. Pout.e = transpose(AdHab) * Pin.e;
  3186. Pin.f = AdHab * Pout.f;
  3187. implementation_end;
  3188. Link1 624 504
  3189. description '<Information>
  3190. <Description>
  3191. <Version>4.8</Version>
  3192. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  3193. <IsMainModel>1</IsMainModel>
  3194. <KeepParameterValues>False</KeepParameterValues>
  3195. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  3196. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3197. </Description>
  3198. </Information>';
  3199. type 'Submodel-Equation'
  3200. ports
  3201. signal in Hin [4,4];
  3202. signal out Hout [4,4];
  3203. power in Pin [6,1];
  3204. power out Pout [6,1];
  3205. restrictions
  3206. causality constraint not_equal Pin Pout;
  3207. end;
  3208. icon bg bottom
  3209. figures
  3210. rectangle 592 464 656 544 color 0 fill 8454041;
  3211. text 'name' 624 488 color 0 'Clear Sans' 16;
  3212. terminals
  3213. Hin 592 528 fixed;
  3214. Hout 656 528 fixed;
  3215. Pin 656 480 fixed;
  3216. Pout 592 480 fixed;
  3217. end;
  3218. implementation eq
  3219. parameters
  3220. real offset[3]= [0.0; 0.0325; 0.0]; //coordinates of joint_1
  3221. variables
  3222. real Hab[4,4];
  3223. real AdHab[6,6];
  3224. equations
  3225. Hab = homogeneous(eye(3),offset);
  3226. AdHab = Adjoint(eye(3),offset);
  3227. Hout = Hin * Hab;
  3228. Pout.e = transpose(AdHab) * Pin.e;
  3229. Pin.f = AdHab * Pout.f;
  3230. implementation_end;
  3231. Link2 808 504
  3232. description '<Information>
  3233. <Description>
  3234. <Version>4.8</Version>
  3235. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  3236. <IsMainModel>1</IsMainModel>
  3237. <KeepParameterValues>False</KeepParameterValues>
  3238. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  3239. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3240. </Description>
  3241. </Information>';
  3242. type 'Submodel-Equation'
  3243. ports
  3244. signal in Hin [4,4];
  3245. signal out Hout [4,4];
  3246. power in Pin [6,1];
  3247. power out Pout [6,1];
  3248. restrictions
  3249. causality constraint not_equal Pin Pout;
  3250. end;
  3251. icon bg bottom
  3252. figures
  3253. rectangle 776 464 840 544 color 0 fill 8454041;
  3254. text 'name' 808 488 color 0 'Clear Sans' 16;
  3255. terminals
  3256. Hin 776 528 fixed;
  3257. Hout 840 528 fixed;
  3258. Pin 840 480 fixed;
  3259. Pout 776 480 fixed;
  3260. end;
  3261. implementation eq
  3262. parameters
  3263. real offset[3]= [0; 0.025; 0]; //coordinates of joint_1
  3264. variables
  3265. real Hab[4,4];
  3266. real AdHab[6,6];
  3267. equations
  3268. Hab = homogeneous(eye(3),offset);
  3269. AdHab = Adjoint(eye(3),offset);
  3270. Hout = Hin * Hab;
  3271. Pout.e = transpose(AdHab) * Pin.e;
  3272. Pin.f = AdHab * Pout.f;
  3273. implementation_end;
  3274. Link3 968 504
  3275. description '<Information>
  3276. <Description>
  3277. <Version>4.8</Version>
  3278. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  3279. <IsMainModel>1</IsMainModel>
  3280. <KeepParameterValues>False</KeepParameterValues>
  3281. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  3282. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3283. </Description>
  3284. </Information>';
  3285. type 'Submodel-Equation'
  3286. ports
  3287. signal in Hin [4,4];
  3288. signal out Hout [4,4];
  3289. power in Pin [6,1];
  3290. power out Pout [6,1];
  3291. restrictions
  3292. causality constraint not_equal Pin Pout;
  3293. end;
  3294. icon bg bottom
  3295. figures
  3296. rectangle 936 464 1000 544 color 0 fill 8454041;
  3297. text 'name' 968 488 color 0 'Clear Sans' 16;
  3298. terminals
  3299. Hin 936 528 fixed;
  3300. Hout 1000 528 fixed;
  3301. Pin 1000 480 fixed;
  3302. Pout 936 480 fixed;
  3303. end;
  3304. implementation eq
  3305. parameters
  3306. real offset[3]= [0; 0.025; 0]; //coordinates of joint_1
  3307. variables
  3308. real Hab[4,4];
  3309. real AdHab[6,6];
  3310. equations
  3311. Hab = homogeneous(eye(3),offset);
  3312. AdHab = Adjoint(eye(3),offset);
  3313. Hout = Hin * Hab;
  3314. Pout.e = transpose(AdHab) * Pin.e;
  3315. Pin.f = AdHab * Pout.f;
  3316. implementation_end;
  3317. new_joint1 672 592
  3318. description '<Description><Version>4.0</Version>
  3319. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3320. <IsMainModel>1</IsMainModel>
  3321. <KeepParameterValues>False</KeepParameterValues>
  3322. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3323. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3324. </Description>';
  3325. type 'Submodel-Equation'
  3326. ports
  3327. signal in input [4,4];
  3328. signal out output;
  3329. end;
  3330. implementation eq
  3331. variables
  3332. real position[3];
  3333. real rotation[3];
  3334. real R[3,3];
  3335. equations
  3336. // start typing here
  3337. position = input[1:3,4];
  3338. rotation = [input[3,2];input[1,3];input[2,1]];
  3339. R = input[1:3,1:3];implementation_end;
  3340. new_joint2 1064 528
  3341. description '<Description><Version>4.0</Version>
  3342. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3343. <IsMainModel>1</IsMainModel>
  3344. <KeepParameterValues>False</KeepParameterValues>
  3345. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3346. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3347. </Description>';
  3348. type 'Submodel-Equation'
  3349. ports
  3350. signal in input [4,4];
  3351. signal out output;
  3352. end;
  3353. implementation eq
  3354. variables
  3355. real position[3];
  3356. real rotation[3];
  3357. real R[3,3];
  3358. equations
  3359. // start typing here
  3360. position = input[1:3,4];
  3361. rotation = [input[3,2];input[1,3];input[2,1]];
  3362. R = input[1:3,1:3];implementation_end;
  3363. OneJunction 232 256
  3364. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3365. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3366. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  3367. </Description>';
  3368. knot OneJunction
  3369. ports
  3370. power knot duplicatable none p [6,1];
  3371. signal knot out flow [6,1];
  3372. restrictions
  3373. causality constraint one_out p;
  3374. end;
  3375. icon bg
  3376. figures
  3377. text '1' 232 256 color 0 18 bold;
  3378. end;
  3379. implementation eq
  3380. equations
  3381. sum (direct (p.e)) = 0;
  3382. equal (collect (p.f));
  3383. flow = first (p.f);
  3384. implementation_end;
  3385. OneJunction1 304 480
  3386. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3387. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3388. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  3389. </Description>';
  3390. knot OneJunction
  3391. ports
  3392. power knot duplicatable none p [6,1];
  3393. signal knot out flow [6,1];
  3394. restrictions
  3395. causality constraint one_out p;
  3396. end;
  3397. icon bg
  3398. figures
  3399. text '1' 304 480 color 0 18 bold;
  3400. end;
  3401. implementation eq
  3402. equations
  3403. sum (direct (p.e)) = 0;
  3404. equal (collect (p.f));
  3405. flow = first (p.f);
  3406. implementation_end;
  3407. ori_joint1 440 408
  3408. description '<Description><Version>4.0</Version>
  3409. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3410. <IsMainModel>1</IsMainModel>
  3411. <KeepParameterValues>False</KeepParameterValues>
  3412. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3413. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3414. </Description>';
  3415. type 'Submodel-Equation'
  3416. ports
  3417. signal in input [4,4];
  3418. signal out output;
  3419. end;
  3420. implementation eq
  3421. variables
  3422. real position[3];
  3423. real rotation[3];
  3424. real R[3,3];
  3425. equations
  3426. // start typing here
  3427. position = input[1:3,4];
  3428. rotation = [input[3,2];input[1,3];input[2,1]];
  3429. R = input[1:3,1:3];
  3430. implementation_end;
  3431. ori_joint2 760 336
  3432. description '<Description><Version>4.0</Version>
  3433. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3434. <IsMainModel>1</IsMainModel>
  3435. <KeepParameterValues>False</KeepParameterValues>
  3436. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3437. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3438. </Description>';
  3439. type 'Submodel-Equation'
  3440. ports
  3441. signal in input [4,4];
  3442. signal out output;
  3443. end;
  3444. implementation eq
  3445. variables
  3446. real position[3];
  3447. real rotation[3];
  3448. real R[3,3];
  3449. equations
  3450. // start typing here
  3451. position = input[1:3,4];
  3452. rotation = [input[3,2];input[1,3];input[2,1]];
  3453. R = input[1:3,1:3];implementation_end;
  3454. Sf 160 256
  3455. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3456. <LibraryPath>Bond Graph\3D\Sf-3.emx</LibraryPath>
  3457. <TimeStamp>2007-9-25 12:11:58</TimeStamp>
  3458. </Description>';
  3459. type 'Sf-3'
  3460. ports
  3461. power out p [6,1];
  3462. restrictions
  3463. causality fixed in p;
  3464. end;
  3465. icon bg bottom
  3466. figures
  3467. text 'Sf' 160 256 color 0 18 bold;
  3468. end;
  3469. implementation eq
  3470. parameters
  3471. real flow[6,1] = 0;
  3472. variables
  3473. real effort [6];
  3474. equations
  3475. p.f = flow;
  3476. effort = p.e;
  3477. implementation_end;
  3478. Sf1 256 480
  3479. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3480. <LibraryPath>Bond Graph\3D\Sf-3.emx</LibraryPath>
  3481. <TimeStamp>2007-9-25 12:11:58</TimeStamp>
  3482. </Description>';
  3483. type 'Sf-3'
  3484. ports
  3485. power out p [6,1];
  3486. restrictions
  3487. causality fixed in p;
  3488. end;
  3489. icon bg bottom
  3490. figures
  3491. text 'Sf' 256 480 color 0 18 bold;
  3492. end;
  3493. implementation eq
  3494. parameters
  3495. real flow[6,1] = 0;
  3496. variables
  3497. real effort [6];
  3498. equations
  3499. p.f = flow;
  3500. effort = p.e;
  3501. implementation_end;
  3502. Splitter1 296 96
  3503. description '<Description><Version>4.0</Version>
  3504. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3505. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3506. <IsMainModel>1</IsMainModel>
  3507. <KeepParameterValues>False</KeepParameterValues>
  3508. </Description>';
  3509. knot Splitter
  3510. ports
  3511. signal knot duplicatable out output [1];
  3512. signal knot in input [1];
  3513. end;
  3514. icon bg ellipse
  3515. figures
  3516. ellipse 292.8 92.8 299.2 99.2 color -1 fill 0;
  3517. ellipse 291.7 91.7 300.3 100.3 color -1;
  3518. terminals
  3519. input 296 96 fixed;
  3520. end;
  3521. implementation eq
  3522. equations
  3523. collect (output) = input;
  3524. implementation_end;
  3525. Splitter2 232 336
  3526. description '<Description><Version>4.0</Version>
  3527. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3528. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3529. <IsMainModel>1</IsMainModel>
  3530. <KeepParameterValues>False</KeepParameterValues>
  3531. </Description>';
  3532. knot Splitter
  3533. ports
  3534. signal knot duplicatable out output [4,4];
  3535. signal knot in input [4,4];
  3536. end;
  3537. icon bg ellipse
  3538. figures
  3539. ellipse 228.8 332.8 235.2 339.2 color -1 fill 0;
  3540. ellipse 227.7 331.7 236.3 340.3 color -1;
  3541. terminals
  3542. input 232 336 fixed;
  3543. end;
  3544. implementation eq
  3545. equations
  3546. collect (output) = input;
  3547. implementation_end;
  3548. Splitter3 480 640
  3549. description '<Description><Version>4.0</Version>
  3550. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3551. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3552. <IsMainModel>1</IsMainModel>
  3553. <KeepParameterValues>False</KeepParameterValues>
  3554. </Description>';
  3555. knot Splitter
  3556. ports
  3557. signal knot duplicatable out output [1];
  3558. signal knot in input [1];
  3559. end;
  3560. icon bg ellipse
  3561. figures
  3562. ellipse 476.8 636.8 483.2 643.2 color -1 fill 0;
  3563. ellipse 475.7 635.7 484.3 644.3 color -1;
  3564. terminals
  3565. input 480 640 fixed;
  3566. end;
  3567. implementation eq
  3568. equations
  3569. collect (output) = input;
  3570. implementation_end;
  3571. Splitter4 232 528
  3572. description '<Description><Version>4.0</Version>
  3573. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3574. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3575. <IsMainModel>1</IsMainModel>
  3576. <KeepParameterValues>False</KeepParameterValues>
  3577. </Description>';
  3578. knot Splitter
  3579. ports
  3580. signal knot duplicatable out output [4,4];
  3581. signal knot in input [4,4];
  3582. end;
  3583. icon bg ellipse
  3584. figures
  3585. ellipse 228.8 524.8 235.2 531.2 color -1 fill 0;
  3586. ellipse 227.7 523.7 236.3 532.3 color -1;
  3587. terminals
  3588. input 232 528 fixed;
  3589. end;
  3590. implementation eq
  3591. equations
  3592. collect (output) = input;
  3593. implementation_end;
  3594. Splitter5 440 336
  3595. description '<Description><Version>4.0</Version>
  3596. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3597. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3598. <IsMainModel>1</IsMainModel>
  3599. <KeepParameterValues>False</KeepParameterValues>
  3600. </Description>';
  3601. knot Splitter
  3602. ports
  3603. signal knot duplicatable out output [4,4];
  3604. signal knot in input [4,4];
  3605. end;
  3606. icon bg ellipse
  3607. figures
  3608. ellipse 436.8 332.8 443.2 339.2 color -1 fill 0;
  3609. ellipse 435.7 331.7 444.3 340.3 color -1;
  3610. terminals
  3611. input 440 336 fixed;
  3612. end;
  3613. implementation eq
  3614. equations
  3615. collect (output) = input;
  3616. implementation_end;
  3617. Splitter6 672 528
  3618. description '<Description><Version>4.0</Version>
  3619. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3620. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3621. <IsMainModel>1</IsMainModel>
  3622. <KeepParameterValues>False</KeepParameterValues>
  3623. </Description>';
  3624. knot Splitter
  3625. ports
  3626. signal knot duplicatable out output [4,4];
  3627. signal knot in input [4,4];
  3628. end;
  3629. icon bg ellipse
  3630. figures
  3631. ellipse 668.8 524.8 675.2 531.2 color -1 fill 0;
  3632. ellipse 667.7 523.7 676.3 532.3 color -1;
  3633. terminals
  3634. input 672 528 fixed;
  3635. end;
  3636. implementation eq
  3637. equations
  3638. collect (output) = input;
  3639. implementation_end;
  3640. Submodel1 296 144
  3641. description '<Description>
  3642. <Version>4.8</Version>
  3643. <IsMainModel>1</IsMainModel>
  3644. </Description>';
  3645. type Submodel
  3646. ports
  3647. signal in input;
  3648. power out p2;
  3649. end;
  3650. implementation bg
  3651. submodels
  3652. Gain1 552 88
  3653. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3654. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3655. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3656. </Description>';
  3657. type Gain
  3658. ports
  3659. signal in input;
  3660. signal out output;
  3661. end;
  3662. icon bg bottom
  3663. figures
  3664. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3665. text 'K' 552 88 color 16711680 16 bold;
  3666. end;
  3667. implementation eq
  3668. parameters
  3669. real K = 12.0; // gain
  3670. equations
  3671. output = K * input;
  3672. implementation_end;
  3673. GY 624 184
  3674. description '<Information>
  3675. <Description>
  3676. <Version>4.2</Version>
  3677. <IsMainModel>1</IsMainModel>
  3678. <KeepParameterValues>False</KeepParameterValues>
  3679. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3680. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3681. </Description>
  3682. </Information>';
  3683. type GY
  3684. ports
  3685. power in p1;
  3686. power out p2;
  3687. restrictions
  3688. causality constraint equal p1 p2;
  3689. end;
  3690. icon bg bottom
  3691. figures
  3692. text 'GY' 624 184 color 0 18 bold;
  3693. end;
  3694. implementation eq
  3695. parameters
  3696. real r = 0.127;
  3697. equations
  3698. p1.e = r * p2.f;
  3699. p2.e = r * p1.f;
  3700. implementation_end;
  3701. MSe 624 88
  3702. description '<Information>
  3703. <Description>
  3704. <Version>4.2</Version>
  3705. <IsMainModel>1</IsMainModel>
  3706. <KeepParameterValues>False</KeepParameterValues>
  3707. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3708. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3709. </Description>
  3710. </Information>';
  3711. type MSe
  3712. ports
  3713. power out p;
  3714. signal in effort;
  3715. restrictions
  3716. causality fixed out p;
  3717. end;
  3718. icon bg bottom
  3719. figures
  3720. text 'MSe' 624 88 color 0 18 bold;
  3721. end;
  3722. implementation eq
  3723. variables
  3724. real flow;
  3725. equations
  3726. p.e = effort;
  3727. flow = p.f;
  3728. implementation_end;
  3729. plug input 424 88;
  3730. plug p2 624 220;
  3731. OneJunction2 624 136
  3732. description '<Information>
  3733. <Description>
  3734. <Version>4.2</Version>
  3735. <IsMainModel>1</IsMainModel>
  3736. <KeepParameterValues>False</KeepParameterValues>
  3737. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3738. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3739. </Description>
  3740. </Information>';
  3741. knot OneJunction
  3742. ports
  3743. power knot duplicatable none p [1];
  3744. signal knot out flow [1];
  3745. restrictions
  3746. causality constraint one_out p;
  3747. end;
  3748. icon bg
  3749. figures
  3750. text '1' 624 136 color 0 18 bold;
  3751. end;
  3752. implementation eq
  3753. equations
  3754. sum (direct (p.e)) = 0;
  3755. equal (collect (p.f));
  3756. flow = first (p.f);
  3757. implementation_end;
  3758. R 664 136
  3759. description '<Information>
  3760. <Description>
  3761. <Version>4.2</Version>
  3762. <IsMainModel>1</IsMainModel>
  3763. <KeepParameterValues>False</KeepParameterValues>
  3764. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3765. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3766. </Description>
  3767. </Information>';
  3768. type R
  3769. ports
  3770. power in p;
  3771. end;
  3772. icon bg bottom
  3773. figures
  3774. text 'R' 664 136 color 0 18 bold;
  3775. end;
  3776. implementation eq
  3777. parameters
  3778. real r = 0.08;
  3779. equations
  3780. p.e = r * p.f;
  3781. implementation_end;
  3782. SignalLimiter2 488 88
  3783. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3784. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  3785. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  3786. </Description>';
  3787. type 'SignalLimiter-Limit'
  3788. ports
  3789. signal in input;
  3790. signal out output;
  3791. end;
  3792. icon bg bottom
  3793. figures
  3794. group
  3795. rectangle 472 72 504 104 color 0 fill 15132390;
  3796. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  3797. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  3798. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  3799. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  3800. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  3801. end;
  3802. end;
  3803. implementation eq
  3804. parameters
  3805. real maximum = 1;
  3806. real minimum = -1;
  3807. equations
  3808. output = limit (input, minimum, maximum);
  3809. implementation_end;
  3810. end;
  3811. connections
  3812. Gain1\output -> MSe\effort;
  3813. GY\p2 => p2;
  3814. input -> SignalLimiter2\input;
  3815. MSe\p => OneJunction2\p;
  3816. OneJunction2\p => GY\p1;
  3817. R\p <= OneJunction2\p;
  3818. SignalLimiter2\output -> Gain1\input;
  3819. end;
  3820. implementation_end;
  3821. Submodel2 488 96
  3822. description '<Description>
  3823. <Version>4.8</Version>
  3824. <IsMainModel>1</IsMainModel>
  3825. </Description>';
  3826. type Submodel
  3827. ports
  3828. signal in input;
  3829. power out p2;
  3830. end;
  3831. implementation bg
  3832. submodels
  3833. Gain1 552 88
  3834. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3835. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3836. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3837. </Description>';
  3838. type Gain
  3839. ports
  3840. signal in input;
  3841. signal out output;
  3842. end;
  3843. icon bg bottom
  3844. figures
  3845. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3846. text 'K' 552 88 color 16711680 16 bold;
  3847. end;
  3848. implementation eq
  3849. parameters
  3850. real K = 12.0; // gain
  3851. equations
  3852. output = K * input;
  3853. implementation_end;
  3854. GY 624 184
  3855. description '<Information>
  3856. <Description>
  3857. <Version>4.2</Version>
  3858. <IsMainModel>1</IsMainModel>
  3859. <KeepParameterValues>False</KeepParameterValues>
  3860. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3861. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3862. </Description>
  3863. </Information>';
  3864. type GY
  3865. ports
  3866. power in p1;
  3867. power out p2;
  3868. restrictions
  3869. causality constraint equal p1 p2;
  3870. end;
  3871. icon bg bottom
  3872. figures
  3873. text 'GY' 624 184 color 0 18 bold;
  3874. end;
  3875. implementation eq
  3876. parameters
  3877. real r = 0.127;
  3878. equations
  3879. p1.e = r * p2.f;
  3880. p2.e = r * p1.f;
  3881. implementation_end;
  3882. MSe 624 88
  3883. description '<Information>
  3884. <Description>
  3885. <Version>4.2</Version>
  3886. <IsMainModel>1</IsMainModel>
  3887. <KeepParameterValues>False</KeepParameterValues>
  3888. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3889. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3890. </Description>
  3891. </Information>';
  3892. type MSe
  3893. ports
  3894. power out p;
  3895. signal in effort;
  3896. restrictions
  3897. causality fixed out p;
  3898. end;
  3899. icon bg bottom
  3900. figures
  3901. text 'MSe' 624 88 color 0 18 bold;
  3902. end;
  3903. implementation eq
  3904. variables
  3905. real flow;
  3906. equations
  3907. p.e = effort;
  3908. flow = p.f;
  3909. implementation_end;
  3910. plug input 424 88;
  3911. plug p2 624 220;
  3912. OneJunction2 624 136
  3913. description '<Information>
  3914. <Description>
  3915. <Version>4.2</Version>
  3916. <IsMainModel>1</IsMainModel>
  3917. <KeepParameterValues>False</KeepParameterValues>
  3918. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3919. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3920. </Description>
  3921. </Information>';
  3922. knot OneJunction
  3923. ports
  3924. power knot duplicatable none p [1];
  3925. signal knot out flow [1];
  3926. restrictions
  3927. causality constraint one_out p;
  3928. end;
  3929. icon bg
  3930. figures
  3931. text '1' 624 136 color 0 18 bold;
  3932. end;
  3933. implementation eq
  3934. equations
  3935. sum (direct (p.e)) = 0;
  3936. equal (collect (p.f));
  3937. flow = first (p.f);
  3938. implementation_end;
  3939. R 664 136
  3940. description '<Information>
  3941. <Description>
  3942. <Version>4.2</Version>
  3943. <IsMainModel>1</IsMainModel>
  3944. <KeepParameterValues>False</KeepParameterValues>
  3945. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3946. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3947. </Description>
  3948. </Information>';
  3949. type R
  3950. ports
  3951. power in p;
  3952. end;
  3953. icon bg bottom
  3954. figures
  3955. text 'R' 664 136 color 0 18 bold;
  3956. end;
  3957. implementation eq
  3958. parameters
  3959. real r = 0.08;
  3960. equations
  3961. p.e = r * p.f;
  3962. implementation_end;
  3963. SignalLimiter2 488 88
  3964. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3965. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  3966. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  3967. </Description>';
  3968. type 'SignalLimiter-Limit'
  3969. ports
  3970. signal in input;
  3971. signal out output;
  3972. end;
  3973. icon bg bottom
  3974. figures
  3975. group
  3976. rectangle 472 72 504 104 color 0 fill 15132390;
  3977. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  3978. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  3979. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  3980. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  3981. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  3982. end;
  3983. end;
  3984. implementation eq
  3985. parameters
  3986. real maximum = 1;
  3987. real minimum = -1;
  3988. equations
  3989. output = limit (input, minimum, maximum);
  3990. implementation_end;
  3991. end;
  3992. connections
  3993. Gain1\output -> MSe\effort;
  3994. GY\p2 => p2;
  3995. input -> SignalLimiter2\input;
  3996. MSe\p => OneJunction2\p;
  3997. OneJunction2\p => GY\p1;
  3998. R\p <= OneJunction2\p;
  3999. SignalLimiter2\output -> Gain1\input;
  4000. end;
  4001. implementation_end;
  4002. Submodel4 384 640
  4003. description '<Description>
  4004. <Version>4.8</Version>
  4005. <IsMainModel>1</IsMainModel>
  4006. </Description>';
  4007. type Submodel
  4008. ports
  4009. signal in input;
  4010. power out p2;
  4011. end;
  4012. implementation bg
  4013. submodels
  4014. Gain1 552 88
  4015. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4016. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  4017. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  4018. </Description>';
  4019. type Gain
  4020. ports
  4021. signal in input;
  4022. signal out output;
  4023. end;
  4024. icon bg bottom
  4025. figures
  4026. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  4027. text 'K' 552 88 color 16711680 16 bold;
  4028. end;
  4029. implementation eq
  4030. parameters
  4031. real K = 12.0; // gain
  4032. equations
  4033. output = K * input;
  4034. implementation_end;
  4035. GY 624 184
  4036. description '<Information>
  4037. <Description>
  4038. <Version>4.2</Version>
  4039. <IsMainModel>1</IsMainModel>
  4040. <KeepParameterValues>False</KeepParameterValues>
  4041. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  4042. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  4043. </Description>
  4044. </Information>';
  4045. type GY
  4046. ports
  4047. power in p1;
  4048. power out p2;
  4049. restrictions
  4050. causality constraint equal p1 p2;
  4051. end;
  4052. icon bg bottom
  4053. figures
  4054. text 'GY' 624 184 color 0 18 bold;
  4055. end;
  4056. implementation eq
  4057. parameters
  4058. real r = 0.127;
  4059. equations
  4060. p1.e = r * p2.f;
  4061. p2.e = r * p1.f;
  4062. implementation_end;
  4063. MSe 624 88
  4064. description '<Information>
  4065. <Description>
  4066. <Version>4.2</Version>
  4067. <IsMainModel>1</IsMainModel>
  4068. <KeepParameterValues>False</KeepParameterValues>
  4069. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  4070. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  4071. </Description>
  4072. </Information>';
  4073. type MSe
  4074. ports
  4075. power out p;
  4076. signal in effort;
  4077. restrictions
  4078. causality fixed out p;
  4079. end;
  4080. icon bg bottom
  4081. figures
  4082. text 'MSe' 624 88 color 0 18 bold;
  4083. end;
  4084. implementation eq
  4085. variables
  4086. real flow;
  4087. equations
  4088. p.e = effort;
  4089. flow = p.f;
  4090. implementation_end;
  4091. plug input 424 88;
  4092. plug p2 624 220;
  4093. OneJunction2 624 136
  4094. description '<Information>
  4095. <Description>
  4096. <Version>4.2</Version>
  4097. <IsMainModel>1</IsMainModel>
  4098. <KeepParameterValues>False</KeepParameterValues>
  4099. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  4100. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  4101. </Description>
  4102. </Information>';
  4103. knot OneJunction
  4104. ports
  4105. power knot duplicatable none p [1];
  4106. signal knot out flow [1];
  4107. restrictions
  4108. causality constraint one_out p;
  4109. end;
  4110. icon bg
  4111. figures
  4112. text '1' 624 136 color 0 18 bold;
  4113. end;
  4114. implementation eq
  4115. equations
  4116. sum (direct (p.e)) = 0;
  4117. equal (collect (p.f));
  4118. flow = first (p.f);
  4119. implementation_end;
  4120. R 664 136
  4121. description '<Information>
  4122. <Description>
  4123. <Version>4.2</Version>
  4124. <IsMainModel>1</IsMainModel>
  4125. <KeepParameterValues>False</KeepParameterValues>
  4126. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  4127. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  4128. </Description>
  4129. </Information>';
  4130. type R
  4131. ports
  4132. power in p;
  4133. end;
  4134. icon bg bottom
  4135. figures
  4136. text 'R' 664 136 color 0 18 bold;
  4137. end;
  4138. implementation eq
  4139. parameters
  4140. real r = 0.08;
  4141. equations
  4142. p.e = r * p.f;
  4143. implementation_end;
  4144. SignalLimiter2 488 88
  4145. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4146. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  4147. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  4148. </Description>';
  4149. type 'SignalLimiter-Limit'
  4150. ports
  4151. signal in input;
  4152. signal out output;
  4153. end;
  4154. icon bg bottom
  4155. figures
  4156. group
  4157. rectangle 472 72 504 104 color 0 fill 15132390;
  4158. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  4159. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  4160. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  4161. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  4162. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  4163. end;
  4164. end;
  4165. implementation eq
  4166. parameters
  4167. real maximum = 1;
  4168. real minimum = -1;
  4169. equations
  4170. output = limit (input, minimum, maximum);
  4171. implementation_end;
  4172. end;
  4173. connections
  4174. Gain1\output -> MSe\effort;
  4175. GY\p2 => p2;
  4176. input -> SignalLimiter2\input;
  4177. MSe\p => OneJunction2\p;
  4178. OneJunction2\p => GY\p1;
  4179. R\p <= OneJunction2\p;
  4180. SignalLimiter2\output -> Gain1\input;
  4181. end;
  4182. implementation_end;
  4183. Submodel5 728 640
  4184. description '<Description>
  4185. <Version>4.8</Version>
  4186. <IsMainModel>1</IsMainModel>
  4187. </Description>';
  4188. type Submodel
  4189. ports
  4190. signal in input;
  4191. power out p2;
  4192. end;
  4193. implementation bg
  4194. submodels
  4195. Gain1 552 88
  4196. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4197. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  4198. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  4199. </Description>';
  4200. type Gain
  4201. ports
  4202. signal in input;
  4203. signal out output;
  4204. end;
  4205. icon bg bottom
  4206. figures
  4207. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  4208. text 'K' 552 88 color 16711680 16 bold;
  4209. end;
  4210. implementation eq
  4211. parameters
  4212. real K = 12.0; // gain
  4213. equations
  4214. output = K * input;
  4215. implementation_end;
  4216. GY 624 184
  4217. description '<Information>
  4218. <Description>
  4219. <Version>4.2</Version>
  4220. <IsMainModel>1</IsMainModel>
  4221. <KeepParameterValues>False</KeepParameterValues>
  4222. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  4223. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  4224. </Description>
  4225. </Information>';
  4226. type GY
  4227. ports
  4228. power in p1;
  4229. power out p2;
  4230. restrictions
  4231. causality constraint equal p1 p2;
  4232. end;
  4233. icon bg bottom
  4234. figures
  4235. text 'GY' 624 184 color 0 18 bold;
  4236. end;
  4237. implementation eq
  4238. parameters
  4239. real r = 0.127;
  4240. equations
  4241. p1.e = r * p2.f;
  4242. p2.e = r * p1.f;
  4243. implementation_end;
  4244. MSe 624 88
  4245. description '<Information>
  4246. <Description>
  4247. <Version>4.2</Version>
  4248. <IsMainModel>1</IsMainModel>
  4249. <KeepParameterValues>False</KeepParameterValues>
  4250. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  4251. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  4252. </Description>
  4253. </Information>';
  4254. type MSe
  4255. ports
  4256. power out p;
  4257. signal in effort;
  4258. restrictions
  4259. causality fixed out p;
  4260. end;
  4261. icon bg bottom
  4262. figures
  4263. text 'MSe' 624 88 color 0 18 bold;
  4264. end;
  4265. implementation eq
  4266. variables
  4267. real flow;
  4268. equations
  4269. p.e = effort;
  4270. flow = p.f;
  4271. implementation_end;
  4272. plug input 424 88;
  4273. plug p2 624 220;
  4274. OneJunction2 624 136
  4275. description '<Information>
  4276. <Description>
  4277. <Version>4.2</Version>
  4278. <IsMainModel>1</IsMainModel>
  4279. <KeepParameterValues>False</KeepParameterValues>
  4280. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  4281. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  4282. </Description>
  4283. </Information>';
  4284. knot OneJunction
  4285. ports
  4286. power knot duplicatable none p [1];
  4287. signal knot out flow [1];
  4288. restrictions
  4289. causality constraint one_out p;
  4290. end;
  4291. icon bg
  4292. figures
  4293. text '1' 624 136 color 0 18 bold;
  4294. end;
  4295. implementation eq
  4296. equations
  4297. sum (direct (p.e)) = 0;
  4298. equal (collect (p.f));
  4299. flow = first (p.f);
  4300. implementation_end;
  4301. R 664 136
  4302. description '<Information>
  4303. <Description>
  4304. <Version>4.2</Version>
  4305. <IsMainModel>1</IsMainModel>
  4306. <KeepParameterValues>False</KeepParameterValues>
  4307. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  4308. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  4309. </Description>
  4310. </Information>';
  4311. type R
  4312. ports
  4313. power in p;
  4314. end;
  4315. icon bg bottom
  4316. figures
  4317. text 'R' 664 136 color 0 18 bold;
  4318. end;
  4319. implementation eq
  4320. parameters
  4321. real r = 0.08;
  4322. equations
  4323. p.e = r * p.f;
  4324. implementation_end;
  4325. SignalLimiter2 488 88
  4326. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4327. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  4328. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  4329. </Description>';
  4330. type 'SignalLimiter-Limit'
  4331. ports
  4332. signal in input;
  4333. signal out output;
  4334. end;
  4335. icon bg bottom
  4336. figures
  4337. group
  4338. rectangle 472 72 504 104 color 0 fill 15132390;
  4339. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  4340. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  4341. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  4342. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  4343. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  4344. end;
  4345. end;
  4346. implementation eq
  4347. parameters
  4348. real maximum = 1;
  4349. real minimum = -1;
  4350. equations
  4351. output = limit (input, minimum, maximum);
  4352. implementation_end;
  4353. end;
  4354. connections
  4355. Gain1\output -> MSe\effort;
  4356. GY\p2 => p2;
  4357. input -> SignalLimiter2\input;
  4358. MSe\p => OneJunction2\p;
  4359. OneJunction2\p => GY\p1;
  4360. R\p <= OneJunction2\p;
  4361. SignalLimiter2\output -> Gain1\input;
  4362. end;
  4363. implementation_end;
  4364. Wtip0 760 256
  4365. description '<Description>
  4366. <Version>4.0</Version>
  4367. <IsMainModel>1</IsMainModel>
  4368. <KeepParameterValues>False</KeepParameterValues>
  4369. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  4370. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  4371. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  4372. </Description>';
  4373. type Se
  4374. ports
  4375. power out p [6,1];
  4376. restrictions
  4377. causality fixed out p;
  4378. end;
  4379. icon bg bottom
  4380. figures
  4381. text 'Se' 760 256 color 0 18 bold;
  4382. end;
  4383. implementation eq
  4384. parameters
  4385. real effort = 0.0;
  4386. variables
  4387. real flow[6];
  4388. equations
  4389. p.e = effort;
  4390. flow = p.f;
  4391. implementation_end;
  4392. Wtip1 1064 480
  4393. description '<Description>
  4394. <Version>4.0</Version>
  4395. <IsMainModel>1</IsMainModel>
  4396. <KeepParameterValues>False</KeepParameterValues>
  4397. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  4398. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  4399. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  4400. </Description>';
  4401. type Se
  4402. ports
  4403. power out p [6,1];
  4404. restrictions
  4405. causality fixed out p;
  4406. end;
  4407. icon bg bottom
  4408. figures
  4409. text 'Se' 1064 480 color 0 18 bold;
  4410. end;
  4411. implementation eq
  4412. parameters
  4413. real effort = 0.0;
  4414. variables
  4415. real flow[6];
  4416. equations
  4417. p.e = effort;
  4418. flow = p.f;
  4419. implementation_end;
  4420. end;
  4421. connections
  4422. Base\Hout -> Splitter5\input;
  4423. Base\p => JointBase2\p2;
  4424. Base1\Hout -> ori_joint2\input;
  4425. Base1\p => JointBase1\p2;
  4426. Base2\Hout -> Link3\Hin;
  4427. Base2\p1 <= Link3\Pout;
  4428. Base3\Hout -> Link1\Hin;
  4429. Base3\p1 <= Link1\Pout;
  4430. Constant\output -> Splitter2\input;
  4431. Constant1\output -> Splitter1\input;
  4432. Constant2\output -> Splitter3\input;
  4433. Joint\Hout -> Link\Hin;
  4434. Joint\p2 <= Link\Pout;
  4435. Joint1\Hout -> Link2\Hin;
  4436. Joint1\p2 <= Link2\Pout;
  4437. JointBase1\Hout -> Base1\Hin;
  4438. JointBase1\p => Base\p1;
  4439. JointBase2\Hout -> Base\Hin;
  4440. JointBase2\p => OneJunction\p;
  4441. Link\Hout -> Base3\Hin;
  4442. Link\Pin <= Base3\p;
  4443. Link1\Hout -> Splitter6\input;
  4444. Link1\Pin <= Joint1\p;
  4445. Link2\Hout -> Base2\Hin;
  4446. Link2\Pin <= Base2\p;
  4447. Link3\Hout -> new_joint2\input;
  4448. Link3\Pin <= Wtip1\p;
  4449. OneJunction\p <= Sf\p;
  4450. OneJunction1\p <= Joint\p;
  4451. OneJunction1\p <= Sf1\p;
  4452. Splitter1\output -> Submodel1\input;
  4453. Splitter1\output -> Submodel2\input;
  4454. Splitter2\output -> JointBase2\Hin;
  4455. Splitter2\output -> Splitter4\input;
  4456. Splitter3\output -> Submodel4\input;
  4457. Splitter3\output -> Submodel5\input;
  4458. Splitter4\output -> Joint\Hin;
  4459. Splitter5\output -> JointBase1\Hin;
  4460. Splitter5\output -> ori_joint1\input;
  4461. Splitter6\output -> Joint1\Hin;
  4462. Splitter6\output -> new_joint1\input;
  4463. Submodel1\p2 => JointBase2\p1;
  4464. Submodel2\p2 => JointBase1\p1;
  4465. Submodel4\p2 => Joint\p1;
  4466. Submodel5\p2 => Joint1\p1;
  4467. Wtip0\p => Base1\p1;
  4468. end;
  4469. implementation_end;
  4470. ]]>
  4471. </Sidops>
  4472. </Model>
  4473. <Experiments>
  4474. <DefaultExperiment><![CDATA[Experiment 1]]>
  4475. </DefaultExperiment>
  4476. <Experiment>
  4477. <Name>Experiment 1</Name>
  4478. <CreatedBy></CreatedBy>
  4479. <Info></Info>
  4480. <ExpData>
  4481. <VersionNumber>4.8</VersionNumber>
  4482. <ModelProperties>
  4483. <ModelProperty section="tools\graph editor" entry="debugMode" value="0"/>
  4484. </ModelProperties>
  4485. <Variables>
  4486. <Parameters>
  4487. <Variable>
  4488. <Name>I</Name>
  4489. <Rows>3</Rows>
  4490. <Columns>1</Columns>
  4491. <Value>0 0 0</Value>
  4492. </Variable>
  4493. <Variable>
  4494. <Name>joint</Name>
  4495. <Value>0</Value>
  4496. </Variable>
  4497. <Variable>
  4498. <Name>m</Name>
  4499. <Value>0</Value>
  4500. </Variable>
  4501. </Parameters>
  4502. <Initials>
  4503. <Variable>
  4504. <Name>Base1\InertialTensor\state_initial</Name>
  4505. <Rows>6</Rows>
  4506. <Columns>1</Columns>
  4507. <Value>0 0 0 0 0 0</Value>
  4508. </Variable>
  4509. <Variable>
  4510. <Name>Base2\InertialTensor\state_initial</Name>
  4511. <Rows>6</Rows>
  4512. <Columns>1</Columns>
  4513. <Value>0 0 0 0 0 0</Value>
  4514. </Variable>
  4515. <Variable>
  4516. <Name>Base3\InertialTensor\state_initial</Name>
  4517. <Rows>6</Rows>
  4518. <Columns>1</Columns>
  4519. <Value>0 0 0 0 0 0</Value>
  4520. </Variable>
  4521. <Variable>
  4522. <Name>Base\InertialTensor\state_initial</Name>
  4523. <Rows>6</Rows>
  4524. <Columns>1</Columns>
  4525. <Value>0 0 0 0 0 0</Value>
  4526. </Variable>
  4527. <Variable>
  4528. <Name>Joint1\JointType\uTbai\state_initial</Name>
  4529. <Rows>6</Rows>
  4530. <Columns>1</Columns>
  4531. <Value>0 0 0 0 0 0</Value>
  4532. </Variable>
  4533. <Variable>
  4534. <Name>Joint\JointType\uTbai\state_initial</Name>
  4535. <Rows>6</Rows>
  4536. <Columns>1</Columns>
  4537. <Value>0 0 0 0 0 0</Value>
  4538. </Variable>
  4539. <Variable>
  4540. <Name>new_state1_initial</Name>
  4541. <Value>0</Value>
  4542. </Variable>
  4543. <Variable>
  4544. <Name>new_state10_initial</Name>
  4545. <Value>0</Value>
  4546. </Variable>
  4547. <Variable>
  4548. <Name>new_state2_initial</Name>
  4549. <Value>0</Value>
  4550. </Variable>
  4551. <Variable>
  4552. <Name>new_state3_initial</Name>
  4553. <Value>0</Value>
  4554. </Variable>
  4555. <Variable>
  4556. <Name>new_state4_initial</Name>
  4557. <Value>0</Value>
  4558. </Variable>
  4559. <Variable>
  4560. <Name>new_state5_initial</Name>
  4561. <Value>0</Value>
  4562. </Variable>
  4563. <Variable>
  4564. <Name>new_state6_initial</Name>
  4565. <Value>0</Value>
  4566. </Variable>
  4567. <Variable>
  4568. <Name>new_state7_initial</Name>
  4569. <Value>0</Value>
  4570. </Variable>
  4571. <Variable>
  4572. <Name>new_state8_initial</Name>
  4573. <Value>0</Value>
  4574. </Variable>
  4575. <Variable>
  4576. <Name>new_state9_initial</Name>
  4577. <Value>0</Value>
  4578. </Variable>
  4579. <Variable>
  4580. <Name>Submodel4\R\p.f_initial</Name>
  4581. <Value>0</Value>
  4582. </Variable>
  4583. <Variable>
  4584. <Name>Submodel5\R\p.f_initial</Name>
  4585. <Value>0</Value>
  4586. </Variable>
  4587. </Initials>
  4588. </Variables>
  4589. <PlotSpecs>
  4590. <VarNames>
  4591. <VarName>time</VarName>
  4592. <VarName>ori_joint1\position[1]</VarName>
  4593. <VarName>ori_joint1\position[2]</VarName>
  4594. <VarName>ori_joint1\position[3]</VarName>
  4595. <VarName>new_joint1\position[1]</VarName>
  4596. <VarName>new_joint1\position[2]</VarName>
  4597. <VarName>new_joint1\position[3]</VarName>
  4598. <VarName>ori_joint2\position[1]</VarName>
  4599. <VarName>ori_joint2\position[2]</VarName>
  4600. <VarName>ori_joint2\position[3]</VarName>
  4601. <VarName>ori_joint1\R[1,3]</VarName>
  4602. <VarName>ori_joint1\R[2,3]</VarName>
  4603. <VarName>ori_joint1\R[3,3]</VarName>
  4604. <VarName>ori_joint1\R[1,2]</VarName>
  4605. <VarName>ori_joint1\R[2,2]</VarName>
  4606. <VarName>ori_joint1\R[3,2]</VarName>
  4607. <VarName>ori_joint2\R[1,3]</VarName>
  4608. <VarName>ori_joint2\R[2,3]</VarName>
  4609. <VarName>ori_joint2\R[3,3]</VarName>
  4610. <VarName>ori_joint2\R[1,2]</VarName>
  4611. <VarName>ori_joint2\R[2,2]</VarName>
  4612. <VarName>ori_joint2\R[3,2]</VarName>
  4613. <VarName>new_joint2\position[1]</VarName>
  4614. <VarName>new_joint2\position[2]</VarName>
  4615. <VarName>new_joint2\position[3]</VarName>
  4616. </VarNames>
  4617. <Plots>
  4618. <Plot>
  4619. <PlotType>GraphPlot</PlotType>
  4620. <BasePlot>
  4621. <PlotId>1</PlotId>
  4622. <UseWindowsBGColor>false</UseWindowsBGColor>
  4623. <BGColor>16777215</BGColor>
  4624. <PlotIsVisible>true</PlotIsVisible>
  4625. </BasePlot>
  4626. <Grid>
  4627. <DrawGrid>true</DrawGrid>
  4628. <GridColor>15780518</GridColor>
  4629. <GridBorderLineColor>12624260</GridBorderLineColor>
  4630. <GridZeroLineColor>0</GridZeroLineColor>
  4631. <XTicks>10</XTicks>
  4632. <YTicks>10</YTicks>
  4633. <ZTicks>10</ZTicks>
  4634. <Use3DLook>false</Use3DLook>
  4635. </Grid>
  4636. <PlotBGColor>16777215</PlotBGColor>
  4637. <ShowPlotTitle>true</ShowPlotTitle>
  4638. <TitlePosition>1</TitlePosition>
  4639. <PlotTitle>model</PlotTitle>
  4640. <ShowXValues>true</ShowXValues>
  4641. <Fonts>
  4642. <TitleFont>
  4643. <Name>Arial</Name>
  4644. <Height>12</Height>
  4645. <PitchFamily>34</PitchFamily>
  4646. <Weight>400</Weight>
  4647. <Italic>0</Italic>
  4648. <UnderLine>0</UnderLine>
  4649. <StrikeOut>0</StrikeOut>
  4650. <Color>0</Color>
  4651. </TitleFont>
  4652. <LabelFont>
  4653. <Name>Arial</Name>
  4654. <Height>12</Height>
  4655. <PitchFamily>34</PitchFamily>
  4656. <Weight>400</Weight>
  4657. <Italic>0</Italic>
  4658. <UnderLine>0</UnderLine>
  4659. <StrikeOut>0</StrikeOut>
  4660. <Color>0</Color>
  4661. </LabelFont>
  4662. <ValuesFont>
  4663. <Name>Arial</Name>
  4664. <Height>10</Height>
  4665. <PitchFamily>34</PitchFamily>
  4666. <Weight>400</Weight>
  4667. <Italic>0</Italic>
  4668. <UnderLine>0</UnderLine>
  4669. <StrikeOut>0</StrikeOut>
  4670. <Color>0</Color>
  4671. </ValuesFont>
  4672. <LegendFont>
  4673. <Name>Arial</Name>
  4674. <Height>12</Height>
  4675. <PitchFamily>34</PitchFamily>
  4676. <Weight>400</Weight>
  4677. <Italic>0</Italic>
  4678. <UnderLine>0</UnderLine>
  4679. <StrikeOut>0</StrikeOut>
  4680. <Color>0</Color>
  4681. </LegendFont>
  4682. </Fonts>
  4683. <SharedXAxis>true</SharedXAxis>
  4684. <SharedYAxis>true</SharedYAxis>
  4685. <SharedZAxis>false</SharedZAxis>
  4686. <XAxes>
  4687. <Axis>
  4688. <Minimum>0.0</Minimum>
  4689. <Maximum>1.424742322143329</Maximum>
  4690. <Linear>true</Linear>
  4691. <Scaling>3</Scaling>
  4692. <Label>time</Label>
  4693. </Axis>
  4694. </XAxes>
  4695. <YAxes>
  4696. <Axis>
  4697. <Minimum>-0.1</Minimum>
  4698. <Maximum>0.1</Maximum>
  4699. <Linear>true</Linear>
  4700. <Scaling>1</Scaling>
  4701. <Label>position[1]</Label>
  4702. </Axis>
  4703. <Axis>
  4704. <Minimum>-0.1</Minimum>
  4705. <Maximum>0.1</Maximum>
  4706. <Linear>true</Linear>
  4707. <Scaling>1</Scaling>
  4708. <Label>position[2]</Label>
  4709. </Axis>
  4710. <Axis>
  4711. <Minimum>-0.1</Minimum>
  4712. <Maximum>0.1</Maximum>
  4713. <Linear>true</Linear>
  4714. <Scaling>1</Scaling>
  4715. <Label>position[3]</Label>
  4716. </Axis>
  4717. <Axis>
  4718. <Minimum>-0.1</Minimum>
  4719. <Maximum>0.1</Maximum>
  4720. <Linear>true</Linear>
  4721. <Scaling>1</Scaling>
  4722. <Label>new position[1]</Label>
  4723. </Axis>
  4724. <Axis>
  4725. <Minimum>-0.1</Minimum>
  4726. <Maximum>0.1</Maximum>
  4727. <Linear>true</Linear>
  4728. <Scaling>1</Scaling>
  4729. <Label>new position[2]</Label>
  4730. </Axis>
  4731. <Axis>
  4732. <Minimum>-0.1</Minimum>
  4733. <Maximum>0.1</Maximum>
  4734. <Linear>true</Linear>
  4735. <Scaling>1</Scaling>
  4736. <Label>new position[3]</Label>
  4737. </Axis>
  4738. </YAxes>
  4739. <ZAxes>
  4740. </ZAxes>
  4741. <Curves>
  4742. <Curve>
  4743. <LineColor>3355111</LineColor>
  4744. <LineStyle>1</LineStyle>
  4745. <TickColor>3355111</TickColor>
  4746. <TickStyle>0</TickStyle>
  4747. <CurveVisible>true</CurveVisible>
  4748. <PixelThresshold>1</PixelThresshold>
  4749. <LineThickness>1</LineThickness>
  4750. <LineOrder>1</LineOrder>
  4751. <ShowYValues>true</ShowYValues>
  4752. <XCurveData>
  4753. <ShowUnit>true</ShowUnit>
  4754. <VarName>time</VarName>
  4755. </XCurveData>
  4756. <YCurveData>
  4757. <ShowUnit>true</ShowUnit>
  4758. <VarName>ori_joint1\position[1]</VarName>
  4759. </YCurveData>
  4760. </Curve>
  4761. <Curve>
  4762. <LineColor>6076255</LineColor>
  4763. <LineStyle>1</LineStyle>
  4764. <TickColor>6076255</TickColor>
  4765. <TickStyle>0</TickStyle>
  4766. <CurveVisible>true</CurveVisible>
  4767. <PixelThresshold>1</PixelThresshold>
  4768. <LineThickness>1</LineThickness>
  4769. <LineOrder>1</LineOrder>
  4770. <ShowYValues>true</ShowYValues>
  4771. <XCurveData>
  4772. <ShowUnit>true</ShowUnit>
  4773. <VarName>time</VarName>
  4774. </XCurveData>
  4775. <YCurveData>
  4776. <ShowUnit>true</ShowUnit>
  4777. <VarName>ori_joint1\position[2]</VarName>
  4778. </YCurveData>
  4779. </Curve>
  4780. <Curve>
  4781. <LineColor>12553035</LineColor>
  4782. <LineStyle>1</LineStyle>
  4783. <TickColor>12553035</TickColor>
  4784. <TickStyle>0</TickStyle>
  4785. <CurveVisible>true</CurveVisible>
  4786. <PixelThresshold>1</PixelThresshold>
  4787. <LineThickness>1</LineThickness>
  4788. <LineOrder>1</LineOrder>
  4789. <ShowYValues>true</ShowYValues>
  4790. <XCurveData>
  4791. <ShowUnit>true</ShowUnit>
  4792. <VarName>time</VarName>
  4793. </XCurveData>
  4794. <YCurveData>
  4795. <ShowUnit>true</ShowUnit>
  4796. <VarName>ori_joint1\position[3]</VarName>
  4797. </YCurveData>
  4798. </Curve>
  4799. <Curve>
  4800. <LineColor>15086320</LineColor>
  4801. <LineStyle>1</LineStyle>
  4802. <TickColor>15086320</TickColor>
  4803. <TickStyle>0</TickStyle>
  4804. <CurveVisible>true</CurveVisible>
  4805. <PixelThresshold>1</PixelThresshold>
  4806. <LineThickness>1</LineThickness>
  4807. <LineOrder>1</LineOrder>
  4808. <ShowYValues>true</ShowYValues>
  4809. <XCurveData>
  4810. <ShowUnit>true</ShowUnit>
  4811. <VarName>time</VarName>
  4812. </XCurveData>
  4813. <YCurveData>
  4814. <ShowUnit>true</ShowUnit>
  4815. <VarName>new_joint1\position[1]</VarName>
  4816. </YCurveData>
  4817. </Curve>
  4818. <Curve>
  4819. <LineColor>15790150</LineColor>
  4820. <LineStyle>1</LineStyle>
  4821. <TickColor>15790150</TickColor>
  4822. <TickStyle>0</TickStyle>
  4823. <CurveVisible>true</CurveVisible>
  4824. <PixelThresshold>1</PixelThresshold>
  4825. <LineThickness>1</LineThickness>
  4826. <LineOrder>1</LineOrder>
  4827. <ShowYValues>true</ShowYValues>
  4828. <XCurveData>
  4829. <ShowUnit>true</ShowUnit>
  4830. <VarName>time</VarName>
  4831. </XCurveData>
  4832. <YCurveData>
  4833. <ShowUnit>true</ShowUnit>
  4834. <VarName>new_joint1\position[2]</VarName>
  4835. </YCurveData>
  4836. </Curve>
  4837. <Curve>
  4838. <LineColor>1696255</LineColor>
  4839. <LineStyle>1</LineStyle>
  4840. <TickColor>1696255</TickColor>
  4841. <TickStyle>0</TickStyle>
  4842. <CurveVisible>true</CurveVisible>
  4843. <PixelThresshold>1</PixelThresshold>
  4844. <LineThickness>1</LineThickness>
  4845. <LineOrder>1</LineOrder>
  4846. <ShowYValues>true</ShowYValues>
  4847. <XCurveData>
  4848. <ShowUnit>true</ShowUnit>
  4849. <VarName>time</VarName>
  4850. </XCurveData>
  4851. <YCurveData>
  4852. <ShowUnit>true</ShowUnit>
  4853. <VarName>new_joint1\position[3]</VarName>
  4854. </YCurveData>
  4855. </Curve>
  4856. </Curves>
  4857. <Legenda>
  4858. <ShowLegenda>true</ShowLegenda>
  4859. <BorderPenColor>0</BorderPenColor>
  4860. <BackgroundColor>16777215</BackgroundColor>
  4861. </Legenda>
  4862. </Plot>
  4863. <Plot>
  4864. <PlotType>D3DPlot</PlotType>
  4865. <BasePlot>
  4866. <PlotId>2</PlotId>
  4867. <UseWindowsBGColor>false</UseWindowsBGColor>
  4868. <BGColor>16777215</BGColor>
  4869. <PlotIsVisible>true</PlotIsVisible>
  4870. </BasePlot>
  4871. <PlotTitle>3D Animation</PlotTitle>
  4872. <RenderQuality>137</RenderQuality>
  4873. <ShowGrid>true</ShowGrid>
  4874. <ShowFPS>false</ShowFPS>
  4875. <BackgroundColor>4294967295</BackgroundColor>
  4876. <SceneBackgroundImage>Gradients\BlueWhite.png</SceneBackgroundImage>
  4877. <ApplyTextureBackground>true</ApplyTextureBackground>
  4878. <FrameScale>1.0</FrameScale>
  4879. <FrameThickness>1.0</FrameThickness>
  4880. <MainFrame>
  4881. <Frame>
  4882. <ScaleValue>
  4883. <X>
  4884. <Value>1</Value>
  4885. </X>
  4886. <Y>
  4887. <Value>1</Value>
  4888. </Y>
  4889. <Z>
  4890. <Value>1</Value>
  4891. </Z>
  4892. </ScaleValue>
  4893. <ShowReferenceFrame>true</ShowReferenceFrame>
  4894. <Name>Reference Frame</Name>
  4895. <Position>
  4896. </Position>
  4897. <Orientation>
  4898. <Angles>
  4899. </Angles>
  4900. <OrientationType>Bryant</OrientationType>
  4901. </Orientation>
  4902. <LockX>false</LockX>
  4903. <LockY>false</LockY>
  4904. <LockZ>false</LockZ>
  4905. <LockXPitch>false</LockXPitch>
  4906. <LockYYaw>false</LockYYaw>
  4907. <LockZRoll>false</LockZRoll>
  4908. <Childs>
  4909. <Frame>
  4910. <ScaleValue>
  4911. <X>
  4912. <Value>1</Value>
  4913. </X>
  4914. <Y>
  4915. <Value>1</Value>
  4916. </Y>
  4917. <Z>
  4918. <Value>1</Value>
  4919. </Z>
  4920. </ScaleValue>
  4921. <ShowReferenceFrame>false</ShowReferenceFrame>
  4922. <Name>Default Lights and Cameras</Name>
  4923. <Position>
  4924. </Position>
  4925. <Orientation>
  4926. <Angles>
  4927. </Angles>
  4928. <OrientationType>Bryant</OrientationType>
  4929. </Orientation>
  4930. <LockX>false</LockX>
  4931. <LockY>false</LockY>
  4932. <LockZ>false</LockZ>
  4933. <LockXPitch>false</LockXPitch>
  4934. <LockYYaw>false</LockYYaw>
  4935. <LockZRoll>false</LockZRoll>
  4936. <Childs>
  4937. <Light>
  4938. <ShowReferenceFrame>false</ShowReferenceFrame>
  4939. <Name>Ambient</Name>
  4940. <Position>
  4941. </Position>
  4942. <Orientation>
  4943. <ZAxis>
  4944. <Z>
  4945. <Value>1</Value>
  4946. </Z>
  4947. </ZAxis>
  4948. <YAxis>
  4949. <Y>
  4950. <Value>1</Value>
  4951. </Y>
  4952. </YAxis>
  4953. <OrientationType>Direct3D</OrientationType>
  4954. </Orientation>
  4955. <LockX>false</LockX>
  4956. <LockY>false</LockY>
  4957. <LockZ>false</LockZ>
  4958. <LockXPitch>false</LockXPitch>
  4959. <LockYYaw>false</LockYYaw>
  4960. <LockZRoll>false</LockZRoll>
  4961. <Childs>
  4962. </Childs>
  4963. <LightType>0</LightType>
  4964. <LightColor>
  4965. <Color>
  4966. <X>
  4967. <Value>0.3</Value>
  4968. </X>
  4969. <Y>
  4970. <Value>0.3</Value>
  4971. </Y>
  4972. <Z>
  4973. <Value>0.3</Value>
  4974. </Z>
  4975. </Color>
  4976. <Offset>
  4977. </Offset>
  4978. <Multipliers>
  4979. <X>
  4980. <Value>1</Value>
  4981. </X>
  4982. <Y>
  4983. <Value>1</Value>
  4984. </Y>
  4985. <Z>
  4986. <Value>1</Value>
  4987. </Z>
  4988. </Multipliers>
  4989. <Direct3DColorRange>true</Direct3DColorRange>
  4990. </LightColor>
  4991. <AmbientLight>
  4992. <Color>
  4993. <X>
  4994. <Value>0.3</Value>
  4995. </X>
  4996. <Y>
  4997. <Value>0.3</Value>
  4998. </Y>
  4999. <Z>
  5000. <Value>0.3</Value>
  5001. </Z>
  5002. </Color>
  5003. <Offset>
  5004. </Offset>
  5005. <Multipliers>
  5006. <X>
  5007. <Value>1</Value>
  5008. </X>
  5009. <Y>
  5010. <Value>1</Value>
  5011. </Y>
  5012. <Z>
  5013. <Value>1</Value>
  5014. </Z>
  5015. </Multipliers>
  5016. <Direct3DColorRange>true</Direct3DColorRange>
  5017. </AmbientLight>
  5018. <AmbientOn>true</AmbientOn>
  5019. <DiffuseOn>false</DiffuseOn>
  5020. <SpecularOn>false</SpecularOn>
  5021. </Light>
  5022. <Light>
  5023. <ShowReferenceFrame>false</ShowReferenceFrame>
  5024. <Name>Parallel</Name>
  5025. <Position>
  5026. <X>
  5027. <Value>-3</Value>
  5028. </X>
  5029. <Y>
  5030. <Value>5</Value>
  5031. </Y>
  5032. <Z>
  5033. <Value>3</Value>
  5034. </Z>
  5035. </Position>
  5036. <Orientation>
  5037. <ZAxis>
  5038. <X>
  5039. <Value>0.457495710997814</Value>
  5040. </X>
  5041. <Y>
  5042. <Value>-0.762492851663023</Value>
  5043. </Y>
  5044. <Z>
  5045. <Value>-0.457495710997814</Value>
  5046. </Z>
  5047. </ZAxis>
  5048. <YAxis>
  5049. <X>
  5050. <Value>0.235379601434674</Value>
  5051. </X>
  5052. <Y>
  5053. <Value>-0.392299335724456</Value>
  5054. </Y>
  5055. <Z>
  5056. <Value>0.889211827642101</Value>
  5057. </Z>
  5058. </YAxis>
  5059. <OrientationType>Direct3D</OrientationType>
  5060. </Orientation>
  5061. <LockX>false</LockX>
  5062. <LockY>false</LockY>
  5063. <LockZ>false</LockZ>
  5064. <LockXPitch>false</LockXPitch>
  5065. <LockYYaw>false</LockYYaw>
  5066. <LockZRoll>false</LockZRoll>
  5067. <Childs>
  5068. </Childs>
  5069. <LightType>3</LightType>
  5070. <LightColor>
  5071. <Color>
  5072. <X>
  5073. <Value>0.5</Value>
  5074. </X>
  5075. <Y>
  5076. <Value>0.5</Value>
  5077. </Y>
  5078. <Z>
  5079. <Value>0.5</Value>
  5080. </Z>
  5081. </Color>
  5082. <Offset>
  5083. </Offset>
  5084. <Multipliers>
  5085. <X>
  5086. <Value>1</Value>
  5087. </X>
  5088. <Y>
  5089. <Value>1</Value>
  5090. </Y>
  5091. <Z>
  5092. <Value>1</Value>
  5093. </Z>
  5094. </Multipliers>
  5095. <Direct3DColorRange>true</Direct3DColorRange>
  5096. </LightColor>
  5097. <Attenuation>
  5098. <Constant>
  5099. <Value>1.0</Value>
  5100. </Constant>
  5101. <Linear>
  5102. <Value>0.0</Value>
  5103. </Linear>
  5104. <Quadratic>
  5105. <Value>0.0</Value>
  5106. </Quadratic>
  5107. </Attenuation>
  5108. <DiffuseLight>
  5109. <Color>
  5110. <X>
  5111. <Value>0.5</Value>
  5112. </X>
  5113. <Y>
  5114. <Value>0.5</Value>
  5115. </Y>
  5116. <Z>
  5117. <Value>0.5</Value>
  5118. </Z>
  5119. </Color>
  5120. <Offset>
  5121. </Offset>
  5122. <Multipliers>
  5123. <X>
  5124. <Value>1</Value>
  5125. </X>
  5126. <Y>
  5127. <Value>1</Value>
  5128. </Y>
  5129. <Z>
  5130. <Value>1</Value>
  5131. </Z>
  5132. </Multipliers>
  5133. <Direct3DColorRange>true</Direct3DColorRange>
  5134. </DiffuseLight>
  5135. <SpecularLight>
  5136. <Color>
  5137. <X>
  5138. <Value>0.5</Value>
  5139. </X>
  5140. <Y>
  5141. <Value>0.5</Value>
  5142. </Y>
  5143. <Z>
  5144. <Value>0.5</Value>
  5145. </Z>
  5146. </Color>
  5147. <Offset>
  5148. </Offset>
  5149. <Multipliers>
  5150. <X>
  5151. <Value>1</Value>
  5152. </X>
  5153. <Y>
  5154. <Value>1</Value>
  5155. </Y>
  5156. <Z>
  5157. <Value>1</Value>
  5158. </Z>
  5159. </Multipliers>
  5160. <Direct3DColorRange>true</Direct3DColorRange>
  5161. </SpecularLight>
  5162. <AmbientOn>false</AmbientOn>
  5163. <DiffuseOn>true</DiffuseOn>
  5164. <SpecularOn>true</SpecularOn>
  5165. </Light>
  5166. <Light>
  5167. <ShowReferenceFrame>false</ShowReferenceFrame>
  5168. <Name>Spot Light 1</Name>
  5169. <Position>
  5170. <X>
  5171. <Value>-3</Value>
  5172. </X>
  5173. <Y>
  5174. <Value>-5</Value>
  5175. </Y>
  5176. <Z>
  5177. <Value>1</Value>
  5178. </Z>
  5179. </Position>
  5180. <Orientation>
  5181. <ZAxis>
  5182. <X>
  5183. <Value>0.50709255283711</Value>
  5184. </X>
  5185. <Y>
  5186. <Value>0.845154254728517</Value>
  5187. </Y>
  5188. <Z>
  5189. <Value>-0.169030850945703</Value>
  5190. </Z>
  5191. </ZAxis>
  5192. <YAxis>
  5193. <X>
  5194. <Value>0.0869656553478673</Value>
  5195. </X>
  5196. <Y>
  5197. <Value>0.144942758913112</Value>
  5198. </Y>
  5199. <Z>
  5200. <Value>0.985610760609162</Value>
  5201. </Z>
  5202. </YAxis>
  5203. <OrientationType>Direct3D</OrientationType>
  5204. </Orientation>
  5205. <LockX>false</LockX>
  5206. <LockY>false</LockY>
  5207. <LockZ>false</LockZ>
  5208. <LockXPitch>false</LockXPitch>
  5209. <LockYYaw>false</LockYYaw>
  5210. <LockZRoll>false</LockZRoll>
  5211. <Childs>
  5212. </Childs>
  5213. <LightType>2</LightType>
  5214. <LightColor>
  5215. <Color>
  5216. <X>
  5217. <Value>0.5</Value>
  5218. </X>
  5219. <Y>
  5220. <Value>0.5</Value>
  5221. </Y>
  5222. <Z>
  5223. <Value>0.5</Value>
  5224. </Z>
  5225. </Color>
  5226. <Offset>
  5227. </Offset>
  5228. <Multipliers>
  5229. <X>
  5230. <Value>1</Value>
  5231. </X>
  5232. <Y>
  5233. <Value>1</Value>
  5234. </Y>
  5235. <Z>
  5236. <Value>1</Value>
  5237. </Z>
  5238. </Multipliers>
  5239. <Direct3DColorRange>true</Direct3DColorRange>
  5240. </LightColor>
  5241. <Attenuation>
  5242. <Constant>
  5243. <Value>1.0</Value>
  5244. </Constant>
  5245. <Linear>
  5246. <Value>0.05</Value>
  5247. </Linear>
  5248. <Quadratic>
  5249. <Value>0.05</Value>
  5250. </Quadratic>
  5251. </Attenuation>
  5252. <Umbra>
  5253. <Value>1.0471975511965976</Value>
  5254. </Umbra>
  5255. <Penumbra>
  5256. <Value>1.0471975511965976</Value>
  5257. </Penumbra>
  5258. <SpotExponent>0.0</SpotExponent>
  5259. <DiffuseLight>
  5260. <Color>
  5261. <X>
  5262. <Value>0.5</Value>
  5263. </X>
  5264. <Y>
  5265. <Value>0.5</Value>
  5266. </Y>
  5267. <Z>
  5268. <Value>0.5</Value>
  5269. </Z>
  5270. </Color>
  5271. <Offset>
  5272. </Offset>
  5273. <Multipliers>
  5274. <X>
  5275. <Value>1</Value>
  5276. </X>
  5277. <Y>
  5278. <Value>1</Value>
  5279. </Y>
  5280. <Z>
  5281. <Value>1</Value>
  5282. </Z>
  5283. </Multipliers>
  5284. <Direct3DColorRange>true</Direct3DColorRange>
  5285. </DiffuseLight>
  5286. <SpecularLight>
  5287. <Color>
  5288. <X>
  5289. <Value>0.5</Value>
  5290. </X>
  5291. <Y>
  5292. <Value>0.5</Value>
  5293. </Y>
  5294. <Z>
  5295. <Value>0.5</Value>
  5296. </Z>
  5297. </Color>
  5298. <Offset>
  5299. </Offset>
  5300. <Multipliers>
  5301. <X>
  5302. <Value>1</Value>
  5303. </X>
  5304. <Y>
  5305. <Value>1</Value>
  5306. </Y>
  5307. <Z>
  5308. <Value>1</Value>
  5309. </Z>
  5310. </Multipliers>
  5311. <Direct3DColorRange>true</Direct3DColorRange>
  5312. </SpecularLight>
  5313. <AmbientOn>false</AmbientOn>
  5314. <DiffuseOn>true</DiffuseOn>
  5315. <SpecularOn>true</SpecularOn>
  5316. </Light>
  5317. <Light>
  5318. <ShowReferenceFrame>false</ShowReferenceFrame>
  5319. <Name>Spot Light 2</Name>
  5320. <Position>
  5321. <X>
  5322. <Value>2</Value>
  5323. </X>
  5324. <Y>
  5325. <Value>-3</Value>
  5326. </Y>
  5327. <Z>
  5328. <Value>-1</Value>
  5329. </Z>
  5330. </Position>
  5331. <Orientation>
  5332. <ZAxis>
  5333. <X>
  5334. <Value>-0.534522483824849</Value>
  5335. </X>
  5336. <Y>
  5337. <Value>0.801783725737273</Value>
  5338. </Y>
  5339. <Z>
  5340. <Value>0.267261241912424</Value>
  5341. </Z>
  5342. </ZAxis>
  5343. <YAxis>
  5344. <X>
  5345. <Value>0.14824986333222</Value>
  5346. </X>
  5347. <Y>
  5348. <Value>-0.22237479499833</Value>
  5349. </Y>
  5350. <Z>
  5351. <Value>0.963624111659432</Value>
  5352. </Z>
  5353. </YAxis>
  5354. <OrientationType>Direct3D</OrientationType>
  5355. </Orientation>
  5356. <LockX>false</LockX>
  5357. <LockY>false</LockY>
  5358. <LockZ>false</LockZ>
  5359. <LockXPitch>false</LockXPitch>
  5360. <LockYYaw>false</LockYYaw>
  5361. <LockZRoll>false</LockZRoll>
  5362. <Childs>
  5363. </Childs>
  5364. <LightType>2</LightType>
  5365. <LightColor>
  5366. <Color>
  5367. <X>
  5368. <Value>1</Value>
  5369. </X>
  5370. <Y>
  5371. <Value>1</Value>
  5372. </Y>
  5373. <Z>
  5374. <Value>1</Value>
  5375. </Z>
  5376. </Color>
  5377. <Offset>
  5378. </Offset>
  5379. <Multipliers>
  5380. <X>
  5381. <Value>1</Value>
  5382. </X>
  5383. <Y>
  5384. <Value>1</Value>
  5385. </Y>
  5386. <Z>
  5387. <Value>1</Value>
  5388. </Z>
  5389. </Multipliers>
  5390. <Direct3DColorRange>true</Direct3DColorRange>
  5391. </LightColor>
  5392. <Attenuation>
  5393. <Constant>
  5394. <Value>1.0</Value>
  5395. </Constant>
  5396. <Linear>
  5397. <Value>0.05</Value>
  5398. </Linear>
  5399. <Quadratic>
  5400. <Value>0.05</Value>
  5401. </Quadratic>
  5402. </Attenuation>
  5403. <Umbra>
  5404. <Value>1.5707963267948966</Value>
  5405. </Umbra>
  5406. <Penumbra>
  5407. <Value>1.5707963267948966</Value>
  5408. </Penumbra>
  5409. <SpotExponent>0.0</SpotExponent>
  5410. <DiffuseLight>
  5411. <Color>
  5412. <X>
  5413. <Value>1</Value>
  5414. </X>
  5415. <Y>
  5416. <Value>1</Value>
  5417. </Y>
  5418. <Z>
  5419. <Value>1</Value>
  5420. </Z>
  5421. </Color>
  5422. <Offset>
  5423. </Offset>
  5424. <Multipliers>
  5425. <X>
  5426. <Value>1</Value>
  5427. </X>
  5428. <Y>
  5429. <Value>1</Value>
  5430. </Y>
  5431. <Z>
  5432. <Value>1</Value>
  5433. </Z>
  5434. </Multipliers>
  5435. <Direct3DColorRange>true</Direct3DColorRange>
  5436. </DiffuseLight>
  5437. <SpecularLight>
  5438. <Color>
  5439. <X>
  5440. <Value>0.5</Value>
  5441. </X>
  5442. <Y>
  5443. <Value>0.5</Value>
  5444. </Y>
  5445. <Z>
  5446. <Value>0.5</Value>
  5447. </Z>
  5448. </Color>
  5449. <Offset>
  5450. </Offset>
  5451. <Multipliers>
  5452. <X>
  5453. <Value>1</Value>
  5454. </X>
  5455. <Y>
  5456. <Value>1</Value>
  5457. </Y>
  5458. <Z>
  5459. <Value>1</Value>
  5460. </Z>
  5461. </Multipliers>
  5462. <Direct3DColorRange>true</Direct3DColorRange>
  5463. </SpecularLight>
  5464. <AmbientOn>false</AmbientOn>
  5465. <DiffuseOn>true</DiffuseOn>
  5466. <SpecularOn>true</SpecularOn>
  5467. </Light>
  5468. <Camera>
  5469. <ShowReferenceFrame>false</ShowReferenceFrame>
  5470. <Name>Camera Looking at Origin</Name>
  5471. <Position>
  5472. <X>
  5473. <Value>5.66443922345846</Value>
  5474. </X>
  5475. <Y>
  5476. <Value>-1.87918322175823</Value>
  5477. </Y>
  5478. <Z>
  5479. <Value>8.35361970698833</Value>
  5480. </Z>
  5481. </Position>
  5482. <Orientation>
  5483. <ZAxis>
  5484. <X>
  5485. <Value>-0.551742297648959</Value>
  5486. </X>
  5487. <Y>
  5488. <Value>0.183041043883461</Value>
  5489. </Y>
  5490. <Z>
  5491. <Value>-0.813680780920319</Value>
  5492. </Z>
  5493. </ZAxis>
  5494. <YAxis>
  5495. <X>
  5496. <Value>-0.77229119625168</Value>
  5497. </X>
  5498. <Y>
  5499. <Value>0.256208355506313</Value>
  5500. </Y>
  5501. <Z>
  5502. <Value>0.581311953051802</Value>
  5503. </Z>
  5504. </YAxis>
  5505. <OrientationType>Direct3D</OrientationType>
  5506. </Orientation>
  5507. <LockX>false</LockX>
  5508. <LockY>false</LockY>
  5509. <LockZ>false</LockZ>
  5510. <LockXPitch>false</LockXPitch>
  5511. <LockYYaw>false</LockYYaw>
  5512. <LockZRoll>false</LockZRoll>
  5513. <Childs>
  5514. </Childs>
  5515. <FrontPlane>0.01</FrontPlane>
  5516. <BackPlane>100.0</BackPlane>
  5517. <AutoFrontBack>true</AutoFrontBack>
  5518. <Field>0.003926990816987242</Field>
  5519. <Fieldy>45.0</Fieldy>
  5520. <PlaneLeft>-10.0</PlaneLeft>
  5521. <PlaneRight>10.0</PlaneRight>
  5522. <PlaneTop>10.0</PlaneTop>
  5523. <PlaneBottom>-10.0</PlaneBottom>
  5524. <UseLookatPosition>true</UseLookatPosition>
  5525. <LookatPosition>
  5526. </LookatPosition>
  5527. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5528. <LookUpVector>
  5529. <Z>
  5530. <Value>1</Value>
  5531. </Z>
  5532. </LookUpVector>
  5533. <RightHand>true</RightHand>
  5534. <Perspective>true</Perspective>
  5535. <IsSelectedCamera>true</IsSelectedCamera>
  5536. </Camera>
  5537. <Camera>
  5538. <ShowReferenceFrame>false</ShowReferenceFrame>
  5539. <Name>Front(XY)-Camera</Name>
  5540. <Position>
  5541. <Z>
  5542. <Value>10</Value>
  5543. </Z>
  5544. </Position>
  5545. <Orientation>
  5546. <ZAxis>
  5547. <Z>
  5548. <Value>-1</Value>
  5549. </Z>
  5550. </ZAxis>
  5551. <YAxis>
  5552. <Y>
  5553. <Value>1</Value>
  5554. </Y>
  5555. </YAxis>
  5556. <OrientationType>Direct3D</OrientationType>
  5557. </Orientation>
  5558. <LockX>false</LockX>
  5559. <LockY>false</LockY>
  5560. <LockZ>false</LockZ>
  5561. <LockXPitch>false</LockXPitch>
  5562. <LockYYaw>false</LockYYaw>
  5563. <LockZRoll>false</LockZRoll>
  5564. <Childs>
  5565. </Childs>
  5566. <FrontPlane>0.01</FrontPlane>
  5567. <BackPlane>100.0</BackPlane>
  5568. <AutoFrontBack>true</AutoFrontBack>
  5569. <Field>9.999999999999998</Field>
  5570. <Fieldy>45.0</Fieldy>
  5571. <PlaneLeft>-9.999999999999998</PlaneLeft>
  5572. <PlaneRight>9.999999999999998</PlaneRight>
  5573. <PlaneTop>9.999999999999998</PlaneTop>
  5574. <PlaneBottom>-9.999999999999998</PlaneBottom>
  5575. <UseLookatPosition>true</UseLookatPosition>
  5576. <LookatPosition>
  5577. </LookatPosition>
  5578. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5579. <LookUpVector>
  5580. <Y>
  5581. <Value>1</Value>
  5582. </Y>
  5583. </LookUpVector>
  5584. <RightHand>true</RightHand>
  5585. <Perspective>false</Perspective>
  5586. <IsSelectedCamera>false</IsSelectedCamera>
  5587. </Camera>
  5588. <Camera>
  5589. <ShowReferenceFrame>false</ShowReferenceFrame>
  5590. <Name>Side(YZ)-Camera</Name>
  5591. <Position>
  5592. <X>
  5593. <Value>10</Value>
  5594. </X>
  5595. </Position>
  5596. <Orientation>
  5597. <ZAxis>
  5598. <X>
  5599. <Value>-1</Value>
  5600. </X>
  5601. </ZAxis>
  5602. <YAxis>
  5603. <Z>
  5604. <Value>1</Value>
  5605. </Z>
  5606. </YAxis>
  5607. <OrientationType>Direct3D</OrientationType>
  5608. </Orientation>
  5609. <LockX>false</LockX>
  5610. <LockY>false</LockY>
  5611. <LockZ>false</LockZ>
  5612. <LockXPitch>false</LockXPitch>
  5613. <LockYYaw>false</LockYYaw>
  5614. <LockZRoll>false</LockZRoll>
  5615. <Childs>
  5616. </Childs>
  5617. <FrontPlane>0.01</FrontPlane>
  5618. <BackPlane>100.0</BackPlane>
  5619. <AutoFrontBack>true</AutoFrontBack>
  5620. <Field>9.999999999999998</Field>
  5621. <Fieldy>45.0</Fieldy>
  5622. <PlaneLeft>-9.999999999999998</PlaneLeft>
  5623. <PlaneRight>9.999999999999998</PlaneRight>
  5624. <PlaneTop>9.999999999999998</PlaneTop>
  5625. <PlaneBottom>-9.999999999999998</PlaneBottom>
  5626. <UseLookatPosition>true</UseLookatPosition>
  5627. <LookatPosition>
  5628. </LookatPosition>
  5629. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5630. <LookUpVector>
  5631. <Z>
  5632. <Value>1</Value>
  5633. </Z>
  5634. </LookUpVector>
  5635. <RightHand>true</RightHand>
  5636. <Perspective>false</Perspective>
  5637. <IsSelectedCamera>false</IsSelectedCamera>
  5638. </Camera>
  5639. <Camera>
  5640. <ShowReferenceFrame>false</ShowReferenceFrame>
  5641. <Name>Top(XZ)-Camera</Name>
  5642. <Position>
  5643. <Y>
  5644. <Value>10</Value>
  5645. </Y>
  5646. </Position>
  5647. <Orientation>
  5648. <ZAxis>
  5649. <Y>
  5650. <Value>-1</Value>
  5651. </Y>
  5652. </ZAxis>
  5653. <YAxis>
  5654. <X>
  5655. <Value>1</Value>
  5656. </X>
  5657. </YAxis>
  5658. <OrientationType>Direct3D</OrientationType>
  5659. </Orientation>
  5660. <LockX>false</LockX>
  5661. <LockY>false</LockY>
  5662. <LockZ>false</LockZ>
  5663. <LockXPitch>false</LockXPitch>
  5664. <LockYYaw>false</LockYYaw>
  5665. <LockZRoll>false</LockZRoll>
  5666. <Childs>
  5667. </Childs>
  5668. <FrontPlane>0.01</FrontPlane>
  5669. <BackPlane>100.0</BackPlane>
  5670. <AutoFrontBack>true</AutoFrontBack>
  5671. <Field>9.999999999999998</Field>
  5672. <Fieldy>45.0</Fieldy>
  5673. <PlaneLeft>-9.999999999999998</PlaneLeft>
  5674. <PlaneRight>9.999999999999998</PlaneRight>
  5675. <PlaneTop>9.999999999999998</PlaneTop>
  5676. <PlaneBottom>-9.999999999999998</PlaneBottom>
  5677. <UseLookatPosition>true</UseLookatPosition>
  5678. <LookatPosition>
  5679. </LookatPosition>
  5680. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5681. <LookUpVector>
  5682. <X>
  5683. <Value>1</Value>
  5684. </X>
  5685. </LookUpVector>
  5686. <RightHand>true</RightHand>
  5687. <Perspective>false</Perspective>
  5688. <IsSelectedCamera>false</IsSelectedCamera>
  5689. </Camera>
  5690. </Childs>
  5691. </Frame>
  5692. <Frame>
  5693. <ScaleValue>
  5694. <X>
  5695. <Value>10</Value>
  5696. </X>
  5697. <Y>
  5698. <Value>10</Value>
  5699. </Y>
  5700. <Z>
  5701. <Value>10</Value>
  5702. </Z>
  5703. </ScaleValue>
  5704. <ShowReferenceFrame>false</ShowReferenceFrame>
  5705. <Name>Scenery</Name>
  5706. <Position>
  5707. </Position>
  5708. <Orientation>
  5709. <Angles>
  5710. </Angles>
  5711. <OrientationType>Bryant</OrientationType>
  5712. </Orientation>
  5713. <LockX>false</LockX>
  5714. <LockY>false</LockY>
  5715. <LockZ>false</LockZ>
  5716. <LockXPitch>false</LockXPitch>
  5717. <LockYYaw>false</LockYYaw>
  5718. <LockZRoll>false</LockZRoll>
  5719. <Childs>
  5720. <Frame>
  5721. <ScaleValue>
  5722. <X>
  5723. <Value>1</Value>
  5724. </X>
  5725. <Y>
  5726. <Value>1</Value>
  5727. </Y>
  5728. <Z>
  5729. <Value>1</Value>
  5730. </Z>
  5731. </ScaleValue>
  5732. <ShowReferenceFrame>false</ShowReferenceFrame>
  5733. <Name>Reference Frame</Name>
  5734. <Position>
  5735. </Position>
  5736. <Orientation>
  5737. <Angles>
  5738. </Angles>
  5739. <OrientationType>Bryant</OrientationType>
  5740. </Orientation>
  5741. <LockX>false</LockX>
  5742. <LockY>false</LockY>
  5743. <LockZ>false</LockZ>
  5744. <LockXPitch>false</LockXPitch>
  5745. <LockYYaw>false</LockYYaw>
  5746. <LockZRoll>false</LockZRoll>
  5747. <Childs>
  5748. <Line>
  5749. <Thickness>5.0</Thickness>
  5750. <EndPosition>
  5751. <X>
  5752. <VariableName>ori_joint1\position[1]</VariableName>
  5753. <Value>-0.05242625720312162</Value>
  5754. </X>
  5755. <Y>
  5756. <VariableName>ori_joint1\position[2]</VariableName>
  5757. <Value>0.03842509018430717</Value>
  5758. </Y>
  5759. <Z>
  5760. <VariableName>ori_joint1\position[3]</VariableName>
  5761. <Value>0.0</Value>
  5762. </Z>
  5763. </EndPosition>
  5764. <CircleElements>15</CircleElements>
  5765. <Closed>true</Closed>
  5766. <UseCylinder>true</UseCylinder>
  5767. <CylinderThickness>0.1</CylinderThickness>
  5768. <CylinderAccuracy>15</CylinderAccuracy>
  5769. <Closed>true</Closed>
  5770. <ScaleValue>
  5771. <X>
  5772. <Value>0.1</Value>
  5773. </X>
  5774. <Y>
  5775. <Value>0.1</Value>
  5776. </Y>
  5777. <Z>
  5778. <Value>0.0649999976158142</Value>
  5779. </Z>
  5780. </ScaleValue>
  5781. <OverrideColor>true</OverrideColor>
  5782. <MeshColor>
  5783. <X>
  5784. <Value>1</Value>
  5785. </X>
  5786. <Y>
  5787. <Value>1</Value>
  5788. </Y>
  5789. <Z>
  5790. <Value>1</Value>
  5791. </Z>
  5792. </MeshColor>
  5793. <Alpha>1.0</Alpha>
  5794. <MeshColorMultipliers>
  5795. <X>
  5796. <Value>1</Value>
  5797. </X>
  5798. <Y>
  5799. <Value>1</Value>
  5800. </Y>
  5801. <Z>
  5802. <Value>1</Value>
  5803. </Z>
  5804. </MeshColorMultipliers>
  5805. <MeshColorOffsets>
  5806. </MeshColorOffsets>
  5807. <Direct3DColorRange>true</Direct3DColorRange>
  5808. <SpecularColor>
  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. </SpecularColor>
  5819. <EmissiveColor>
  5820. </EmissiveColor>
  5821. <ShininessPower>
  5822. <Value>15</Value>
  5823. </ShininessPower>
  5824. <OverrideQuality>false</OverrideQuality>
  5825. <ShowReferenceFrame>false</ShowReferenceFrame>
  5826. <Name>Line</Name>
  5827. <Position>
  5828. </Position>
  5829. <Orientation>
  5830. <ZAxis>
  5831. <X>
  5832. <Value>-0.806557803124948</Value>
  5833. </X>
  5834. <Y>
  5835. <Value>0.591155233604726</Value>
  5836. </Y>
  5837. </ZAxis>
  5838. <YAxis>
  5839. <Z>
  5840. <Value>1</Value>
  5841. </Z>
  5842. </YAxis>
  5843. <OrientationType>Direct3D</OrientationType>
  5844. </Orientation>
  5845. <LockX>false</LockX>
  5846. <LockY>false</LockY>
  5847. <LockZ>false</LockZ>
  5848. <LockXPitch>false</LockXPitch>
  5849. <LockYYaw>false</LockYYaw>
  5850. <LockZRoll>false</LockZRoll>
  5851. <Childs>
  5852. </Childs>
  5853. </Line>
  5854. <Line>
  5855. <Thickness>1.0</Thickness>
  5856. <EndPosition>
  5857. <X>
  5858. <VariableName>ori_joint2\position[1]</VariableName>
  5859. <Value>-0.10031667574147025</Value>
  5860. </X>
  5861. <Y>
  5862. <VariableName>ori_joint2\position[2]</VariableName>
  5863. <Value>0.024054710501717216</Value>
  5864. </Y>
  5865. <Z>
  5866. <VariableName>ori_joint2\position[3]</VariableName>
  5867. <Value>0.0</Value>
  5868. </Z>
  5869. </EndPosition>
  5870. <CircleElements>15</CircleElements>
  5871. <Closed>true</Closed>
  5872. <UseCylinder>true</UseCylinder>
  5873. <CylinderThickness>0.1</CylinderThickness>
  5874. <CylinderAccuracy>15</CylinderAccuracy>
  5875. <Closed>true</Closed>
  5876. <ScaleValue>
  5877. <X>
  5878. <Value>0.1</Value>
  5879. </X>
  5880. <Y>
  5881. <Value>0.1</Value>
  5882. </Y>
  5883. <Z>
  5884. <Value>0.0500000007450581</Value>
  5885. </Z>
  5886. </ScaleValue>
  5887. <OverrideColor>true</OverrideColor>
  5888. <MeshColor>
  5889. <X>
  5890. <Value>1</Value>
  5891. </X>
  5892. <Y>
  5893. <Value>1</Value>
  5894. </Y>
  5895. <Z>
  5896. <Value>1</Value>
  5897. </Z>
  5898. </MeshColor>
  5899. <Alpha>1.0</Alpha>
  5900. <MeshColorMultipliers>
  5901. <X>
  5902. <Value>1</Value>
  5903. </X>
  5904. <Y>
  5905. <Value>1</Value>
  5906. </Y>
  5907. <Z>
  5908. <Value>1</Value>
  5909. </Z>
  5910. </MeshColorMultipliers>
  5911. <MeshColorOffsets>
  5912. </MeshColorOffsets>
  5913. <Direct3DColorRange>true</Direct3DColorRange>
  5914. <SpecularColor>
  5915. <X>
  5916. <Value>0.5</Value>
  5917. </X>
  5918. <Y>
  5919. <Value>0.5</Value>
  5920. </Y>
  5921. <Z>
  5922. <Value>0.5</Value>
  5923. </Z>
  5924. </SpecularColor>
  5925. <EmissiveColor>
  5926. </EmissiveColor>
  5927. <ShininessPower>
  5928. <Value>15</Value>
  5929. </ShininessPower>
  5930. <OverrideQuality>false</OverrideQuality>
  5931. <ShowReferenceFrame>false</ShowReferenceFrame>
  5932. <Name>Line</Name>
  5933. <Position>
  5934. <X>
  5935. <VariableName>ori_joint1\position[1]</VariableName>
  5936. <Value>-0.05242625720312162</Value>
  5937. </X>
  5938. <Y>
  5939. <VariableName>ori_joint1\position[2]</VariableName>
  5940. <Value>0.03842509018430717</Value>
  5941. </Y>
  5942. <Z>
  5943. <VariableName>ori_joint1\position[3]</VariableName>
  5944. <Value>0.0</Value>
  5945. </Z>
  5946. </Position>
  5947. <Orientation>
  5948. <ZAxis>
  5949. <X>
  5950. <Value>-0.957808370766973</Value>
  5951. </X>
  5952. <Y>
  5953. <Value>-0.287407593651799</Value>
  5954. </Y>
  5955. </ZAxis>
  5956. <YAxis>
  5957. <Z>
  5958. <Value>1</Value>
  5959. </Z>
  5960. </YAxis>
  5961. <OrientationType>Direct3D</OrientationType>
  5962. </Orientation>
  5963. <LockX>false</LockX>
  5964. <LockY>false</LockY>
  5965. <LockZ>false</LockZ>
  5966. <LockXPitch>false</LockXPitch>
  5967. <LockYYaw>false</LockYYaw>
  5968. <LockZRoll>false</LockZRoll>
  5969. <Childs>
  5970. </Childs>
  5971. </Line>
  5972. <Frame>
  5973. <ScaleValue>
  5974. <X>
  5975. <Value>1</Value>
  5976. </X>
  5977. <Y>
  5978. <Value>1</Value>
  5979. </Y>
  5980. <Z>
  5981. <Value>1</Value>
  5982. </Z>
  5983. </ScaleValue>
  5984. <ShowReferenceFrame>false</ShowReferenceFrame>
  5985. <Name>Reference Frame</Name>
  5986. <Position>
  5987. <X>
  5988. <VariableName>ori_joint1\position[1]</VariableName>
  5989. <Value>-0.05242625720312162</Value>
  5990. </X>
  5991. <Y>
  5992. <VariableName>ori_joint1\position[2]</VariableName>
  5993. <Value>0.03842509018430717</Value>
  5994. </Y>
  5995. <Z>
  5996. <VariableName>ori_joint1\position[3]</VariableName>
  5997. <Value>0.0</Value>
  5998. </Z>
  5999. </Position>
  6000. <Orientation>
  6001. <ZAxis>
  6002. <X>
  6003. <VariableName>ori_joint1\R[1,3]</VariableName>
  6004. <Value>0.0</Value>
  6005. </X>
  6006. <Y>
  6007. <VariableName>ori_joint1\R[2,3]</VariableName>
  6008. <Value>0.0</Value>
  6009. </Y>
  6010. <Z>
  6011. <VariableName>ori_joint1\R[3,3]</VariableName>
  6012. <Value>1.0</Value>
  6013. </Z>
  6014. </ZAxis>
  6015. <YAxis>
  6016. <X>
  6017. <VariableName>ori_joint1\R[1,2]</VariableName>
  6018. <Value>-0.806557803124948</Value>
  6019. </X>
  6020. <Y>
  6021. <VariableName>ori_joint1\R[2,2]</VariableName>
  6022. <Value>0.5911552336047257</Value>
  6023. </Y>
  6024. <Z>
  6025. <VariableName>ori_joint1\R[3,2]</VariableName>
  6026. <Value>0.0</Value>
  6027. </Z>
  6028. </YAxis>
  6029. <OrientationType>Matrix</OrientationType>
  6030. </Orientation>
  6031. <LockX>false</LockX>
  6032. <LockY>false</LockY>
  6033. <LockZ>false</LockZ>
  6034. <LockXPitch>false</LockXPitch>
  6035. <LockYYaw>false</LockYYaw>
  6036. <LockZRoll>false</LockZRoll>
  6037. <Childs>
  6038. </Childs>
  6039. </Frame>
  6040. <Frame>
  6041. <ScaleValue>
  6042. <X>
  6043. <Value>1</Value>
  6044. </X>
  6045. <Y>
  6046. <Value>1</Value>
  6047. </Y>
  6048. <Z>
  6049. <Value>1</Value>
  6050. </Z>
  6051. </ScaleValue>
  6052. <ShowReferenceFrame>false</ShowReferenceFrame>
  6053. <Name>Reference Frame</Name>
  6054. <Position>
  6055. <X>
  6056. <VariableName>ori_joint2\position[1]</VariableName>
  6057. <Value>-0.10031667574147025</Value>
  6058. </X>
  6059. <Y>
  6060. <VariableName>ori_joint2\position[2]</VariableName>
  6061. <Value>0.024054710501717216</Value>
  6062. </Y>
  6063. <Z>
  6064. <VariableName>ori_joint2\position[3]</VariableName>
  6065. <Value>0.0</Value>
  6066. </Z>
  6067. </Position>
  6068. <Orientation>
  6069. <ZAxis>
  6070. <X>
  6071. <VariableName>ori_joint2\R[1,3]</VariableName>
  6072. <Value>0.0</Value>
  6073. </X>
  6074. <Y>
  6075. <VariableName>ori_joint2\R[2,3]</VariableName>
  6076. <Value>0.0</Value>
  6077. </Y>
  6078. <Z>
  6079. <VariableName>ori_joint2\R[3,3]</VariableName>
  6080. <Value>1.0</Value>
  6081. </Z>
  6082. </ZAxis>
  6083. <YAxis>
  6084. <X>
  6085. <VariableName>ori_joint2\R[1,2]</VariableName>
  6086. <Value>-0.9578083707669727</Value>
  6087. </X>
  6088. <Y>
  6089. <VariableName>ori_joint2\R[2,2]</VariableName>
  6090. <Value>-0.2874075936517991</Value>
  6091. </Y>
  6092. <Z>
  6093. <VariableName>ori_joint2\R[3,2]</VariableName>
  6094. <Value>0.0</Value>
  6095. </Z>
  6096. </YAxis>
  6097. <OrientationType>Matrix</OrientationType>
  6098. </Orientation>
  6099. <LockX>false</LockX>
  6100. <LockY>false</LockY>
  6101. <LockZ>false</LockZ>
  6102. <LockXPitch>false</LockXPitch>
  6103. <LockYYaw>false</LockYYaw>
  6104. <LockZRoll>false</LockZRoll>
  6105. <Childs>
  6106. </Childs>
  6107. </Frame>
  6108. </Childs>
  6109. </Frame>
  6110. </Childs>
  6111. </Frame>
  6112. </Childs>
  6113. </Frame>
  6114. </MainFrame>
  6115. </Plot>
  6116. <Plot>
  6117. <PlotType>GraphPlot</PlotType>
  6118. <BasePlot>
  6119. <PlotId>3</PlotId>
  6120. <UseWindowsBGColor>false</UseWindowsBGColor>
  6121. <BGColor>16777215</BGColor>
  6122. <PlotIsVisible>true</PlotIsVisible>
  6123. </BasePlot>
  6124. <Grid>
  6125. <DrawGrid>true</DrawGrid>
  6126. <GridColor>15780518</GridColor>
  6127. <GridBorderLineColor>12624260</GridBorderLineColor>
  6128. <GridZeroLineColor>0</GridZeroLineColor>
  6129. <XTicks>10</XTicks>
  6130. <YTicks>10</YTicks>
  6131. <ZTicks>10</ZTicks>
  6132. <Use3DLook>false</Use3DLook>
  6133. </Grid>
  6134. <PlotBGColor>16777215</PlotBGColor>
  6135. <ShowPlotTitle>true</ShowPlotTitle>
  6136. <TitlePosition>1</TitlePosition>
  6137. <PlotTitle>model(1)</PlotTitle>
  6138. <ShowXValues>true</ShowXValues>
  6139. <Fonts>
  6140. <TitleFont>
  6141. <Name>Arial</Name>
  6142. <Height>12</Height>
  6143. <PitchFamily>34</PitchFamily>
  6144. <Weight>400</Weight>
  6145. <Italic>0</Italic>
  6146. <UnderLine>0</UnderLine>
  6147. <StrikeOut>0</StrikeOut>
  6148. <Color>0</Color>
  6149. </TitleFont>
  6150. <LabelFont>
  6151. <Name>Arial</Name>
  6152. <Height>12</Height>
  6153. <PitchFamily>34</PitchFamily>
  6154. <Weight>400</Weight>
  6155. <Italic>0</Italic>
  6156. <UnderLine>0</UnderLine>
  6157. <StrikeOut>0</StrikeOut>
  6158. <Color>0</Color>
  6159. </LabelFont>
  6160. <ValuesFont>
  6161. <Name>Arial</Name>
  6162. <Height>10</Height>
  6163. <PitchFamily>34</PitchFamily>
  6164. <Weight>400</Weight>
  6165. <Italic>0</Italic>
  6166. <UnderLine>0</UnderLine>
  6167. <StrikeOut>0</StrikeOut>
  6168. <Color>0</Color>
  6169. </ValuesFont>
  6170. <LegendFont>
  6171. <Name>Arial</Name>
  6172. <Height>12</Height>
  6173. <PitchFamily>34</PitchFamily>
  6174. <Weight>400</Weight>
  6175. <Italic>0</Italic>
  6176. <UnderLine>0</UnderLine>
  6177. <StrikeOut>0</StrikeOut>
  6178. <Color>0</Color>
  6179. </LegendFont>
  6180. </Fonts>
  6181. <SharedXAxis>true</SharedXAxis>
  6182. <SharedYAxis>true</SharedYAxis>
  6183. <SharedZAxis>false</SharedZAxis>
  6184. <XAxes>
  6185. <Axis>
  6186. <Minimum>0.0</Minimum>
  6187. <Maximum>1.424742322143329</Maximum>
  6188. <Linear>true</Linear>
  6189. <Scaling>3</Scaling>
  6190. <Label>time</Label>
  6191. </Axis>
  6192. </XAxes>
  6193. <YAxes>
  6194. <Axis>
  6195. <Minimum>-0.25</Minimum>
  6196. <Maximum>0.25</Maximum>
  6197. <Linear>true</Linear>
  6198. <Scaling>2</Scaling>
  6199. <Label>position[1]</Label>
  6200. </Axis>
  6201. <Axis>
  6202. <Minimum>-0.25</Minimum>
  6203. <Maximum>0.25</Maximum>
  6204. <Linear>true</Linear>
  6205. <Scaling>2</Scaling>
  6206. <Label>position[2]</Label>
  6207. </Axis>
  6208. <Axis>
  6209. <Minimum>-0.25</Minimum>
  6210. <Maximum>0.25</Maximum>
  6211. <Linear>true</Linear>
  6212. <Scaling>2</Scaling>
  6213. <Label>position[3]</Label>
  6214. </Axis>
  6215. <Axis>
  6216. <Minimum>-0.25</Minimum>
  6217. <Maximum>0.25</Maximum>
  6218. <Linear>true</Linear>
  6219. <Scaling>2</Scaling>
  6220. <Label>new position[1]</Label>
  6221. </Axis>
  6222. <Axis>
  6223. <Minimum>-0.25</Minimum>
  6224. <Maximum>0.25</Maximum>
  6225. <Linear>true</Linear>
  6226. <Scaling>2</Scaling>
  6227. <Label>new position[2]</Label>
  6228. </Axis>
  6229. <Axis>
  6230. <Minimum>-0.25</Minimum>
  6231. <Maximum>0.25</Maximum>
  6232. <Linear>true</Linear>
  6233. <Scaling>2</Scaling>
  6234. <Label>new position[3]</Label>
  6235. </Axis>
  6236. </YAxes>
  6237. <ZAxes>
  6238. </ZAxes>
  6239. <Curves>
  6240. <Curve>
  6241. <LineColor>3355111</LineColor>
  6242. <LineStyle>1</LineStyle>
  6243. <TickColor>3355111</TickColor>
  6244. <TickStyle>0</TickStyle>
  6245. <CurveVisible>true</CurveVisible>
  6246. <PixelThresshold>1</PixelThresshold>
  6247. <LineThickness>1</LineThickness>
  6248. <LineOrder>1</LineOrder>
  6249. <ShowYValues>true</ShowYValues>
  6250. <XCurveData>
  6251. <ShowUnit>true</ShowUnit>
  6252. <VarName>time</VarName>
  6253. </XCurveData>
  6254. <YCurveData>
  6255. <ShowUnit>true</ShowUnit>
  6256. <VarName>ori_joint2\position[1]</VarName>
  6257. </YCurveData>
  6258. </Curve>
  6259. <Curve>
  6260. <LineColor>6076255</LineColor>
  6261. <LineStyle>1</LineStyle>
  6262. <TickColor>6076255</TickColor>
  6263. <TickStyle>0</TickStyle>
  6264. <CurveVisible>true</CurveVisible>
  6265. <PixelThresshold>1</PixelThresshold>
  6266. <LineThickness>1</LineThickness>
  6267. <LineOrder>1</LineOrder>
  6268. <ShowYValues>true</ShowYValues>
  6269. <XCurveData>
  6270. <ShowUnit>true</ShowUnit>
  6271. <VarName>time</VarName>
  6272. </XCurveData>
  6273. <YCurveData>
  6274. <ShowUnit>true</ShowUnit>
  6275. <VarName>ori_joint2\position[2]</VarName>
  6276. </YCurveData>
  6277. </Curve>
  6278. <Curve>
  6279. <LineColor>12553035</LineColor>
  6280. <LineStyle>1</LineStyle>
  6281. <TickColor>12553035</TickColor>
  6282. <TickStyle>0</TickStyle>
  6283. <CurveVisible>true</CurveVisible>
  6284. <PixelThresshold>1</PixelThresshold>
  6285. <LineThickness>1</LineThickness>
  6286. <LineOrder>1</LineOrder>
  6287. <ShowYValues>true</ShowYValues>
  6288. <XCurveData>
  6289. <ShowUnit>true</ShowUnit>
  6290. <VarName>time</VarName>
  6291. </XCurveData>
  6292. <YCurveData>
  6293. <ShowUnit>true</ShowUnit>
  6294. <VarName>ori_joint2\position[3]</VarName>
  6295. </YCurveData>
  6296. </Curve>
  6297. <Curve>
  6298. <LineColor>15086320</LineColor>
  6299. <LineStyle>1</LineStyle>
  6300. <TickColor>15086320</TickColor>
  6301. <TickStyle>0</TickStyle>
  6302. <CurveVisible>true</CurveVisible>
  6303. <PixelThresshold>1</PixelThresshold>
  6304. <LineThickness>1</LineThickness>
  6305. <LineOrder>1</LineOrder>
  6306. <ShowYValues>true</ShowYValues>
  6307. <XCurveData>
  6308. <ShowUnit>true</ShowUnit>
  6309. <VarName>time</VarName>
  6310. </XCurveData>
  6311. <YCurveData>
  6312. <ShowUnit>true</ShowUnit>
  6313. <VarName>new_joint2\position[1]</VarName>
  6314. </YCurveData>
  6315. </Curve>
  6316. <Curve>
  6317. <LineColor>15790150</LineColor>
  6318. <LineStyle>1</LineStyle>
  6319. <TickColor>15790150</TickColor>
  6320. <TickStyle>0</TickStyle>
  6321. <CurveVisible>true</CurveVisible>
  6322. <PixelThresshold>1</PixelThresshold>
  6323. <LineThickness>1</LineThickness>
  6324. <LineOrder>1</LineOrder>
  6325. <ShowYValues>true</ShowYValues>
  6326. <XCurveData>
  6327. <ShowUnit>true</ShowUnit>
  6328. <VarName>time</VarName>
  6329. </XCurveData>
  6330. <YCurveData>
  6331. <ShowUnit>true</ShowUnit>
  6332. <VarName>new_joint2\position[2]</VarName>
  6333. </YCurveData>
  6334. </Curve>
  6335. <Curve>
  6336. <LineColor>1696255</LineColor>
  6337. <LineStyle>1</LineStyle>
  6338. <TickColor>1696255</TickColor>
  6339. <TickStyle>0</TickStyle>
  6340. <CurveVisible>true</CurveVisible>
  6341. <PixelThresshold>1</PixelThresshold>
  6342. <LineThickness>1</LineThickness>
  6343. <LineOrder>1</LineOrder>
  6344. <ShowYValues>true</ShowYValues>
  6345. <XCurveData>
  6346. <ShowUnit>true</ShowUnit>
  6347. <VarName>time</VarName>
  6348. </XCurveData>
  6349. <YCurveData>
  6350. <ShowUnit>true</ShowUnit>
  6351. <VarName>new_joint2\position[3]</VarName>
  6352. </YCurveData>
  6353. </Curve>
  6354. </Curves>
  6355. <Legenda>
  6356. <ShowLegenda>true</ShowLegenda>
  6357. <BorderPenColor>0</BorderPenColor>
  6358. <BackgroundColor>16777215</BackgroundColor>
  6359. </Legenda>
  6360. </Plot>
  6361. </Plots>
  6362. <PlotPanels>
  6363. <PlotPanel>
  6364. <PlotPanelId>1</PlotPanelId>
  6365. <PlotPanelVisible>true</PlotPanelVisible>
  6366. <Name>Window 1</Name>
  6367. <Tiling>0</Tiling>
  6368. <PlotIds>
  6369. <PlotId>1</PlotId>
  6370. <PlotId>3</PlotId>
  6371. </PlotIds>
  6372. <ToggleState>Base</ToggleState>
  6373. </PlotPanel>
  6374. <PlotPanel>
  6375. <PlotPanelId>2</PlotPanelId>
  6376. <PlotPanelVisible>true</PlotPanelVisible>
  6377. <Name>Window 2</Name>
  6378. <Tiling>0</Tiling>
  6379. <PlotIds>
  6380. <PlotId>2</PlotId>
  6381. </PlotIds>
  6382. <ToggleState>Base</ToggleState>
  6383. </PlotPanel>
  6384. </PlotPanels>
  6385. <WindowRectangles virtualDesktopWidth="5760" virtualDesktopHeight="1080">
  6386. <WindowRectangle monitor="1" left="-1920" top="0" right="0" bottom="1080" plotpanelid="2">
  6387. 0.200521 0.191667 0.840104 0.771296
  6388. </WindowRectangle>
  6389. <WindowRectangle monitor="2" left="1920" top="0" right="3840" bottom="1080" plotpanelid="1">
  6390. 0.0859375 0.0712963 0.84375 0.833333
  6391. </WindowRectangle>
  6392. </WindowRectangles>
  6393. </PlotSpecs>
  6394. <RunSpecs>
  6395. <SimulatorSettings>
  6396. <StartTime>0.0</StartTime>
  6397. <FinishTime>10.0</FinishTime>
  6398. <AllowPassFinishTime>false</AllowPassFinishTime>
  6399. <Warp>true</Warp>
  6400. <FPGonio>false</FPGonio>
  6401. <UseOutputAfterEach>false</UseOutputAfterEach>
  6402. <OutputAfterEach>0.1</OutputAfterEach>
  6403. <EventEpsilon>1.0e-6</EventEpsilon>
  6404. <AlgebraicTolerance>1.0e-7</AlgebraicTolerance>
  6405. <SteadyStateAnalysis>false</SteadyStateAnalysis>
  6406. <UpdateHoldInstructions>true</UpdateHoldInstructions>
  6407. </SimulatorSettings>
  6408. <IntegrationMethods>
  6409. <IntegrationMethod>
  6410. <Name>Euler</Name>
  6411. <StepSize>0.01</StepSize>
  6412. <AutoStepSize>false</AutoStepSize>
  6413. </IntegrationMethod>
  6414. <IntegrationMethod>
  6415. <Name>BackwardEuler</Name>
  6416. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  6417. <RelativeTolerance>1.0e-5</RelativeTolerance>
  6418. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  6419. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  6420. <StepSize>0.01</StepSize>
  6421. <Alpha>1.0</Alpha>
  6422. </IntegrationMethod>
  6423. <IntegrationMethod>
  6424. <Name>AdamsBashforth</Name>
  6425. <StepSize>0.01</StepSize>
  6426. <AutoStepSize>false</AutoStepSize>
  6427. </IntegrationMethod>
  6428. <IntegrationMethod>
  6429. <Name>RungeKutta2</Name>
  6430. <StepSize>0.01</StepSize>
  6431. <AutoStepSize>false</AutoStepSize>
  6432. </IntegrationMethod>
  6433. <IntegrationMethod>
  6434. <Name>RungeKutta4</Name>
  6435. <StepSize>0.01</StepSize>
  6436. <AutoStepSize>false</AutoStepSize>
  6437. </IntegrationMethod>
  6438. <IntegrationMethod>
  6439. <Name>RungeKutta8</Name>
  6440. <UseInitialStepSize>false</UseInitialStepSize>
  6441. <InitialStepSize>0.0</InitialStepSize>
  6442. <UseMaximumStepSize>false</UseMaximumStepSize>
  6443. <MaximumStepSize>0.0</MaximumStepSize>
  6444. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  6445. <RelativeTolerance>1.0e-6</RelativeTolerance>
  6446. <SafetyFactor>0.9</SafetyFactor>
  6447. <Factor1>0.33</Factor1>
  6448. <Factor2>6.0</Factor2>
  6449. <Beta>0.0</Beta>
  6450. <UseMaxNrSteps>false</UseMaxNrSteps>
  6451. <MaxNrSteps>100000</MaxNrSteps>
  6452. <UseStiffDetection>false</UseStiffDetection>
  6453. <MaxNrStiffnessSteps>1000</MaxNrStiffnessSteps>
  6454. </IntegrationMethod>
  6455. <IntegrationMethod>
  6456. <Name>RungeKuttaFehlberg</Name>
  6457. <UseInitialStepSize>false</UseInitialStepSize>
  6458. <InitialStepSize>0.0</InitialStepSize>
  6459. <UseMaximumStepSize>false</UseMaximumStepSize>
  6460. <MaximumStepSize>0.0</MaximumStepSize>
  6461. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  6462. <RelativeTolerance>1.0e-6</RelativeTolerance>
  6463. </IntegrationMethod>
  6464. <IntegrationMethod>
  6465. <Name>VodeAdams</Name>
  6466. <UseInitialStepSize>false</UseInitialStepSize>
  6467. <InitialStepSize>0.0</InitialStepSize>
  6468. <UseMaximumStepSize>false</UseMaximumStepSize>
  6469. <MaximumStepSize>0.0</MaximumStepSize>
  6470. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  6471. <RelativeTolerance>1.0e-6</RelativeTolerance>
  6472. <VodeUseBDF>true</VodeUseBDF>
  6473. <VodeUseNewton>true</VodeUseNewton>
  6474. </IntegrationMethod>
  6475. <IntegrationMethod>
  6476. <Name>BDFMethod</Name>
  6477. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  6478. <RelativeTolerance>1.0e-5</RelativeTolerance>
  6479. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  6480. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  6481. <UseInitialStepSize>false</UseInitialStepSize>
  6482. <InitialStepSize>0.0</InitialStepSize>
  6483. <UseMaximumStepSize>false</UseMaximumStepSize>
  6484. <MaximumStepSize>0.0</MaximumStepSize>
  6485. </IntegrationMethod>
  6486. <IntegrationMethod>
  6487. <Name>MeBDFiMethod</Name>
  6488. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  6489. <RelativeTolerance>1.0e-5</RelativeTolerance>
  6490. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  6491. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  6492. <UseInitialStepSize>false</UseInitialStepSize>
  6493. <InitialStepSize>0.0</InitialStepSize>
  6494. <UseMaximumStepSize>false</UseMaximumStepSize>
  6495. <MaximumStepSize>0.0</MaximumStepSize>
  6496. </IntegrationMethod>
  6497. <SelectedIntegrationMethod>7</SelectedIntegrationMethod>
  6498. </IntegrationMethods>
  6499. </RunSpecs>
  6500. <MultipleRun>
  6501. <NrSteps>10</NrSteps>
  6502. <CopyFromStates>false</CopyFromStates>
  6503. <JoinParameterVariation>true</JoinParameterVariation>
  6504. <ClearAfterRun>true</ClearAfterRun>
  6505. <RedrawAfterRun>false</RedrawAfterRun>
  6506. <DrawDuringSimulation>true</DrawDuringSimulation>
  6507. <ActionBeforeOptimization>0</ActionBeforeOptimization>
  6508. <CompareValue>0.0</CompareValue>
  6509. <UseCompareValue>true</UseCompareValue>
  6510. <MultipleRunType>MultipleRun</MultipleRunType>
  6511. <Minimize>true</Minimize>
  6512. <OptimizationVariable></OptimizationVariable>
  6513. <ResulVarUsage>UseEndValue</ResulVarUsage>
  6514. <Tolerance>0.001</Tolerance>
  6515. <OptimizationMethod>BroydonFletcherGoldfarbShanno</OptimizationMethod>
  6516. <MultipleRunVariables>
  6517. </MultipleRunVariables>
  6518. </MultipleRun>
  6519. <ExportData>
  6520. <WriteAsText>true</WriteAsText>
  6521. <ReadAsText>true</ReadAsText>
  6522. <WriteHeader>true</WriteHeader>
  6523. <ReadHeader>true</ReadHeader>
  6524. <ReadFilename></ReadFilename>
  6525. <WriteFilename></WriteFilename>
  6526. <DoWrite>false</DoWrite>
  6527. <ExportVariables>
  6528. </ExportVariables>
  6529. <ImportVariables>
  6530. </ImportVariables>
  6531. </ExportData>
  6532. <BreakPoints>
  6533. </BreakPoints>
  6534. <AnimationPlayback>
  6535. <PlaybackSpeed>1.0</PlaybackSpeed>
  6536. </AnimationPlayback>
  6537. </ExpData>
  6538. </Experiment>
  6539. </Experiments>
  6540. </Document>