First time here? Checkout the FAQ!
x
0 votes
by (1.2k points)
I'm new to openCarp - could anyone direct me to resources or examples that import a 3d finite element mesh in .pts, .elem, and/or .lon formats to perform tissue simulations? The current documentation and examples don't seem to go into much detail, and some snippets of code would be great in helping me get started. Much thanks!

1 Answer

0 votes
by (17.4k points)
selected by
 
Best answer

Hi Chang,

There are a couple of examples that build simple 3D meshes within carputils and assign an ionic model to the tissue.

Basic tissue example: https://opencarp.org/documentation/examples/02_ep_tissue/01_basic_usage

Tagging multiple regions: https://opencarp.org/documentation/examples/02_ep_tissue/04_tagging

by (1.2k points)
I've gone through these examples and it looks like they use built-in functions to generate a rectangular mesh. What should we do if we want to import our own custom mesh?
by (17.4k points)
You can use meshtool to convert from many common formats (including VTK) to the openCARP format: https://bitbucket.org/aneic/meshtool/src/master/
by (1.2k points)
Right, but what command would we call to actually import the mesh(.pts, .elem) into the run.py script? It seems like a simple operation and I've been through the code documentation, but I must still be missing something.
by (17.4k points)
If you want to load the mesh, you can do so by telling openCARP directly. To do that, just add a "+meshname " directive to the cmd variable in carputils.
The openCARP parameters are described in the manual and can be searched on the webpage: https://opencarp.org/documentation/opencarp-parameters (search for meshname)
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...