pyBondGraph 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyBondGraph
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Modelling tool for linear bond graph systems in Python
5
5
  Author-email: Matthias Panny <matthias.panny@mci.edu>
6
6
  License-Expression: CC-BY-NC-SA-4.0
@@ -39,6 +39,7 @@ Bond graphs provide a **domain-independent modeling framework** for physical sys
39
39
  * Automatic **symbolic equation derivation** using SymPy
40
40
  * Conversion of models to **state-space systems**
41
41
  * Example models for electrical and mechanical systems
42
+ * Capaility to **store** and **load** bond graph models in JSON format construct bond graphs from loaded sub bond graphs
42
43
 
43
44
  ---
44
45
 
@@ -97,10 +98,10 @@ capacitor = Capacitor("C", "C")
97
98
  series_junction = OneJunction("J1")
98
99
 
99
100
  # connect elements
100
- # causalities need to be assigned manually
101
- bg.add_bond(Bond(voltage_source, series_junction, Causality.EFFORT_OUT))
102
- bg.add_bond(Bond(series_junction, resistor, Causality.EFFORT_OUT))
103
- bg.add_bond(Bond(series_junction, capacitor, Causality.FLOW_OUT))
101
+ # causalities need to be assigned manually ^
102
+ bg.connect(voltage_source, series_junction, Causality.EFFORT_OUT)
103
+ bg.connect(series_junction, resistor, Causality.EFFORT_OUT)
104
+ bg.connect(series_junction, capacitor, Causality.FLOW_OUT)
104
105
 
105
106
  # plot the resulting BondGraph
106
107
  bg.plot()
@@ -13,6 +13,7 @@ Bond graphs provide a **domain-independent modeling framework** for physical sys
13
13
  * Automatic **symbolic equation derivation** using SymPy
14
14
  * Conversion of models to **state-space systems**
15
15
  * Example models for electrical and mechanical systems
16
+ * Capaility to **store** and **load** bond graph models in JSON format construct bond graphs from loaded sub bond graphs
16
17
 
17
18
  ---
18
19
 
@@ -71,10 +72,10 @@ capacitor = Capacitor("C", "C")
71
72
  series_junction = OneJunction("J1")
72
73
 
73
74
  # connect elements
74
- # causalities need to be assigned manually
75
- bg.add_bond(Bond(voltage_source, series_junction, Causality.EFFORT_OUT))
76
- bg.add_bond(Bond(series_junction, resistor, Causality.EFFORT_OUT))
77
- bg.add_bond(Bond(series_junction, capacitor, Causality.FLOW_OUT))
75
+ # causalities need to be assigned manually ^
76
+ bg.connect(voltage_source, series_junction, Causality.EFFORT_OUT)
77
+ bg.connect(series_junction, resistor, Causality.EFFORT_OUT)
78
+ bg.connect(series_junction, capacitor, Causality.FLOW_OUT)
78
79
 
79
80
  # plot the resulting BondGraph
80
81
  bg.plot()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyBondGraph
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Modelling tool for linear bond graph systems in Python
5
5
  Author-email: Matthias Panny <matthias.panny@mci.edu>
6
6
  License-Expression: CC-BY-NC-SA-4.0
@@ -39,6 +39,7 @@ Bond graphs provide a **domain-independent modeling framework** for physical sys
39
39
  * Automatic **symbolic equation derivation** using SymPy
40
40
  * Conversion of models to **state-space systems**
41
41
  * Example models for electrical and mechanical systems
42
+ * Capaility to **store** and **load** bond graph models in JSON format construct bond graphs from loaded sub bond graphs
42
43
 
43
44
  ---
44
45
 
@@ -97,10 +98,10 @@ capacitor = Capacitor("C", "C")
97
98
  series_junction = OneJunction("J1")
98
99
 
99
100
  # connect elements
100
- # causalities need to be assigned manually
101
- bg.add_bond(Bond(voltage_source, series_junction, Causality.EFFORT_OUT))
102
- bg.add_bond(Bond(series_junction, resistor, Causality.EFFORT_OUT))
103
- bg.add_bond(Bond(series_junction, capacitor, Causality.FLOW_OUT))
101
+ # causalities need to be assigned manually ^
102
+ bg.connect(voltage_source, series_junction, Causality.EFFORT_OUT)
103
+ bg.connect(series_junction, resistor, Causality.EFFORT_OUT)
104
+ bg.connect(series_junction, capacitor, Causality.FLOW_OUT)
104
105
 
105
106
  # plot the resulting BondGraph
106
107
  bg.plot()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyBondGraph"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Modelling tool for linear bond graph systems in Python"
5
5
  readme = "README.md"
6
6
  authors = [
File without changes
File without changes