feat(python): implement python bindings for all components and solvers
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
use entropyk_components::{
|
||||
Component, ComponentError, ConnectedPort, JacobianBuilder, ResidualVector, SystemState,
|
||||
};
|
||||
use entropyk_solver::{CircuitId, System, ThermalCoupling, TopologyError};
|
||||
use entropyk_core::ThermalConductance;
|
||||
use entropyk_solver::{CircuitId, System, ThermalCoupling, TopologyError};
|
||||
|
||||
/// Mock refrigerant component (e.g. compressor, condenser refrigerant side).
|
||||
struct RefrigerantMock {
|
||||
@@ -205,16 +205,10 @@ fn test_coupling_residuals_basic() {
|
||||
sys.add_edge(n1, n0).unwrap();
|
||||
|
||||
let n2 = sys
|
||||
.add_component_to_circuit(
|
||||
Box::new(RefrigerantMock { n_equations: 1 }),
|
||||
CircuitId(1),
|
||||
)
|
||||
.add_component_to_circuit(Box::new(RefrigerantMock { n_equations: 1 }), CircuitId(1))
|
||||
.unwrap();
|
||||
let n3 = sys
|
||||
.add_component_to_circuit(
|
||||
Box::new(RefrigerantMock { n_equations: 1 }),
|
||||
CircuitId(1),
|
||||
)
|
||||
.add_component_to_circuit(Box::new(RefrigerantMock { n_equations: 1 }), CircuitId(1))
|
||||
.unwrap();
|
||||
sys.add_edge(n2, n3).unwrap();
|
||||
sys.add_edge(n3, n2).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user