chore: remove deprecated flow_boundary and update docs to match new architecture
This commit is contained in:
@@ -152,7 +152,7 @@ impl Component for ExpansionValve<Connected> {
|
||||
|
||||
---
|
||||
|
||||
#### Story 9.4: Complétion Epic 7 - FlowSource/FlowSink Energy Methods
|
||||
#### Story 9.4: Complétion Epic 7 - RefrigerantSource/RefrigerantSink Energy Methods
|
||||
|
||||
**Priorité:** P1-CRITIQUE
|
||||
**Estimation:** 3h
|
||||
@@ -160,19 +160,19 @@ impl Component for ExpansionValve<Connected> {
|
||||
|
||||
**Story:**
|
||||
> En tant que moteur de simulation thermodynamique,
|
||||
> Je veux que `FlowSource` et `FlowSink` implémentent `energy_transfers()` et `port_enthalpies()`,
|
||||
> Je veux que `RefrigerantSource` et `RefrigerantSink` implémentent `energy_transfers()` et `port_enthalpies()`,
|
||||
> Afin que les conditions aux limites soient correctement prises en compte dans le bilan énergétique.
|
||||
|
||||
**Problème actuel:**
|
||||
- `FlowSource` et `FlowSink` implémentent seulement `port_mass_flows()`
|
||||
- `RefrigerantSource` et `RefrigerantSink` implémentent seulement `port_mass_flows()`
|
||||
- Ces composants sont ignorés dans la validation
|
||||
|
||||
**Solution proposée:**
|
||||
|
||||
```rust
|
||||
// Dans crates/components/src/flow_boundary.rs
|
||||
// Dans crates/components/src/refrigerant_boundary.rs
|
||||
|
||||
impl Component for FlowSource {
|
||||
impl Component for RefrigerantSource {
|
||||
// ... existing code ...
|
||||
|
||||
fn port_enthalpies(
|
||||
@@ -188,7 +188,7 @@ impl Component for FlowSource {
|
||||
}
|
||||
}
|
||||
|
||||
impl Component for FlowSink {
|
||||
impl Component for RefrigerantSink {
|
||||
// ... existing code ...
|
||||
|
||||
fn port_enthalpies(
|
||||
@@ -206,10 +206,10 @@ impl Component for FlowSink {
|
||||
```
|
||||
|
||||
**Fichiers à modifier:**
|
||||
- `crates/components/src/flow_boundary.rs`
|
||||
- `crates/components/src/refrigerant_boundary.rs`
|
||||
|
||||
**Critères d'acceptation:**
|
||||
- [ ] `FlowSource` et `FlowSink` implémentent les 3 méthodes
|
||||
- [ ] `RefrigerantSource` et `RefrigerantSink` implémentent les 3 méthodes
|
||||
- [ ] Tests unitaires associés passent
|
||||
- [ ] `check_energy_balance()` ne skip plus ces composants
|
||||
|
||||
@@ -465,7 +465,7 @@ impl SystemState {
|
||||
| Lundi AM | 9.1 CircuitId Unification | 2h |
|
||||
| Lundi PM | 9.2 FluidId Unification | 2h |
|
||||
| Mardi AM | 9.3 ExpansionValve Energy | 3h |
|
||||
| Mardi PM | 9.4 FlowSource/FlowSink Energy | 3h |
|
||||
| Mardi PM | 9.4 RefrigerantSource/RefrigerantSink Energy | 3h |
|
||||
| Mercredi AM | 9.5 FlowSplitter/FlowMerger Energy | 4h |
|
||||
| Mercredi PM | 9.6 Logging Improvement | 1h |
|
||||
| Jeudi | Tests d'intégration complets | 4h |
|
||||
@@ -527,8 +527,8 @@ cargo run --example simple_cycle
|
||||
| Pipe | ✅ | ✅ | ✅ |
|
||||
| Pump | ✅ | ✅ | ✅ |
|
||||
| Fan | ✅ | ✅ | ✅ |
|
||||
| FlowSource | ✅ | ❌ → ✅ | ❌ → ✅ |
|
||||
| FlowSink | ✅ | ❌ → ✅ | ❌ → ✅ |
|
||||
| RefrigerantSource | ✅ | ❌ → ✅ | ❌ → ✅ |
|
||||
| RefrigerantSink | ✅ | ❌ → ✅ | ❌ → ✅ |
|
||||
| FlowSplitter | ✅ | ❌ → ✅ | ❌ → ✅ |
|
||||
| FlowMerger | ✅ | ❌ → ✅ | ❌ → ✅ |
|
||||
| HeatExchanger | ✅ | ✅ | ✅ |
|
||||
|
||||
Reference in New Issue
Block a user