![]() |
GPUE
v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
|
Functions | |
| double | psi2 (double2 in) |
| Calculates $|z|^2$, where $z {C}$. More... | |
| double | minValue (double *grid, int len) |
| Returns the minimum value in the array. More... | |
| double | maxValue (double *grid, int len) |
| Returns the maximum value in the array. More... | |
| double | sumAvg (double *in, int len) |
| Computes average of the array. More... | |
| double | fInvSqRt (double in) |
| id magic hackery. Double precision fast inverse square-root. Useless, but necessary to have. More... | |
| void | coordSwap (struct Vtx::Vortex *vCoords, int src, int dest) |
| Swap the position of vortices. More... | |
| double | complexMag (double2 in) |
| Calculates $|z|$, where $z {C}$. More... | |
| double | complexMag2 (double2 in) |
| Calculates $|z|^2$, where $z {C}$. More... | |
| double2 | complexMult (double2 in1, double2 in2) |
| Calculates complex multiplication of input parameters. More... | |
| double2 | complexScale (double2 comp, double scale) |
| Calculates real * complex. More... | |
| double2 | conj (double2 c) |
| Calculates complex conjugate. More... | |
| double2 | complexDiv (double2 num, double2 den) |
| Calculates complex division. More... | |
| double2 Minions::complexDiv | ( | double2 | num, |
| double2 | den | ||
| ) |
Calculates complex division.
| num | Complex numerator |
| num | Complex denominator |
| double Minions::complexMag | ( | double2 | in | ) |
Calculates $|z|$, where $z {C}$.
More complex helper functions
| in | Complex number |
| double Minions::complexMag2 | ( | double2 | in | ) |
Calculates $|z|^2$, where $z {C}$.
| in | Complex number |
| double2 Minions::complexMult | ( | double2 | in1, |
| double2 | in2 | ||
| ) |
Calculates complex multiplication of input parameters.
| in1 | Complex number 1 |
| in1 | Complex number 2 |
| double2 Minions::complexScale | ( | double2 | comp, |
| double | scale | ||
| ) |
Calculates real * complex.
| comp | Complex number multiplicand |
| scale | Mulitplier |
| double2 Minions::conj | ( | double2 | c | ) |
Calculates complex conjugate.
| c | Complex number |
| void Minions::coordSwap | ( | struct Vtx::Vortex * | vCoords, |
| int | src, | ||
| int | dest | ||
| ) |
Swap the position of vortices.
| vCoords | Pointer to vortex array |
| src | Source vortex to swap |
| dest | Destination for vortex swap |
| double Minions::fInvSqRt | ( | double | in | ) |
id magic hackery. Double precision fast inverse square-root. Useless, but necessary to have.
id magic hackery
| in | Value to calculate fast inverse square root |
| double Minions::maxValue | ( | double * | grid, |
| int | len | ||
| ) |
Returns the maximum value in the array.
| grid | Array of values |
| len | Length of grid |
| double Minions::minValue | ( | double * | grid, |
| int | len | ||
| ) |
Returns the minimum value in the array.
| grid | Array of values |
| len | Length of grid |
| double Minions::psi2 | ( | double2 | in | ) |
Calculates $|z|^2$, where $z {C}$.
| in | Complex number |
| double Minions::sumAvg | ( | double * | in, |
| int | len | ||
| ) |
Computes average of the array.
| in | Array of values |
| len | Length of array |