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

Export idealized geometry to meshlab #65

Open
jtgreen opened this issue Mar 9, 2023 · 3 comments
Open

Export idealized geometry to meshlab #65

jtgreen opened this issue Mar 9, 2023 · 3 comments

Comments

@jtgreen
Copy link
Contributor

jtgreen commented Mar 9, 2023

I'm not very familiar with dolfin, is there a way to export the fiber mesh to a file format that is readable by meshlab? Ideally I'd like to export it as an obj file, as I'd like to couple it with: https://github.com/fsahli/fractal-tree

Probably a silly question, and probably unrelated, but I'm new to this kind of modeling: the fiber output is what you would superimpose a purkinje network on for running cardiac EP, correct? E.g., once you've created the mesh of fibers, this is what one would use to then calculate a tissue simulation, or am I missing something? That is, the fibers, their angles, and type of tissue (endo, mid, epi), encode much of the anisotropy in the tissue; the base mesh, from which the fibers are made, is then discarded?

@jtgreen
Copy link
Contributor Author

jtgreen commented Mar 9, 2023

If you point me in the right direction for exporting to a particular format, I can write the code.

@finsberg
Copy link
Owner

finsberg commented Mar 9, 2023

I am not familiar with meshlab, but the mesh is generated with gmsh, see https://github.com/ComputationalPhysiology/cardiac_geometries/tree/main/src/cardiac_geometries/_gmsh

When you create a mesh with cardiac-geometries using the command line interface, then the gmsh-file (in .msh format) is stored in the output directory so that could probably be used.

Not sure if I completely understand the question, but maybe this demo will clarify: https://github.com/ComputationalPhysiology/cbcbeat/tree/master/demo/bidomain-biventricular ?

@jtgreen
Copy link
Contributor Author

jtgreen commented Mar 11, 2023

"""Not sure if I completely understand the question, but maybe this demo will clarify: https://github.com/ComputationalPhysiology/cbcbeat/tree/master/demo/bidomain-biventricular ?"""

This is helpful. So a purkinje system would simply be a separate mesh that has nodes that activate the fiber cells?

I'd like to see an example at the cbcbeat page that runs the EP simulations with a purkinje system. If I fork and work on modifying https://github.com/fsahli/fractal-tree to work with your idealized BiV mesh example, would it be difficult for you all to make one of your demos work with a purkinje system?

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

No branches or pull requests

2 participants