<jupyter_start><jupyter_text>Gmesh experiementsScript to experiment with making a geometry with boundary conidtions, using gmesh<jupyter_code>import matplotlib.pyplot as plt
import pygimli.meshtools as mt
import numpy as np
import gmsh as gm
import pygimli as pg

import subprocess
from pygimli.meshtools import readGmsh


filename = pg.getExampleFile("gmsh/2d_tutorial.geo")

try:
    subprocess.call(
        ["gmsh", "-format", "msh2", "-2", "-o", "mesh.msh", filename])
    gmsh = True
except OSError:
    print("Gmsh needs to be installed for this example.")
    gmsh = False

fig, ax = plt.subplots()
if gmsh:
    mesh = readGmsh("mesh.msh", verbose=True)
    pg.show(mesh, ax=ax, markers=True, clipBoundaryMarkers=True)
    ax.set_xlim(-3, 53)
    ax.set_ylim(-53, 3)
else:
    ax.set_title("Gmsh needs to be installed for this example")
pg.wait()<jupyter_output>Gmsh needs to be installed for this example.
{'fraction_non_alphanumeric': 0.10831509846827134, 'fraction_numerical': 0.009846827133479213, 'mean_word_length': 4.319767441860465, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '341749', 'license': 'Apache-2.0', 'n_tokens_mistral': 346, 'n_tokens_neox': 337, 'n_words': 96, 'path': 'gmsh_geom.ipynb', 'repo_name': 'soldfield/heatflow', 'size': '914'}