<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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;}
span.E-MailFormatvorlage17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></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]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Judith,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">please have a look at this example in the wiki:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="https://geuz.org/trac/getdp/wiki/Capacitor2D">https://geuz.org/trac/getdp/wiki/Capacitor2D</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">There is an electro-static simulation where the charge
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Q (= surface integral of epsilon times the normal component
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">of the gradient of the electric potential) is calculated.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Michael<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> getdp [mailto:getdp-bounces@ace20.montefiore.ulg.ac.be]
<b>On Behalf Of </b>Mengelkamp Judith TU Ilmenau<br>
<b>Sent:</b> Tuesday, June 02, 2015 11:48 AM<br>
<b>To:</b> getdp@geuz.org<br>
<b>Subject:</b> [Getdp] normal component of gradient od scalar function<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hello getDP-users,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">in my current project I have to calculate the surface integral of the normal component of the gradient of the electric potential. How do I do this in getDP-formulation? Is there somewhere an example?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I searched on the internet and found that a BF_GradGroupOfNodes basis function with a OnOneSideOf group.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So my function space looks like (Domain_SC is a surface entity, Domain is the whole domain)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">{ Name Hgrad_phi ; Type Form1 ;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> BasisFunction {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> { Name sn2 ; NameOfCoef phin2 ; Function BF_GradGroupOfNodes ;
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Support ElementsOf[Domain, OnOneSideOf Domain_SC] ; Entity NodesOf[Domain_SC] ; }
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Constraint {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> { NameOfCoef phin2 ; EntityType GroupsOfNodesOf ;
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> NameOfConstraint DirichletPhi2 ; }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">With the constraint<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">{ Name DirichletPhi2 ; Type Assign;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Case {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> { Region Domain_SC ; Value 0. ; }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And the formulation <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Galerkin { [ sigma[] * Dof{d phi} , {phi} ] ; In Domain_SC ; Jacobian JVol ; Integration I1 ; }
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However, the solution does not look satisfying to me.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any held would be highly appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Judith.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE">--------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE">M.Sc. Judith Mengelkamp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE">Technische Universität Ilmenau<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE">Institut für Biomedizinische Technik und Informatik (Institute for Biomedical Engineering and Informatics)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE">Fachgebiet Biomedizinische Technik (Biomedical Engineering Group)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE">Phone: +49 3677 69-1958<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE">Fax: +49 3677 69-1311<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE">e-mail: <a href="mailto:judith.mengelkamp@tu-ilmenau.de">
judith.mengelkamp@tu-ilmenau.de</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
</div>
</body>
</html>