54 lines
919 B
Python
54 lines
919 B
Python
"""Legacy Python-kernel test placeholder; contains no executable test cases.
|
|
|
|
Native coverage lives in test_amesim_pnl0002_pnl0003_xml,
|
|
test_amesim_semantics, test_native_pipe_physics, and test_native_catalog.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import unittest
|
|
from math import log10, pi, sqrt
|
|
|
|
from app.simulation.components.amesim.flow.pipes import AmesimPnl0002, AmesimPnl0003
|
|
from app.simulation.components.amesim.media.mediums import (
|
|
AmesimHeliumPengRobinsonMedium,
|
|
)
|
|
from app.simulation.core.medium import IdealGasMedium
|
|
from app.simulation.registry import COMPONENT_MODEL_REGISTRY
|
|
|
|
|
|
class AmesimPnl0002ComponentTests(unittest.TestCase):
|
|
def setUp(self) -> None:
|
|
self.medium = IdealGasMedium()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AmesimPnl0003ComponentTests(unittest.TestCase):
|
|
def setUp(self) -> None:
|
|
self.medium = IdealGasMedium()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|