diff --git a/ceasiompy/CPACS2GMSH/func/mesh_sizing.py b/ceasiompy/CPACS2GMSH/func/mesh_sizing.py index 122d034d3..d1b1ca04e 100644 --- a/ceasiompy/CPACS2GMSH/func/mesh_sizing.py +++ b/ceasiompy/CPACS2GMSH/func/mesh_sizing.py @@ -178,6 +178,8 @@ def fuselage_size(cpacs_path): # Get overall minimum radius (semi-minor axis for ellipse) min_radius = min(min_radius, height, width) + if min_radius == 0: + min_radius = 0.0001 mean_circ = sum(circ_list) / len(circ_list)