Update project structure and configurations
This commit is contained in:
@@ -384,6 +384,16 @@ impl Component for FlowSplitter {
|
||||
entropyk_core::Power::from_watts(0.0),
|
||||
))
|
||||
}
|
||||
|
||||
fn signature(&self) -> String {
|
||||
format!("FlowSplitter(fluid={}, outlets={})", self.fluid_id, self.outlets.len())
|
||||
}
|
||||
|
||||
fn to_params(&self) -> crate::ComponentParams {
|
||||
crate::ComponentParams::new("FlowSplitter")
|
||||
.with_param("fluid", self.fluid_id.as_str())
|
||||
.with_param("outletCount", self.outlets.len())
|
||||
}
|
||||
}
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
@@ -681,6 +691,16 @@ impl Component for FlowMerger {
|
||||
entropyk_core::Power::from_watts(0.0),
|
||||
))
|
||||
}
|
||||
|
||||
fn signature(&self) -> String {
|
||||
format!("FlowMerger(fluid={}, inlets={})", self.fluid_id, self.inlets.len())
|
||||
}
|
||||
|
||||
fn to_params(&self) -> crate::ComponentParams {
|
||||
crate::ComponentParams::new("FlowMerger")
|
||||
.with_param("fluid", self.fluid_id.as_str())
|
||||
.with_param("inletCount", self.inlets.len())
|
||||
}
|
||||
}
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user