Peano
Loading...
Searching...
No Matches
interpolation.h File Reference
#include "ahf-data.h"
#include <limits>
#include <memory>
#include <span>
#include <vector>
Include dependency graph for interpolation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  exahype2::ccz4::ahf::AnalyticCoordinateGeometry
class  exahype2::ccz4::ahf::CartesianSpatialIndex
 Immutable k-d tree; concurrent nearest-neighbour queries are read-only. More...
struct  exahype2::ccz4::ahf::LinearPolynomialFit
struct  exahype2::ccz4::ahf::PolynomialExponent
struct  exahype2::ccz4::ahf::PolynomialBasis
struct  exahype2::ccz4::ahf::LinearReconstructionOptions
struct  exahype2::ccz4::ahf::CompactLinearFit
struct  exahype2::ccz4::ahf::CartesianToSurfaceOptions
struct  exahype2::ccz4::ahf::InterpolatedCartesianPoint
 Physical fields reconstructed at one arbitrary Cartesian target. More...
class  exahype2::ccz4::ahf::CartesianPointInterpolator
 Reusable Cartesian reconstruction context. More...

Namespaces

namespace  exahype2
 This file is part of the ExaHyPE 2 project within Peano 4.
namespace  exahype2::ccz4
namespace  exahype2::ccz4::ahf

Enumerations

enum class  exahype2::ccz4::ahf::LinearReconstructionMethod { exahype2::ccz4::ahf::Unweighted , exahype2::ccz4::ahf::WeightedMovingLeastSquares , exahype2::ccz4::ahf::RadiusWeightedWendlandC2 }

Functions

GridCoordinate exahype2::ccz4::ahf::SurfacePointToCartesian (const AHGuessPoint &surfacePoint, const ReferencePoint &referencePoint)
 Convert one AH point (r, longitude rho, latitude sigma) into its global Cartesian target coordinate relative to referencePoint.
Tensor3 exahype2::ccz4::ahf::ComputeRadialProjectionTensor (const GridCoordinate &relativeCoordinate)
 Compute T_ij = r^2 delta_ij - x_i x_j from relative coordinates.
AnalyticCoordinateGeometry exahype2::ccz4::ahf::ComputeAnalyticCoordinateGeometry (const GridCoordinate &globalCoordinate, const ReferencePoint &referencePoint)
 Compute the appendix's analytic rho/sigma coordinate geometry.
std::vector< std::size_t > exahype2::ccz4::ahf::FindNearestGridCellsBruteForce (const GridData &gridData, const GridCoordinate &target, std::size_t neighbourCount)
 Return the indices of the neighbourCount nearest Cartesian cell centres.
std::vector< std::size_t > exahype2::ccz4::ahf::FindNearestGridCells (const CartesianSpatialIndex &spatialIndex, const GridCoordinate &target, std::size_t neighbourCount)
 Query a previously built index without rebuilding it.
std::vector< std::size_t > exahype2::ccz4::ahf::FindGridCellsWithinRadius (const CartesianSpatialIndex &spatialIndex, const GridCoordinate &target, double radius)
 Query every indexed cell strictly inside radius, sorted by distance/index.
std::vector< std::size_t > exahype2::ccz4::ahf::FindNearestGridCells (const GridData &gridData, const GridCoordinate &target, std::size_t neighbourCount)
 Compatibility interface for one-off queries.
std::size_t exahype2::ccz4::ahf::PolynomialBasisSize (std::size_t degree)
PolynomialBasis exahype2::ccz4::ahf::GeneratePolynomialBasis (std::size_t degree)
double exahype2::ccz4::ahf::LinearReconstructionWeight (double distance, double lengthScale, const LinearReconstructionOptions &options)
 Evaluate the configured unweighted, Gaussian, or compact-support row weight.
double exahype2::ccz4::ahf::WendlandC2Weight (double q)
 Wendland C2 compact kernel: (1-q)^4(4q+1) for 0<=q<1, else zero.
LinearPolynomialFit exahype2::ccz4::ahf::FitLinearPolynomial (std::span< const GridCoordinate > sampleCoordinates, std::span< const double > sampleValues, const GridCoordinate &target, const LinearReconstructionOptions &options={})
 Scalar total-degree polynomial least-squares reconstruction using a column-pivoted QR solve.
CompactLinearFit exahype2::ccz4::ahf::FitCompactLinearPolynomial (const GridData &gridData, std::span< const std::size_t > neighbourIndices, const GridCoordinate &target, const LinearReconstructionOptions &options={})
 Reconstruct all fourteen compact fields with one shared polynomial design matrix and one column-pivoted QR factorisation.
void exahype2::ccz4::ahf::InterpolateCartesianToSurface (const CartesianPointInterpolator &interpolator, const AHGuess &ahGuess, const ReferencePoint &referencePoint, InterpolatedSurface &interpolatedSurface)
 Surface adapter using an already-built, persistent Cartesian interpolator.
void exahype2::ccz4::ahf::InterpolateCartesianToSurface (const GridData &gridData, const AHGuess &ahGuess, const ReferencePoint &referencePoint, InterpolatedSurface &interpolatedSurface, const CartesianToSurfaceOptions &options={})
 Interpolate compact Cartesian fields directly to every AH surface point.
void exahype2::ccz4::ahf::InterpolateToSurfaceNearestNeighbour (const GridData &gridData, const AHGuess &ahGuess, const ReferencePoint &referencePoint, InterpolatedSurface &interpolatedSurface)
 Sample each AH surface point from its nearest Cartesian cell centre and reconstruct the physical spatial metric and extrinsic curvature.
void exahype2::ccz4::ahf::InterpolateFromCartesianToShell (const GridData &gridData, const AHGuess &ahGuess, const ReferencePoint &referencePoint, InterpolatedShell &interpolatedShell, std::span< const AngularSample > angularSamples={})
 Interpolate the Cartesian grid data to a shell-like subdomain around the current AH guess.
void exahype2::ccz4::ahf::InterpolateFromShellToSurface (const InterpolatedShell &interpolatedShell, const AHGuess &ahGuess, const ReferencePoint &referencePoint, InterpolatedSurface &interpolatedSurface)
 Interpolate the shell data to the apparent-horizon surface defined by the current AH guess.