-
Notifications
You must be signed in to change notification settings - Fork 5
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
refinement around electrodes - fixes dipole analytical solution disrepancy? 3 spheres comparison #52
Comments
Simulating point dipole with different refinement levels: 4 spheres: brain, skull, skin, air Refinement in a 1cm sphere around dipole position. Each step is one subdivision of elements. With regrounding at 0.085 to compare decay easier: Seems like adding more elements around point sources is changing overall offsets and decay in ai! seems to fix overall incompatability talked about in #50 |
Experiment with mesh refinementWe refine the mesh near the dipole (radius 1 cm). Each refinement step subdivides the mesh elements which centroids are close to the dipole. At refinement step 4 50% of the mesh elements are in the sphere around the dipole, steps 5 and more --- 90+% of the mesh elements are the elements at the dipole. 2 steps of refinement increase amount of mesh elements from 1641418 to 1668160 by 1.6%. 4 spheres: Comparing with analytical solution. 2 types of meshes: with grounding electrode in the "neck" and without. BC - Dirichlet, outer shell is set to 0 and the grounding electrode also is set to 0. Rest of BC are "Natural": Meshes in the spheres have element resolution of 5 mm and it decreases in the air when we get further away from the spheres. No electrodeSeems like FEM solver needs to have increased resolution around point dipoles/sources. But increasing it too much can loose accuracy in other regions. In this case of 5 mm mesh, 2 steps of refinement in 1 cm sphere around dipole seems to have the best result... Neck grounding electrode:Introducing grounding in the neck predictably adds an offset in the potential, and similar to electrode-less solutions, having too high resolution around the dipole changes the rate of decay in the air. Closest to the analytical line in the air above the spheres is again 2 steps of refinement. Interestingly enough, having neck grounding makes the solution be closer to the dipole at low distances, at low refinement steps. Due to enforced 0 at the neck electrode, the potential below the spheres is "on the wrong side" and decay in the air does not follow the analytical curve at all. 2 stepsRegrounded at 0,085 Due to enforced 0 at the neck electrode, the potential below the spheres is "on the wrong side" and decay in the air does not follow the analytical curve at all. |
Experiment with disabling dirichet BCOnly Neuman, otherwise setup the same as #52 (comment), 2 steps of refinement. As we can see without electrode adding or removing far boundary enforced 0 doesn't change the result, most likely because two symmetrical point sources integration constant cancels out. It does change the offset for the solution with electrode. Let's look at the electrode location: At the electrode location, the solution might be still be disturbed by the enforcement of zero current. After regrounding at 0.085: |
In electrode modelling and signal simulations we want to refine the mesh around electrodes for better accuracy of point sources
For now 2 steps of refinement in 1 cm radius spheres around point sources seem to be the best solution for human sized brains at 0.005 m mesh element sizes
The text was updated successfully, but these errors were encountered: