![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Interpolate field value at physical coordinates (nearest-neighbor)
Interpolate field value at physical coordinates (nearest-neighbor)Returns the field value at the grid point nearest to the given physical coordinates. This uses simple rounding (not linear or higher-order). This is the preferred way to interpolate - free function instead of member.
Design Philosophy: Free functions enable extension via ADL and align with OpenPFC's "laboratory, not fortress" philosophy. Users can provide custom interpolation schemes without modifying DiscreteField.
| T | Field value type (double, complex, etc.) |
| D | Dimensionality (1, 2, or 3) |
| field | The discrete field to interpolate |
| coordinates | Physical coordinates [x, y, z] to interpolate at |
usage