SHiP Field Service
Framework-agnostic C++20 library exposing SHiP magnetic field maps.
Loading...
Searching...
No Matches
CovfieFieldSource.cpp File Reference
#include "SHiP/FieldService/CovfieFieldSource.h"
#include "SHiP/FieldService/FieldMap.h"
#include "detail/covfie_chains.h"
#include <array>
#include <cmath>
#include <cstddef>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <limits>
#include <map>
#include <memory>
#include <mutex>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for CovfieFieldSource.cpp:

Namespaces

namespace  SHiP
 

Functions

std::shared_ptr< IFieldEvaluator > SHiP::makeFieldEvaluator (FieldMap const &map)
 Build a thread-safe evaluator for map: trilinear interpolation, clamped to the boundary value outside the grid, with map.symmetry applied.
 
std::shared_ptr< IFieldEvaluator > SHiP::loadCovfieField (std::string const &cvf_path)
 Build an IFieldEvaluator backed by a covfie .cvf file (CPU backend, trilinear interpolation, clamped at the boundary).