Page 1 of 1
Which cell contains a specified point
Posted: Fri Aug 10, 2012 6:12 am
by cyrillic
Hi,
Saturne's subroutine findpt finds the nearest cell centre to a given point, but this cell does not necessarily contain the point. Is there a subroutine that returns the cell that contains the point?
Regards
Re: Which cell contains a specified point
Posted: Tue Aug 14, 2012 6:44 pm
by Yvan Fournier
Hello,
Short answer: no
Long answer: the ple_locator / fvm_point_location insfrastructure which is the part of Code_Saturne used for Rotor/Stator, RANS/LES, or Code_Saturne/SYRTHES4 coupling does this, for a cloud of points rather than a single point, and I still hope to update the probe infrastructure (currently based on findpt) to this before mid-September (essentially replacing findpt with a mechanism finding the matching cell and indicating which points are in no cell), but if you need this now, you need to write a wrapper around those point location functions (written in C), similar to what you may find if you look into the details of the Code_Saturne/Code_Saturne coupling routines...
Regards,
Yvan