Compute particle's weights needed for interpolation.
More...
While for Cartesian coordinates we follow the standard implementation, in POLAR and SPHERICAL coordinates,
- Authors
- A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
B. Vaidya (bvaid.nosp@m.ya@u.nosp@m.nito..nosp@m.it)
References
- "A Particle Module for the PLUTO Code. III. Dust"
Mignone et al, ApJS (2019) 233:38 [MFV2019]
- Date
- Apr 08, 2021
◆ Particles_CheckWeights()
void Particles_CheckWeights |
( |
double |
xp, |
|
|
double * |
w1, |
|
|
double |
xL, |
|
|
double |
xR, |
|
|
int |
dir |
|
) |
| |
|
static |
Check consistency of weights by numerical integration.
- Parameters
-
[in] | xp | particle coordinate |
[in] | *w1 | array of weights |
[in] | xL | zone left boundary |
[in] | xR | zone right boundary |
◆ Particles_GetWeights()
void Particles_GetWeights |
( |
Particle * |
p, |
|
|
int * |
cell, |
|
|
double *** |
w, |
|
|
Grid * |
grid |
|
) |
| |
Compute particle weights such that
- Parameters
-
[in] | p | pointer to particle structure |
[out] | cell | a 3-element array containing the indices (i,j,k) of the grid cell that is closer and to the left of the particle. |
[out] | w | a 3x3x3 array containing the weights |
[in] | grid | a pointer to an array of Grid structures |