question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mesh.save subdomains and boundaries

See original GitHub issue

Should Mesh.save save the .subdomains and .boundaries attributes? In a way that they might be reread by Mesh.load.

If I/O is to continue to rely on meshio.write and meshio.read (as it should), I think that saving boundaries requires saving cells of type bnd_type (e.g. 'line' for MeshQuad); currently skfem.Mesh.save only saves cells of type Mesh.meshio_type.

(I’m currently parsing a polyMesh from OpenFOAM and constructing an skfem.Mesh. My parser is very slow so I want to be able to save the mesh while experimenting with the solver.)

Perhaps instead for the moment I should just construct a meshio.Mesh and meshio.write that, leaving scikit-fem out of it, but this might be something to think about for other cases, e.g. when the mesh has been refined or adapted inside scikit-fem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:44 (44 by maintainers)

github_iconTop GitHub Comments

1reaction
kinnalacommented, Aug 6, 2021

I’m planning to use products of prime numbers to distinguish the overlaps.

0reactions
kinnalacommented, Aug 6, 2021

Kuvakaappaus - 2021-08-06 14-14-52

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to mark the boundary of a subdomain - FEniCS Discourse
If you save your boundaries to file and visualize them with Paraview, you will see that you have marked all interior facets of...
Read more >
24. Marking subdomains of a mesh - FEniCS Project
We are now ready to mark the mesh. We will create four subdomains of the mesh; one subdomain for each boundary condition and...
Read more >
Subdomains and boundary conditions - Various writings
A MeshFunction over cells is suitable to represent subdomains (materials), while a MeshFunction over facets (edges or faces) is used to represent pieces...
Read more >
Subdomains and boundary conditions - Springer Link
A MeshFunction over cells is suitable to represent subdomains (materials), while a MeshFunction over facets (edges or faces) is used to represent pieces...
Read more >
Identify subdomains in bulk mesh. - OpenGeoSys
These properties are needed for the boundary conditions and source terms application, defined on the subdomains of a “bulk” mesh.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found