Hi all,
I'm having an issue when I try to generate a mesh in Python using an argus file that I generated. I keep getting an error message that says "SmoothMetric error message". The piece of code I'm writing is below, and the error message does not appear when I comment the line "md = bamg(md, 'hmax', 40000, 'hmin', 5000)". For some reason I don't get this error when I'm using Matlab, and the mesh is created with no problem. I'm sending attached the argus file I'm using (PS: I already tried smoothing the contour in QGIS as I thought that the issue could be that my boundary was not smooth enough and too "pointy", but that didn't solve the issue). Any tips on how to solve this? Thanks!!
import numpy as np
from triangle import triangle
from model import *
from bamg import bamg
from plotmodel import plotmodel
steps = [1]
if 1 in steps:
print(' Step 1: Domain')
md = triangle(model(), './domain_LIA.exp', 20000)
plotmodel(md, 'data', 'mesh')
print(' Step 1: Mesh creation')
md = bamg(md, 'hmax', 20000, 'hmin', 5000)
