feat: integrate AMESim media models and editor UI
This commit is contained in:
1 parent
3e4f466114
commit
e7177ab03e
181 files changed
+7042
-25270
No files matched your search
@@ -44,7 +44,7 @@ def amesim_pnch023_project() -> ReactFlowProjectPayload:
|
||||
"kth": 0.0,
|
||||
"sth": 0.1,
|
||||
"extemp": 293.15,
|
||||
"gi": 1.0,
|
||||
"gi": 0.0,
|
||||
"p0": 100000.0,
|
||||
"T0": 293.15,
|
||||
},
|
||||
@@ -56,7 +56,7 @@ def amesim_pnch023_project() -> ReactFlowProjectPayload:
|
||||
physical_port("port_1", "bidirectional", "left"),
|
||||
physical_port("port_2", "bidirectional", "right"),
|
||||
],
|
||||
{"diam": 0.02, "le": 1.0, "rr": 1.0e-5, "gi": 1.0},
|
||||
{"diam": 0.02, "le": 1.0, "rr": 1.0e-5, "gi": 0.0},
|
||||
),
|
||||
component_node(
|
||||
"tank_1",
|
||||
@@ -91,6 +91,10 @@ class AmesimPnch023XmlTests(unittest.TestCase):
|
||||
|
||||
def test_pnch023_system_xml_validates_and_simulates(self) -> None:
|
||||
xml = build_reactflow_system_xml(amesim_pnch023_project())
|
||||
xml_text = xml.decode("utf-8")
|
||||
self.assertNotIn("description", xml_text)
|
||||
self.assertIn('<Parameter name="cvol" value="0.057"', xml_text)
|
||||
self.assertIn('<Parameter name="gi" value="0.0"', xml_text)
|
||||
report = validate_system_xml_document(xml)
|
||||
|
||||
self.assertTrue(report.valid, report.as_dict())
|
||||
|
||||
Reference in new issue
Block a user