32 #include "MeshKernel/Definitions.hpp"
57 return m_weights[node][connectedNode];
66 return m_rhs[node][connectedNode];
73 bool AspectRatio(
const Mesh2D& mesh);
76 std::vector<double> m_aspectRatios;
77 std::vector<std::vector<double>> m_weights;
78 std::vector<std::vector<double>> m_rhs;
double GetWeight(UInt node, UInt connectedNode) const
Gets the weight for a certain node and connected node.
Definition: Orthogonalizer.hpp:55
A class derived from Mesh, which describes unstructures 2d meshes.
Definition: Mesh2D.hpp:55
Orthogonalizion (optimize the aspect ratios) and mesh smoothing (optimize internal face angles or are...
Definition: Orthogonalizer.hpp:41
Orthogonalizer(Mesh2D &mesh)
Constructor.
Contains the logic of the C++ static library.
Definition: AveragingInterpolation.hpp:36
std::uint32_t UInt
Integer type used when indexing mesh graph entities.
Definition: Definitions.hpp:38
double GetRightHandSide(UInt node, UInt connectedNode) const
Gets the weight for a certain node and connected node.
Definition: Orthogonalizer.hpp:64
void Compute()
Computes the smoother weights and the right hans side.