Relative position of particle
From MohidWiki
Revision as of 16:09, 21 March 2011 by Paulochambel (talk | contribs)
A fundamental in the "MOHID system" lagrangian approach is to know the relative position of the tracer in the hydrodynamic cell to speed up the interpolation procedure. This is quite easy for square cells however this not the case for cells of curvilinear grids . In this case was develop a subroutine that is able to compute the generic position of a tracer in a generic cell (see subroutine RelativePosition4VertPolygon in module functions). The algorithm used is described below.
if (b1==b2) then else endif
if (b3==b4) then else endif