Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transport and thermo element sections for full mesh import #207

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxfirmbach
Copy link
Contributor

Currently working quite a bit with thermo and scatra elements, thus removing both from the section exclusion and adding the relevant read mechanism for the respective element lines.

Comment on lines +594 to +605
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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this works? Won't these elements end up in the STRUCTURE ELEMENTS section?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a test case would help to see that 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants