Index: LICENSE.md ================================================================== --- LICENSE.md +++ LICENSE.md @@ -1,9 +1,9 @@ # The GNU General Public License, Version 2, June 1991 (GPLv2) -> Copyright (C) 1989, 1991 Free Software Foundation, Inc. -> 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +> Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, +> Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ## Preamble @@ -87,23 +87,23 @@ - **a)** You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. - **b)** You must cause any work that you distribute or publish, that in whole - or in part contains or is derived from the Program or any part thereof, to - be licensed as a whole at no charge to all third parties under the terms of - this License. - -- **c)** If the modified program normally reads commands interactively when - run, you must cause it, when started running for such interactive use in the - most ordinary way, to print or display an announcement including an - appropriate copyright notice and a notice that there is no warranty (or - else, saying that you provide a warranty) and that users may redistribute - the program under these conditions, and telling the user how to view a copy - of this License. (Exception: if the Program itself is interactive but does - not normally print such an announcement, your work based on the Program is - not required to print an announcement.) + or in part contains or is derived from the Program or any part thereof, to be + licensed as a whole at no charge to all third parties under the terms of this + License. + +- **c)** If the modified program normally reads commands interactively when run, + you must cause it, when started running for such interactive use in the most + ordinary way, to print or display an announcement including an appropriate + copyright notice and a notice that there is no warranty (or else, saying that + you provide a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this License. + (Exception: if the Program itself is interactive but does not normally print + such an announcement, your work based on the Program is not required to print + an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate @@ -125,24 +125,23 @@ **3.** You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: - **a)** Accompany it with the complete corresponding machine-readable source - code, which must be distributed under the terms of Sections 1 and 2 above on - a medium customarily used for software interchange; or, + code, which must be distributed under the terms of Sections 1 and 2 above on a + medium customarily used for software interchange; or, - **b)** Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the - corresponding source code, to be distributed under the terms of Sections 1 - and 2 above on a medium customarily used for software interchange; or, + corresponding source code, to be distributed under the terms of Sections 1 and + 2 above on a medium customarily used for software interchange; or, - **c)** Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for - noncommercial distribution and only if you received the program in object - code or executable form with such an offer, in accord with Subsection b - above.) + noncommercial distribution and only if you received the program in object code + or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation Index: README.md ================================================================== --- README.md +++ README.md @@ -2,20 +2,26 @@ ## Model Transformation Tools ### Bond-graph based modeling tools -MTT is a set of tools for modeling dynamic physical systems using the bond-graph methodology and transforming these models into representations suitable for analysis, control, and simulation. +MTT is a set of tools for modeling dynamic physical systems using the bond-graph +methodology and transforming these models into representations suitable for +analysis, control, and simulation. --- ## Introduction - MTT uses and generates `.m` files for [GNU Octave](https://www.octave.org/). - MTT is mainly built on the [GNU](https://gnu.org/) set of tools. -- MTT uses the algebraic package [REDUCE](https://reduce-algebra.sourceforge.io/). -- MTT is based on the bond graph language; general bond graph information is available from [The Bond Graph Compendium](https://www2.engr.arizona.edu/~cellier/bg.html) homepage. +- MTT uses the algebraic package + [REDUCE](https://reduce-algebra.sourceforge.io/). +- MTT is based on the bond graph language; general bond graph information is + available from + [The Bond Graph Compendium](https://www2.engr.arizona.edu/~cellier/bg.html) + homepage. --- ## Availability @@ -42,9 +48,13 @@ --- ## Authors -- [Peter Gawthrop](http://www.gawthrop.net/) [\](mailto:peter.gawthrop@unimelb.edu.au) -- [Geraint Paul Bevan](https://www.gcu.ac.uk/cebe/staff/geraint%20bevan/) [\](mailto:Geraint.Bevan@gcu.ac.uk), [\](mailto:geraint@enchant.me.uk) [_(https://www.enchant.me.uk)_](https://www.enchant.me.uk/) +- [Peter Gawthrop](http://www.gawthrop.net/) + [\](mailto:peter.gawthrop@unimelb.edu.au) +- [Geraint Paul Bevan](https://www.gcu.ac.uk/cebe/staff/geraint%20bevan/) + [\](mailto:Geraint.Bevan@gcu.ac.uk), + [\](mailto:geraint@enchant.me.uk) + [_(https://www.enchant.me.uk)_](https://www.enchant.me.uk/) --- Index: SECURITY.md ================================================================== --- SECURITY.md +++ SECURITY.md @@ -2,8 +2,13 @@ ## Reporting a Vulnerability Please use email to report any any security vulnerabilities: -- [Peter Gawthrop](http://www.gawthrop.net/) [\](mailto:peter.gawthrop@unimelb.edu.au) -- [Geraint Paul Bevan](https://www.gcu.ac.uk/cebe/staff/geraint%20bevan/) [\](mailto:Geraint.Bevan@gcu.ac.uk), [\](mailto:geraint@enchant.me.uk) [_(https://www.enchant.me.uk)_](https://www.enchant.me.uk/) -- [Jeffrey H. Johnson](https://prone.ws/) [\](mailto:trnsz+reduce-algebra-mtt-security@pobox.com) +- [Peter Gawthrop](http://www.gawthrop.net/) + [\](mailto:peter.gawthrop@unimelb.edu.au) +- [Geraint Paul Bevan](https://www.gcu.ac.uk/cebe/staff/geraint%20bevan/) + [\](mailto:Geraint.Bevan@gcu.ac.uk), + [\](mailto:geraint@enchant.me.uk) + [_(https://www.enchant.me.uk)_](https://www.enchant.me.uk/) +- [Jeffrey H. Johnson](https://prone.ws/) + [\](mailto:trnsz+reduce-algebra-mtt-security@pobox.com) Index: mtt/doc/mtt.html ================================================================== --- mtt/doc/mtt.html +++ mtt/doc/mtt.html @@ -3523,11 +3523,11 @@
        mtt help representations
        mtt help components
-       mtt help examples 
+       mtt help examples
        mtt help crs
        mtt help representations <match_string>
        mtt help components <match_string>
        mtt help examples  <match_string>
        mtt help crs <match_string>
@@ -10564,11 +10564,11 @@
     
-%ALIAS  $a1  lin           
+%ALIAS  $a1  lin
 
@@ -10620,11 +10620,11 @@
-%ALIAS Component_name   Component_location       
+%ALIAS Component_name   Component_location
 
@@ -11855,11 +11855,11 @@
 FOR ALL rho,g,vol,h,topt,bott,flowin,press
 LET tktf2(rho,g,vol,h,topt,bott,effort,2,press,effort,1)
-        = tank(rho,g,vol,h,topt,bott,press);      
+        = tank(rho,g,vol,h,topt,bott,press);
 
@@ -11924,13 +11924,13 @@
 function p = tank (rho,g,vol,h,topt,bott,press)
 
   ## usage:  p = tank (vol,h,topt,bott,press)
   ##
-  ## 
+  ##
 
-   val = press; zt = topt; zb = bott; 
+   val = press; zt = topt; zb = bott;
    zval = 0.5*(abs(zb+(zt-zb)*val-h)+(zb+(zt-zb)*val-h));
 
    p = rho*g*zval + 0.5*(1+tanh((press-0.98)*500))*100000;
 
 endfunction
@@ -11986,16 +11986,16 @@
     
-inline double tank(const double rho, 
-                   const double g, 
-                   const double vol, 
-                   const double h, 
-                   const double topt, 
-                   const double bott, 
+inline double tank(const double rho,
+                   const double g,
+                   const double vol,
+                   const double h,
+                   const double topt,
+                   const double bott,
                    const double press)
 
 
   /*  ## usage:  p = tank (vol,h,topt,bott,press)
     ##
@@ -14791,13 +14791,13 @@
         
 # Makefile for the Two link GMV example
 
-all: msdP_tf.m TwoLinkP_obs.m TwoLinkP_sm.m twolinkp_sm.m TwoLinkGMV_numpar.m 
+all: msdP_tf.m TwoLinkP_obs.m TwoLinkP_sm.m twolinkp_sm.m TwoLinkGMV_numpar.m
 
-msdP_tf.m: msdP_abg.fig 
+msdP_tf.m: msdP_abg.fig
         mtt -q msdP tf m
 
 TwoLinkP_obs.m: TwoLinkP_abg.fig TwoLinkP_lbl.txt
         mtt -q TwoLinkP obs m
 
@@ -16372,11 +16372,11 @@
 
 C = 1
 
 D = 0
 
-octave> 
+octave>
 
@@ -16817,11 +16817,11 @@
-  mtt sys sfun mexglx 
+  mtt sys sfun mexglx