Update project structure and configurations
This commit is contained in:
@@ -94,7 +94,7 @@ impl BphxExchanger {
|
||||
///
|
||||
/// let geo = BphxGeometry::from_dh_area(0.003, 0.5, 20);
|
||||
/// let hx = BphxExchanger::new(geo);
|
||||
/// assert_eq!(hx.n_equations(), 3);
|
||||
/// assert_eq!(hx.n_equations(), 2);
|
||||
/// ```
|
||||
pub fn new(geometry: BphxGeometry) -> Self {
|
||||
let ua_estimate = Self::estimate_ua(&geometry);
|
||||
@@ -363,6 +363,12 @@ impl Component for BphxExchanger {
|
||||
self.inner.energy_transfers(state)
|
||||
}
|
||||
|
||||
fn set_fluid_backend_from_builder(&mut self, backend: std::sync::Arc<dyn entropyk_fluids::FluidBackend>) {
|
||||
if self.fluid_backend.is_none() {
|
||||
self.fluid_backend = Some(backend);
|
||||
}
|
||||
}
|
||||
|
||||
fn signature(&self) -> String {
|
||||
format!(
|
||||
"BphxExchanger({} plates, dh={:.2}mm, A={:.3}m², {})",
|
||||
@@ -372,6 +378,10 @@ impl Component for BphxExchanger {
|
||||
self.correlation_selector.correlation.name()
|
||||
)
|
||||
}
|
||||
|
||||
fn update_calib_factor(&mut self, factor: &str, value: f64) -> bool {
|
||||
self.inner.update_calib_factor(factor, value)
|
||||
}
|
||||
}
|
||||
|
||||
impl StateManageable for BphxExchanger {
|
||||
|
||||
Reference in New Issue
Block a user