<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Anton, 
<div class=""><br class="">
</div>
<div class="">You should use the Maxwell stress tensor. You will find all you need in:</div>
<div class=""><a href="https://gitlab.onelab.info/doc/tutorials/wikis/Magnetic-forces" class="">https://gitlab.onelab.info/doc/tutorials/wikis/Magnetic-forces</a></div>
<div class=""><br class="">
</div>
<div class="">It is a 3d problem with a curl-curl equation, so you need the gauging for being able to solve the problem with a direct solver. </div>
<div class="">BTW it is not correct in your files. You are using a tree-cotree gauge that should be defined in the whole domain. The tree should start on the surfaces where you already have a condition. An explanation on the gauging is also available at the
 example above. </div>
<div class=""><br class="">
</div>
<div class="">Best regards, </div>
<div class="">Ruth Sabariego</div>
<div class=""><br class="">
</div>
<div class="">PS: Please send your questions to the list, it can be useful to other people.</div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
—<br class="">
Prof. Ruth V. Sabariego<br class="">
KU Leuven, Dept. Electrical Engineering ESAT/Electa, EnergyVille<br class="">
<a href="http://www.esat.kuleuven.be/electa" class="">http://www.esat.kuleuven.be/electa</a></div>
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<a href="http://www.energyville.be" class="">http://www.energyville.be</a></div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 24 May 2019, at 21:49, Panteleev, Anton <<a href="mailto:anton.panteleev@haw-hamburg.de" class="">anton.panteleev@haw-hamburg.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; direction: ltr; font-family: Tahoma; font-size: 10pt;" class="">
<pre class="tw-ta tw-data-text tw-text-small" data-placeholder="Übersetzung" id="tw-target-text" data-fulltext="" dir="ltr" style="text-align: left; height: 504px;"><span tabindex="0" lang="en" class="">Dear Professor Sabariego,

I program the magnetic field of the actuator and want to calculate the forces acting on the moving part, in my example it is Region [{8000}];
Could you tell me which example from ONELAB should I take: Magnetometer or Magnets? If I take the example of a Magnetometer, can I use GaugeCondition_a instead of ElectricScalarPotential ...? And if I take the example of Magnets, then in my example there is no Maxwell stress tensor.
Please tell me how I better calculate the forces arising in the magnetic field for my example.

P.S. I attached two files to this letter: geo. and pro. with my example<br class=""><br class="">best regards<br class="">Anton Panteleev<br class=""></span></pre>
</div>
<span id="cid:145CFC75-31D9-4D40-A67C-22D1B57E3892@home"><P5.geo></span><span id="cid:97AD5EE4-1624-4462-B3A6-9D72BD11CAA2@home"><P5.pro></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>