First time here? Checkout the FAQ!
x
0 votes
by (140 points)
closed by

Hello,

I have seen all the previous posts but my problem is not addressed. I am trying to run a simulation in openCARP. Here are a few scenarios:

1) Create a geom with mesh.Block() and then specify stim and electrodes, it works

2) Create a geom with mesh.Block() and then specify stim as stim.vtx, it works

3) Load external mesh and then solve Laplace with stimtype = 1, it works

4) Load external mesh and specify stim as stim.vtx, get the following error:

L5 : parabolic PDE (PETSc) solver diverged. Reason: iterations exceeded.

Please note that this is the same error with at least a few different external meshes and irrespective of the choice of number of nodes in stim.vtx.Whenever I build the geom in the script with mesh.Block(), simulation always works.

Clearly I am not doing something right, would appreciate if someone could explain why this would be the case..

Thanks and regards

~anoop

PS> Here is my typical example. In the same folder, I have mymesh.pts, mymesh.elem and mymesh.lon alongwith stim.vtx


meshname = "mymesh"

and my stimulus parameters are:

num_stim                 = 1
stim[0].crct.type        = 0
stim[0].pulse.strength   = 100.0
stim[0].ptcl.duration    = 1.0
stim[0].ptcl.start       = 0.0
stim[0].ptcl.npls        = 1
stim[0].elec.vtx_file    = "stim.vtx"

Stim.vtx:

343
extra
23
24
25
26
...

closed with the note: There was an inconsistency in the generation of the mesh. The coordinates of points in the .pts needed to be scaled to microns (as required) and after that it is working satisfactorily.
by (19.1k points)
Good to hear!
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
...