preCICE v3.1.1
Loading...
Searching...
No Matches
NearestProjectionMapping.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "logging/Logger.hpp"
6
7namespace precice {
8namespace mapping {
9
15public:
17 NearestProjectionMapping(Constraint constraint, int dimensions);
18
20 void computeMapping() final override;
21
23 std::string getName() const final override;
24
25private:
26 logging::Logger _log{"mapping::NearestNeighborProjectionMapping"};
27};
28
29} // namespace mapping
30} // namespace precice
This class provides a lightweight logger.
Definition Logger.hpp:16
Base class for interpolation based mappings, where mapping is done using a geometry-based linear comb...
Constraint
Specifies additional constraints for a mapping.
Definition Mapping.hpp:29
Mapping using orthogonal projection to nearest triangle/edge/vertex and linear interpolation from pro...
std::string getName() const final override
name of the np mapping
void computeMapping() final override
Computes the projections and interpolation relations.
NearestProjectionMapping(Constraint constraint, int dimensions)
Constructor, taking mapping constraint.
Main namespace of the precice library.