From 0ef9b00d48f6ce679c14f1bd29d1a9fb8f94a615 Mon Sep 17 00:00:00 2001 From: Max Firmbach Date: Fri, 24 Jan 2025 15:21:32 +0100 Subject: [PATCH] Remove transport and thermo elements from exception --- meshpy/inputfile.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meshpy/inputfile.py b/meshpy/inputfile.py index 4dc6fb1c..0cf9b802 100644 --- a/meshpy/inputfile.py +++ b/meshpy/inputfile.py @@ -309,9 +309,7 @@ class InputFile(Mesh): skip_sections = [ "ALE ELEMENTS", "LUBRICATION ELEMENTS", - "TRANSPORT ELEMENTS", "TRANSPORT2 ELEMENTS", - "THERMO ELEMENTS", "ACOUSTIC ELEMENTS", "CELL ELEMENTS", "CELLSCATRA ELEMENTS", @@ -593,6 +591,18 @@ def add_line(self_list, line): self.elements.append(Element.from_dat(line)) else: add_line(self.dat_elements, line) + elif section_name == "THERMO ELEMENTS": + for line in section_data_comment: + if mpy.import_mesh_full: + self.elements.append(Element.from_dat(line)) + else: + add_line(self.dat_elements, line) + elif section_name == "TRANSPORT ELEMENTS": + for line in section_data_comment: + if mpy.import_mesh_full: + self.elements.append(Element.from_dat(line)) + else: + add_line(self.dat_elements, line) elif section_name == "FLUID ELEMENTS": for line in section_data_comment: if mpy.import_mesh_full: