Difference between revisions of "Relative position of a particle in a cell"
From MohidWiki
Paulochambel (talk | contribs) (New page: 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 ...) |
|
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 17:19, 4 May 2011
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) thenelse
![]()
endif
if (b3==b4) thenelse
![]()
endif