<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Hassan,</p>
<p>please see below.<br>
</p>
<div class="moz-cite-prefix">On 12/21/2021 2:26 PM, Hassan Yazdanian
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:75e1c793cfdc4331b38fa35aff48172b@dtu.dk">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0in;}ul
{margin-bottom:0in;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying y to compare the result
obtained by SimNIBS with that one calculated by FEniCS (<a
href="https://fenicsproject.org/" moz-do-not-send="true"
class="moz-txt-link-freetext">https://fenicsproject.org/</a>)
for a tDCS simulation. For this purpose, I have imported .msh
file generated by a SimNIBS simulation into FEniCS. I have
used the spherical model provided in SimNIBS dataset. Now, I
have two questions:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph"
style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="mso-list:Ignore">1-<span style="font:7.0pt
"Times New Roman"">
</span></span><!--[endif]--><span dir="LTR"></span>How can I
get the electrical potentials of nodes and corresponding nodal
coordinates? In earlier versions of SimNIBS, I used “v =
fem.tdcs_getdp”. I was wondering if there is a similar command
in SimNIBS 3.2.</p>
</div>
</blockquote>
<p>You can add a 'v' to the 'fields' attribute when defining the
simulation:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://simnibs.github.io/simnibs/build/html/documentation/sim_struct/session.html">https://simnibs.github.io/simnibs/build/html/documentation/sim_struct/session.html</a></p>
<p>The potential will then be added as node_data to the results
mesh. The nodal positions are stored under the "nodes" parameter:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://simnibs.github.io/simnibs/build/html/documentation/python_lib/auto/simnibs.Msh.html#simnibs.Msh">https://simnibs.github.io/simnibs/build/html/documentation/python_lib/auto/simnibs.Msh.html#simnibs.Msh</a><br>
</p>
<blockquote type="cite"
cite="mid:75e1c793cfdc4331b38fa35aff48172b@dtu.dk">
<div class="WordSection1">
<p class="MsoListParagraph"
style="text-indent:-.25in;mso-list:l0 level1 lfo1"><o:p></o:p></p>
<p class="MsoListParagraph"><o:p></o:p></p>
<p class="MsoListParagraph"
style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="mso-list:Ignore">2-<span style="font:7.0pt
"Times New Roman"">
</span></span><!--[endif]--><span dir="LTR"></span>About
applying boundary condition, as I understood, SimNIBS uses a
constant potential on electrodes (Say -1 on Cathode and 0 on
Anode). After solving the FEM system of equations, then
potentials are scaled to reach the given current set for
electrodes ( I mean we know the potential on 2101 and 1501
surfaces, both side of Anode, and we know the conductivity of
the electrode, 29.4 S/m, then we can determine the current
passing through the electrode). Am I right?</p>
</div>
</blockquote>
<p>Yes, that's correct.</p>
<p>Merry Christmas and a good start into the new year to you, too!</p>
<p>Best,</p>
<p>Axel</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:75e1c793cfdc4331b38fa35aff48172b@dtu.dk">
<div class="WordSection1">
<p class="MsoListParagraph"
style="text-indent:-.25in;mso-list:l0 level1 lfo1"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Merry Christmas and Happy new year in
advance!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best wishes,<o:p></o:p></p>
<p class="MsoNormal">-Hassan<o:p></o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Simnibs-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simnibs-discuss@drcmr.dk">Simnibs-discuss@drcmr.dk</a>
<a class="moz-txt-link-freetext" href="https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Dr. Axel Thielscher
Professor of Neurophysics and Neuroimaging
Danish Research Center for Magnetic Resonance
Copenhagen University Hospital Hvidovre
DK-2650 Hvidovre, Denmark
<a class="moz-txt-link-abbreviated" href="http://www.drcmr.dk">www.drcmr.dk</a>
&
Department of Health Technology
Technical University of Denmark
DK-2800 Kgs. Lyngby
<a class="moz-txt-link-freetext" href="http://www.healthtech.dtu.dk/">http://www.healthtech.dtu.dk/</a></pre>
</body>
</html>