First time here? Checkout the FAQ!
x
0 votes
by (300 points)
Hello!

I was recently trying to use a .vtk file converted to carp_txt format, and then apply a stimulus. However, when I run the file i get an error saying stimulus[0] is undefined. The stimulus is a sphere centered on (1000, 0 0) with a radius of 100. And the carp_txt mesh is shown below.

CUBE.pts

8

0,0,0

0,0,1000

0,1000,0

0,1000,1000

1000,0,0

1000,0,1000

1000,1000,0

1000,1000,1000

I was guessing that this error was raised when there was no intersection between the stimulus and the mesh geometry, but i’m really not sure. Please let me know if you have any ideas, thanks!

1 Answer

0 votes
by (19.2k points)
selected by
 
Best answer
How did you apply the stimulus?

Please provide a minimum example to reproduce
by (300 points)
I think I found the issue; there was only 1 element in the mesh, but if I increase the resolution slightly it works as expected.
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
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], config: ["MMLorHTML.js"], jax: ["input/TeX"], processEscapes: true } }); MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } } });
...