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
Which cell contains a specified point
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Which cell contains a specified point
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
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