<jupyter_start><jupyter_text>Inhaltsverzeichnis<jupyter_code>import pygimli as pg
import matplotlib.pyplot as plt
import pygimli.meshtools as mt
import os
from os import system
import numpy as np
def callTriangle(filename,
                 quality=33, 
                 triangle='triangle',
                 verbose=True):
    
    filebody = filename.replace('.poly', '')

    syscal = triangle + ' -pq' + str(quality)
    syscal += 'Aa ' + filebody + '.poly'
 
    if verbose:
        print(syscal)

    system(syscal)
world = mt.createWorld(start=[-1e5, -1e5], 
                       end=[1e5, 1e5], 
                       layers=[0], 
                       area=[1e7, 0],
                       marker=[1, 2],
                       worldMarker=False)
block = mt.createRectangle(start=[-0.5e3, 0.25e3],
                           end=[0.5e3, 3.25e3],
                           marker=3,  
                           markerPosition=[0, 1e3], 
                           area=1e3, boundaryMarker=10)
geom = world + block
ax, _ = pg.show(geom, 
                showNodes=False, 
                boundaryMarker=False)
ax.set_ylim(ax.get_ylim()[::-1]);
mt.exportPLC(geom,
             '../meshes/commemi2d1.poly', 
             float_format='.8e')
callTriangle('../meshes/commemi2d1.poly', 
             quality=34.2,
             verbose=False)
mesh = mt.createMesh(geom, quality=34.2)
ax, _ = pg.show(mesh)
ax.set_ylim(ax.get_ylim()[::-1]);<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13016949152542373, 'fraction_numerical': 0.03457627118644068, 'mean_word_length': 1.7082568807339449, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '29061', 'license': 'MIT', 'n_tokens_mistral': 514, 'n_tokens_neox': 478, 'n_words': 82, 'path': 'Notebooks/COMMEMI_2D_1.ipynb', 'repo_name': 'ruboerner/FEMT2D', 'size': '1475'}