32#include "MeshKernel/Definitions.hpp"
47 const std::vector<std::vector<UInt>>& nodesNodes,
48 const std::vector<MeshNodeType>& nodeTypes);
59 return m_weights[node][connectedNode];
68 return m_rhs[node][connectedNode];
75 bool AspectRatio(
const Mesh2D& mesh);
78 const std::vector<std::vector<UInt>>& m_nodesNodes;
79 const std::vector<MeshNodeType>& m_nodeType;
80 std::vector<double> m_aspectRatios;
81 std::vector<std::vector<double>> m_weights;
82 std::vector<std::vector<double>> m_rhs;
A class derived from Mesh, which describes unstructures 2d meshes.
Definition Mesh2D.hpp:58
Orthogonalizion (optimize the aspect ratios) and mesh smoothing (optimize internal face angles or are...
Definition Orthogonalizer.hpp:42
void Compute()
Computes the smoother weights and the right hand side.
double GetRightHandSide(UInt node, UInt connectedNode) const
Gets the weight for a certain node and connected node.
Definition Orthogonalizer.hpp:66
Orthogonalizer(const Mesh2D &mesh, const std::vector< std::vector< UInt > > &nodesNodes, const std::vector< MeshNodeType > &nodeTypes)
Constructor.
double GetWeight(UInt node, UInt connectedNode) const
Gets the weight for a certain node and connected node.
Definition Orthogonalizer.hpp:57
Contains the logic of the C++ static library.
Definition AveragingInterpolation.hpp:37
std::uint32_t UInt
Integer type used when indexing mesh graph entities.
Definition Definitions.hpp:39