Hi onelab team,<div><br></div><div>The problem is mine: I did not exclude the body of the frame from the air volume.</div><div>Sorry for the premature report, I am new to gmsh and learned really hard past few days.</div><div><br></div><div>After having corrected my mistake, and increased mesh size (if mesh size is too small, </div><div>getdp will report an external library error, probably due to too many elements), I finally</div><div>got my simulation result! I'd like to thank you for this great tool and toy!</div><div><br></div><div>Attached are the new geo file and the screen shot of the result with the settings.</div><div>Feel free to use it as an example for others to see how nice and powerful getdp is! </div><div>This is a serious tool for 3d magnetostatic simulation! </div><div>I haven't got any where with other free tools so far.</div><div><br>Best,</div><div>Yingjie<br><br><blockquote name="replyContent" class="ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0">-----Original Messages-----<br>
<b>From:</b><span id="rc_from">"蓝颖杰" <ylan@phbs.pku.edu.cn></span><br>
<b>Sent Time:</b><span id="rc_senttime">2017-02-13 19:05:18 (Monday)</span><br>
<b>To:</b> getdp@onelab.info<br>
<b>Cc:</b> <br>
<b>Subject:</b> bug: magnetostatics simulation gives wrong results<br><br><div>Hi team,</div><div><br></div><div>I made a model with one magnet and an iron frame wrapped around it. I expect most of the B lines should go inside the iron frame, but the simulation result seems as if the iron frame does not exist. Please see attached from the geo model. Open the geo model in gmsh first, then merge (gmsh menu: File >> Merge) in magnetostatics.pro in the template folder came with gmsh. You should be able to set the model interactively. Set a constant magnetization for the magnet of 900000 in z direction. Select the right materials for air, set frame with constant mu_r = 9000, and the boundary condition on "Inf" can be either way (may leave at its default value). Then click Run.Attached is the 1magnet.geo file I used.</div><div><br></div>Regards,<br><span><br><div style="line-height: 11.1999998092651px;"><div style="color: rgb(0, 0, 128); font-family: 微软雅黑; font-size: 14.6666669845581px; line-height: 14.6666669845581px;"><span style="line-height: 1.5; background-color: rgba(0, 0, 0, 0);">Yingjie</span></div></div></span></blockquote><br></div>