32 #include "MeshKernel/Definitions.hpp"
33 #include "MeshKernel/Mesh2D.hpp"
34 #include "MeshKernel/Point.hpp"
48 static std::unique_ptr<Mesh2D>
Compute(
const UInt numLongitudeNodes,
const UInt numLatitudeNodes,
const Projection projection);
52 enum class GridExpansionDirection
59 static double DeltaLatitude(
const double currentLatitude,
const double longitudeDiscretization);
62 static UInt NodeIndexFromPosition(
const Mesh& mesh,
const Point& position);
65 static void AddFace(
Mesh& mesh,
const std::array<Point, 5>& points,
const GridExpansionDirection growingDirection,
const UInt numNodes);
67 static constexpr
UInt numIterations = 5;
68 static constexpr
double toleranceDeltaLatitude = 1.0e-14;
Projection
Enumerator describing the supported projections.
Definition: Definitions.hpp:41
A struct describing a point in a two-dimensional space.
Definition: Point.hpp:40
Construct a global grid in spherical coordinates, as a base for later mesh refinements.
Definition: Mesh2DGenerateGlobal.hpp:39
static std::unique_ptr< Mesh2D > Compute(const UInt numLongitudeNodes, const UInt numLatitudeNodes, const Projection projection)
Compute the global mesh with a given number of points along the longitude and latitude directions.
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
A class describing an unstructured mesh. This class contains the shared functionality between 1d or 2...
Definition: Mesh.hpp:98