OISEAU
A modern DGTD framework
Loading...
Searching...
No Matches
gmsh.hpp
1// Copyright (C) 2025 Tiago V. L. Amorim (@tiagovla)
2//
3// This file is part of oiseau (https://github.com/tiagovla/oiseau)
4//
5// SPDX-License-Identifier: GPL-3.0-or-later
6
7#pragma once
8
9#include <cstddef>
10#include <filesystem>
11#include <istream>
12#include <string>
13
14#include "oiseau/mesh/cell.hpp"
15#include "oiseau/mesh/mesh.hpp"
16
17namespace oiseau::io::detail {
18oiseau::mesh::CellType gmsh_celltype_to_oiseau_celltype(const std::size_t s);
19}
20
21namespace oiseau::io {
22oiseau::mesh::Mesh gmsh_read_from_path(const std::filesystem::path& path);
23oiseau::mesh::Mesh gmsh_read_from_string(const std::string&);
24oiseau::mesh::Mesh gmsh_read_from_stream(std::istream& f_handler);
25void gmsh_write(const std::string& filename, const oiseau::mesh::Mesh& mesh);
26} // namespace oiseau::io