Main class for interpolation Particle to mest p2m and Mesh to particle m2p.
More...
#include <interpolation.hpp>
|
| | interpolate (vector &vd, grid &gd) |
| | construct an interpolation object between a grid and a vector More...
|
| |
| template<unsigned int prp_v, unsigned int prp_g> |
| void | p2m (vector &vd, grid &gd) |
| | Interpolate particles to mesh. More...
|
| |
| template<unsigned int prp_g, unsigned int prp_v> |
| void | m2p (grid &gd, vector &vd) |
| | Interpolate mesh to particle. More...
|
| |
| template<unsigned int prp_v, unsigned int prp_g> |
| void | p2m (vector &vd, grid &gd, const vect_dist_key_dx &p) |
| | Interpolate particles to mesh. More...
|
| |
| template<unsigned int prp_g, unsigned int prp_v> |
| void | m2p (grid &gd, vector &vd, const vect_dist_key_dx &p) |
| | Interpolate mesh to particle. More...
|
| |
| int | getSub (Point< vector::dims, typename vector::stype > &p) |
| | Return the sub-domain of the particles. More...
|
| |
|
|
typedef vector::stype | arr_type |
| | Type of the calculations.
|
| |
|
|
CellList< vector::dims, typename vector::stype, Mem_fast<>, shift< vector::dims, typename vector::stype > > | geo_cell |
| | Cell list used to convert particles position to sub-domain.
|
| |
|
vector & | vd |
| | particles
|
| |
|
grid & | gd |
| | grid
|
| |
|
openfpm::vector< agg_arr< openfpm::math::pow(kernel::np, vector::dims)> > | offsets |
| | the offset for each sub-sub-domain
|
| |
|
size_t | sz [vector::dims] |
| | kernel size
|
| |
|
vector::stype | dx [vector::dims] |
| | grid spacing
|
| |
|
Box< vector::dims, typename vector::stype > | domain |
| | Simulation domain.
|
| |
template<typename vector, typename grid, typename kernel>
class interpolate< vector, grid, kernel >
Main class for interpolation Particle to mest p2m and Mesh to particle m2p.
This function is the main class to interpolate from particle to mesh and mesh to particle
- Template Parameters
-
| vector | type of vector for interpolation |
| grid | type of grid for interpolation |
| interpolation | kernel |
Definition at line 503 of file interpolation.hpp.
◆ interpolate()
template<typename vector , typename grid , typename kernel >
construct an interpolation object between a grid and a vector
When possible and easy to do we suggest to retain the object
- Parameters
-
| vd | interpolation vector |
| gd | interpolation grid |
Definition at line 600 of file interpolation.hpp.
◆ calculate_the_offsets()
template<typename vector , typename grid , typename kernel >
It calculate the interpolation stencil offsets.
- Parameters
-
| offsets | array where to store the linearized offset of the kernel stencil for each local-grid (sub-domain) |
| sz | kernel stencil points in each direction |
Definition at line 562 of file interpolation.hpp.
◆ getSub()
template<typename vector , typename grid , typename kernel >
| int interpolate< vector, grid, kernel >::getSub |
( |
Point< vector::dims, typename vector::stype > & |
p | ) |
|
|
inline |
Return the sub-domain of the particles.
- Parameters
-
Definition at line 831 of file interpolation.hpp.
◆ m2p() [1/2]
template<typename vector , typename grid , typename kernel >
template<unsigned int prp_g, unsigned int prp_v>
Interpolate mesh to particle.
Most of the time the particle set and the mesh are the same as the one used in the constructor. They also can be different as soon as they have the same decomposition
- Parameters
-
| gd | grid or mesh |
| vd | particle set |
Definition at line 708 of file interpolation.hpp.
◆ m2p() [2/2]
template<typename vector , typename grid , typename kernel >
template<unsigned int prp_g, unsigned int prp_v>
Interpolate mesh to particle.
Most of the time the particle set and the mesh are the same as the one used in the constructor. They also can be different as soon as they have the same decomposition
- Parameters
-
| gd | grid or mesh |
| vd | particle set |
| p | particle |
Definition at line 797 of file interpolation.hpp.
◆ p2m() [1/2]
template<typename vector , typename grid , typename kernel >
template<unsigned int prp_v, unsigned int prp_g>
Interpolate particles to mesh.
Most of the time the particle set and the mesh are the same as the one used in the constructor. They also can be different as soon as they have the same decomposition
- Parameters
-
| gd | grid or mesh |
| vd | particle set |
Definition at line 662 of file interpolation.hpp.
◆ p2m() [2/2]
template<typename vector , typename grid , typename kernel >
template<unsigned int prp_v, unsigned int prp_g>
Interpolate particles to mesh.
Most of the time the particle set and the mesh are the same as the one used in the constructor. They also can be different as soon as they have the same decomposition
- Parameters
-
| gd | grid or mesh |
| vd | particle set |
| p | particle |
Definition at line 758 of file interpolation.hpp.
The documentation for this class was generated from the following file: