Stencil jumping

Stencil jumping

Stencil jumping, at times called stencil walking, is an algorithm to locate the grid element enclosing a given point for any structured mesh. In simple words, given a point and a structured mesh, this algorithm will help locate the grid element that will enclose the given point.

This algorithm finds extensive use in Computational Fluid Dynamics (CFD) in terms of holecutting and interpolation when two meshes lie one inside the other. The other variations of the problem would be something like this: Given a place, at which latitude and longitude does it lie? The brute force algorithm would find the distance of the point from every mesh point and see which is smallest. Another approach would be to use a binary search algorithm which would yield a result comparable in speed to the stencil jumping algorithm. A combination of both the binary search and the stencil jumping algorithm will yield an optimum result in the minimum possible time.

The principle

Consider one grid element of a 2 dimensional mesh as shown, for simplicity and consider a point O inside.The vertices of the grid element are denoted by A, B, C and D and the vectors AB, BC, CD, DA, OA, OB, OC and OD are represented.The cross product of OA and AB will yield a vector perpendicular to the plane coming out of the screen. We say that the magnitude of the cross product is positive. It will be observed that the cross products of OB and BC, OC and CD; and OD and DA are all positive.

This is not the case when the point is outside.Here we see that not all the cross products are positive. This is the major testing criterion in the algorithm.

How does it move forward?

The algorithm needs a guess grid element to start off. The grid element can be found by the location of one point say A. The other points can be automatically located by getting the subsequent points. The required cross products are then found in the order
# OA × AB
# OB × BC
# OC × CD
# OD × DA

Each of these cross products are checked one by one (in the order shown) on which becomes negative first. If OA × AB becomes negative first, the next guess should be one step ahead along DA. If OB × BC is negative first, move along AB by one step to find the next guess and so on.

The algorithm will converge at the exact grid element where all the cross products are positive.

ee also

* Five-point stencil

References

* [http://www.cfd-online.com/Wiki/Overset_grids pegasus software]
*
*cite journal | author = E.G. Paterson, |coauthors=R.V. Wilson, and F. Stern | year = 1998 | month = May | title = CFDSHIP-IOWA and Steady Flow RANS Simulation of DTMB Model 5415 | journal = 1st Symposium on Marine Applications of CFD | pages = 5 | url = http://www.iihr.uiowa.edu/~cfdship/documents/MarineCFD.PDF | format = PDF | accessdate = 2007-05-31
*cite journal | author = Nathan C. Prewitt |coauthor= Davy M. Belk, Wei Shyy | year = 2000| title = Parallel computing of overset grids for aerodynamic problems with moving objects | journal = Progress in Aerospace Sciences | volume = 36 | pages = 117–172 | id = PII: S0376 - 0421 (99) 00013 - 5 | url = http://aemes.mae.ufl.edu/~cfdweb/cgi-bin/PDF_bank/pub.00150.pdf | format = PDF | accessdate = 2007-05-31 | quote = This algorithm is commonly called 'stencil jumping'.| doi = 10.1016/S0376-0421(99)00013-5


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Stencil codes — are computer codes that update array elements according to some fixed pattern, called stencils,Sloot, Peter M.A. et al. (May 28, 2002) [http://books.google.com/books?id=qVcLw1UAFUsC pg=PA843 dq=stencil+array sig=g3gYXncOThX56TUBfHE7hnlSxJg#PPA843 …   Wikipedia

  • Five-point stencil — In numerical analysis, given a square grid in one or two dimensions, the five point stencil of a point in the grid is made up of the point itself together with its four neighbors . It is used to write finite difference approximations to… …   Wikipedia

  • List of mathematics articles (S) — NOTOC S S duality S matrix S plane S transform S unit S.O.S. Mathematics SA subgroup Saccheri quadrilateral Sacks spiral Sacred geometry Saddle node bifurcation Saddle point Saddle surface Sadleirian Professor of Pure Mathematics Safe prime Safe… …   Wikipedia

  • Gamestudio — 3D GameStudio, often known as Gamestudio or 3DGS for short, is a 3D computer game development system which allows users to create 3D games and other virtual reality applications, and publish them royalty free. It comes with a model/terrain editor …   Wikipedia

  • Glossary of cue sports terms — The following is a glossary of traditional English language terms used in the three overarching cue sports disciplines: carom (or carambole) billiards referring to the various carom games played on a billiard table without pockets; pool (pocket… …   Wikipedia

  • Andy Warhol — For the song by David Bowie, see Andy Warhol (song). Andy Warhol …   Wikipedia

  • List of toys — This is not intended to be a complete list. For a list of all toys on which there are currently articles, see . = *Blocks *Construx *Erector Set *Gami, Plastic Origami *Jovo *K NEX *Konstruk Tubes *Lego *Lincoln Logs *Märklin *Meccano *Mega Bloks …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”