<div dir="ltr"><div>This is awesome!</div><div>2 Quick questions : </div><div> 1. When I use probe to get value @ a point, what interpolation kernel/ method is gmsh using?</div><div> [I wanted to use an interpolation scheme such that if I specify a point outside the mesh (which can happen when I spec a regular grid), I don't want gmsh to extrapolate]</div><div><br></div><div> 2. I took a quick look @ the format of plugin(cutgrid) : {<a href="http://www.manpagez.com/info/gmsh/gmsh-2.4.0/gmsh_53.php">http://www.manpagez.com/info/gmsh/gmsh-2.4.0/gmsh_53.php</a> }</div><div> Once I specify an origin, u & v vectors (for two axes), and number of points "nu" and "nv" ;</div><div> are "nu" and "nv" points sampled on both sides of the origin, or along +u and +v? </div><div> </div><div>Thank you!</div><div>Mayank </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 28, 2017 at 7:39 AM, Christophe Geuzaine <span dir="ltr"><<a href="mailto:cgeuzaine@uliege.be" target="_blank">cgeuzaine@uliege.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
> On 27 Nov 2017, at 23:41, Mayank Jog <<a href="mailto:mayankjog@gmail.com">mayankjog@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I've started using gmsh recently, and I wonder if there is a functionality to interpolate data.<br>
><br>
> I have a mesh, and a value associated with each element of the mesh (electric potential)*.<br>
> I want to use this mesh to calculate the value of the electric potential on a uniform cartesian grid specified by points (= (x, y, z) ; known in millimeters; = same unit as in $nodes)<br>
<br>
</span>Plugin(Probe) for a single evaluation; or Plugin(CutGrid) and Plugin(CutBox) for multiple evaluations on regular grids.<br>
<br>
For example:<br>
<br>
Merge "data.msh";<br>
Plugin(Probe).X = 0.3;<br>
Plugin(Probe).Y = 0.3;<br>
Plugin(Probe).Z = 0.3;<br>
Plugin(Probe).Run;<br>
<span><br>
<br>
><br>
> I'm guessing some sort of interpolation is needed...how would I go about it?<br>
><br>
> I tried using MATLAB functions to interpolate, but they all use triangulation techniques which work for convex volumes. My volume is non-convex (it has a U-shape)...how would I do the interpolation? Does gmsh have a function to interpolate?<br>
><br>
> Thank you,<br>
> Mayank<br>
><br>
> *I have the original mesh (containing $nodes, $elements, and $elementdata) in .msh format.<br>
</span>> ______________________________<wbr>_________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank" rel="noreferrer">http://onelab.info/mailman/<wbr>listinfo/gmsh</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science<br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank" rel="noreferrer">http://www.montefiore.ulg.ac.<wbr>be/~geuzaine</a><br>
<br>
Free software: <a href="http://gmsh.info" target="_blank" rel="noreferrer">http://gmsh.info</a> | <a href="http://getdp.info" target="_blank" rel="noreferrer">http://getdp.info</a> | <a href="http://onelab.info" target="_blank" rel="noreferrer">http://onelab.info</a><br>
<br>
</font></span></blockquote></div><br></div>