Functions for level set reinitialization and extension on OpenFPM grids based on closest point method. More...
#include "algoim_hocp.hpp"
Go to the source code of this file.
Data Structures | |
struct | AlgoimWrapper< grid_type, grid_key_type, dim, wrapping_field > |
Functions | |
template<typename grid_type , typename grid_key_type , unsigned int poly_order, size_t phi_field, size_t cp_field> | |
void | estimateClosestPoint (grid_type &gd, const double nb_gamma) |
Computes the closest point coordinate for each grid point within nb_gamma from interface. More... | |
template<typename grid_type , typename grid_key_type , unsigned int poly_order, size_t phi_field, size_t cp_field, size_t extend_field, size_t extend_field_temp> | |
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. More... | |
template<typename grid_type , typename grid_key_type , unsigned int poly_order, size_t phi_field, size_t cp_field> | |
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. More... | |
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.
grid_type | Type of the grid container |
grid_key_type | Type of the key for the grid container |
dim | Dimension of the space |
poly_order | Order of the polynomial for stencil interpolation (orders between 2 to 5 is supported) |
phi_field | Property id on grid for the level set SDF |
cp_field | Property id on grid for storing closest point coordinates |
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 72 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.
grid_type | Type of the grid container |
grid_key_type | Type of the key for the grid container |
dim | Dimension of the space |
poly_order | Order of the polynomial for stencil interpolation |
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 |
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 |
Definition at line 164 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.
grid_type | Type of the grid container |
grid_key_type | Type of the key for the grid container |
dim | Dimension of the space |
poly_order | Order of the polynomial for stencil interpolation |
phi_field | Property id on grid for the level set SDF |
cp_field | Property id on grid for storing closest point coordinates |
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 235 of file closest_point.hpp.