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

Redo #143 #151

Closed
wants to merge 15 commits into from
Closed

Redo #143 #151

wants to merge 15 commits into from

Conversation

Roxana-P
Copy link
Contributor

@Roxana-P Roxana-P commented Aug 4, 2023

This is a redo of PR #143 and alternative (?) to #146. I was asked to rebase and I hope this is what was the intention behind that request.

gustaf/io/meshio.py Outdated Show resolved Hide resolved
Comment on lines +100 to +102
meshes[i][0].BC[
f"{meshes[j][0].whatami}-nodes"
] = np.unique(meshes[j][0].elements)
Copy link
Member

Choose a reason for hiding this comment

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

Do you often have BC for edges or is this some sort of masks for faces/volumes?

Comment on lines +70 to +79
meshes = [
[
meshio_mapping[key][0](
vertices=vertices, elements=meshio_mesh.cells_dict[key]
),
meshio_mapping[key][1],
]
for key in meshio_mapping.keys()
if key in meshio_mesh.cells_dict.keys()
]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
meshes = [
[
meshio_mapping[key][0](
vertices=vertices, elements=meshio_mesh.cells_dict[key]
),
meshio_mapping[key][1],
]
for key in meshio_mapping.keys()
if key in meshio_mesh.cells_dict.keys()
]
meshes = [
[
meshio_mapping[key][0](
vertices=vertices, elements=meshio_mesh.cells_dict[key]
),
meshio_mapping[key][1],
]
for key in meshio_mapping.keys()
if key in meshio_mesh.cells_dict.keys()
]

can you please just write a normal for loop here?

Copy link
Member

Choose a reason for hiding this comment

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

this is not resolved

gustaf/io/meshio.py Outdated Show resolved Hide resolved
Roxana-P and others added 2 commits September 5, 2023 09:30
Co-authored-by: Jaewook Lee <[email protected]>
Co-authored-by: Jaewook Lee <[email protected]>
@j042 j042 mentioned this pull request Sep 22, 2023
@clemens-fricke
Copy link
Collaborator

Except for the Boundary information, this PR is superseded by #158.

@j042 j042 closed this Oct 3, 2023
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.

3 participants