Peano
Loading...
Searching...
No Matches
exahype2::ccz4::ahf::CartesianPointInterpolator Class Reference

Reusable Cartesian reconstruction context. More...

#include <interpolation.h>

Collaboration diagram for exahype2::ccz4::ahf::CartesianPointInterpolator:

Public Member Functions

 CartesianPointInterpolator (const GridData &gridData, const CartesianToSurfaceOptions &options={})
bool coversTarget (const GridCoordinate &target) const
 True when target lies inside the sampled Cartesian domain, widened by the configured domainRelativeTolerance.
GridCoordinate domainMinimum () const
 Corner-to-corner extent of the sampled domain, for diagnostics.
GridCoordinate domainMaximum () const
void interpolatePoints (std::span< const GridCoordinate > targets, std::vector< InterpolatedCartesianPoint > &output) const
 Reconstruct physical fields in exactly the order of targets.

Private Attributes

const GridData * _gridData
CartesianToSurfaceOptions _options
CartesianSpatialIndex _spatialIndex
GridCoordinate _domainMinimum {}
GridCoordinate _domainMaximum {}
double _domainDiagonal = 0.0

Detailed Description

Reusable Cartesian reconstruction context.

The GridData supplied to the constructor must outlive this object. Its immutable spatial index is built once and reused by every interpolatePoints() call, including calls made by successive nonlinear AH iterations.

Definition at line 236 of file interpolation.h.

Constructor & Destructor Documentation

◆ CartesianPointInterpolator()

exahype2::ccz4::ahf::CartesianPointInterpolator::CartesianPointInterpolator ( const GridData & gridData,
const CartesianToSurfaceOptions & options = {} )
explicit

Member Function Documentation

◆ coversTarget()

bool exahype2::ccz4::ahf::CartesianPointInterpolator::coversTarget ( const GridCoordinate & target) const

True when target lies inside the sampled Cartesian domain, widened by the configured domainRelativeTolerance.

This is the same test interpolatePoints applies per point, exposed so a caller can reject an unusable reference point or initial radius up front instead of discovering it through non-finite residuals.

◆ domainMaximum()

GridCoordinate exahype2::ccz4::ahf::CartesianPointInterpolator::domainMaximum ( ) const

Definition at line 254 of file interpolation.h.

References _domainMaximum.

◆ domainMinimum()

GridCoordinate exahype2::ccz4::ahf::CartesianPointInterpolator::domainMinimum ( ) const

Corner-to-corner extent of the sampled domain, for diagnostics.

Definition at line 253 of file interpolation.h.

References _domainMinimum.

◆ interpolatePoints()

void exahype2::ccz4::ahf::CartesianPointInterpolator::interpolatePoints ( std::span< const GridCoordinate > targets,
std::vector< InterpolatedCartesianPoint > & output ) const

Reconstruct physical fields in exactly the order of targets.

Field Documentation

◆ _domainDiagonal

double exahype2::ccz4::ahf::CartesianPointInterpolator::_domainDiagonal = 0.0
private

Definition at line 268 of file interpolation.h.

◆ _domainMaximum

GridCoordinate exahype2::ccz4::ahf::CartesianPointInterpolator::_domainMaximum {}
private

Definition at line 267 of file interpolation.h.

Referenced by domainMaximum().

◆ _domainMinimum

GridCoordinate exahype2::ccz4::ahf::CartesianPointInterpolator::_domainMinimum {}
private

Definition at line 266 of file interpolation.h.

Referenced by domainMinimum().

◆ _gridData

const GridData* exahype2::ccz4::ahf::CartesianPointInterpolator::_gridData
private

Definition at line 263 of file interpolation.h.

◆ _options

CartesianToSurfaceOptions exahype2::ccz4::ahf::CartesianPointInterpolator::_options
private

Definition at line 264 of file interpolation.h.

◆ _spatialIndex

CartesianSpatialIndex exahype2::ccz4::ahf::CartesianPointInterpolator::_spatialIndex
private

Definition at line 265 of file interpolation.h.


The documentation for this class was generated from the following file: