perf: retain exact flow caches and compiled targets
This commit is contained in:
1 parent
f09dfcf542
commit
22b35b2945
7 files changed
+138
-21
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user