Functions for level set reinitialization and extension on OpenFPM grids based on closest point method. More...
#include "Grid/grid_dist_key.hpp"
#include "algoim_hocp.hpp"
Go to the source code of this file.
Functions | |
template<size_t phi_field, size_t cp_field, int poly_order, typename grid_type > | |
void | estimateClosestPoint (grid_type &gd, const double nb_gamma) |
Computes the closest point coordinate for each grid point within nb_gamma from interface. | |
template<size_t phi_field, size_t cp_field, size_t extend_field, size_t extend_field_temp, int poly_order, typename grid_type > | |
void | extendLSField (grid_type &gd, const double nb_gamma) |
Extends a (scalar) field to within nb_gamma from interface. The grid should have level set SDF and closest point field. | |
template<size_t phi_field, size_t cp_field, typename grid_type > | |
void | reinitializeLS (grid_type &gd, const double nb_gamma) |
Reinitializes the level set Phi field on a grid. The grid should have level set SDF and closest point field. | |
Variables | |
constexpr int | algoim_padding = 4 |
Functions for level set reinitialization and extension on OpenFPM grids based on closest point method.
Wrapping container to pass OpenFPM grid property values to Algoim library.
Depends on Algoim library for higher order closest point calculations and constructing stencil interpolating polynomials.
Definition in file closest_point.hpp.
void estimateClosestPoint | ( | grid_type & | gd, |
const double | nb_gamma | ||
) |
Computes the closest point coordinate for each grid point within nb_gamma from interface.
phi_field | Property id on grid for the level set SDF (input) |
cp_field | Property id on grid for storing closest point coordinates (output) |
poly_order | Type of stencil interpolation (Taylor poly orders between 2 to 5 and Tri/bicubic through -1 is supported) |
grid_type | Type of the grid container |
gd | The distributed grid containing at least level set SDF field and placeholder for closest point coordinates |
nb_gamma | The width of the narrow band within which closest point estimation is to be done |
Definition at line 209 of file closest_point.hpp.
void extendLSField | ( | grid_type & | gd, |
const double | nb_gamma | ||
) |
Extends a (scalar) field to within nb_gamma from interface. The grid should have level set SDF and closest point field.
phi_field | Property id on grid for the level set SDF |
cp_field | Property id on grid for storing closest point coordinates |
extend_field | Property id on grid where the field to be extended resides |
extend_field_temp | Property id on grid for storing temporary intermediate values |
poly_order | Type of stencil interpolation (Taylor poly orders between 2 to 5 and Tri/bicubic through -1 is supported) |
grid_type | Type of the grid container |
gd | The distributed grid containing atleast level set SDF field and closest point coordinates |
nb_gamma | The width of the narrow band within which extension is required (half band) |
Definition at line 309 of file closest_point.hpp.
void reinitializeLS | ( | grid_type & | gd, |
const double | nb_gamma | ||
) |
Reinitializes the level set Phi field on a grid. The grid should have level set SDF and closest point field.
phi_field | Property id on grid for the level set SDF |
cp_field | Property id on grid for storing closest point coordinates |
grid_type | Type of the grid container |
gd | The distributed grid containing atleast level set SDF field and closest point coordinates |
nb_gamma | The width of the narrow band for reinitialization |
Definition at line 382 of file closest_point.hpp.
|
constexpr |
Definition at line 24 of file closest_point.hpp.