perf: retain exact flow caches and compiled targets

This commit is contained in:
Codex committed 2026-08-16 11:21:44 +00:00
1 parent f09dfcf542
commit 22b35b2945
7 files changed
+138 -21

No files matched your search

@@ -716,6 +716,7 @@ class AmesimPnvo001FixedOpening(AlgebraicComponent):
upstream_temperature=self._upstream_temperature("port_3"),
)
@lru_cache(maxsize=32768)
def _one_way_flow_characteristics(
self,
*,
@@ -267,6 +267,7 @@ class AmesimPnl00r(AlgebraicComponent):
)
return magnitude if mass_flow > 0.0 else -magnitude
@lru_cache(maxsize=32768)
def _mass_flow_for_pressure_drop(
self,
pressure_drop: float,
@@ -1378,6 +1379,7 @@ class AmesimPnl0003(DynamicComponent):
magnitude = friction * (self.le / self.diam) * density * velocity * velocity / 2.0
return magnitude if mass_flow > 0.0 else -magnitude
@lru_cache(maxsize=32768)
def _mass_flow_for_pressure_drop(
self,
pressure_drop: float,