Skip to content

Commit

Permalink
codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
GBenedett committed Nov 21, 2023
1 parent b8ff3bb commit 0baa673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ceasiompy/CPACS2GMSH/func/generategmesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,11 +927,11 @@ def generate_gmsh(
# Thus be sure to define mesh size in a certain order to control
# the size of the points on boundaries.

fuselage_maxlen, fuselage_minlen = fuselage_size(cpacs_path)
_, fuselage_minlen = fuselage_size(cpacs_path)
mesh_size_fuselage = fuselage_mesh_size_factor * fuselage_minlen
log.info(f"mesh_size_fuselage={mesh_size_fuselage}")

wing_maxlen, wing_minlen = wings_size(cpacs_path)
_, wing_minlen = wings_size(cpacs_path)
mesh_size_wing = wing_mesh_size_factor * wing_minlen
log.info(f"mesh_size_wing={mesh_size_wing}")

Expand Down
2 changes: 1 addition & 1 deletion ceasiompy/CPACS2GMSH/func/mesh_sizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def fuselage_size(cpacs_path):

# Fuselage profiles
prof_uid = tixi.getTextElement(elem_xpath + "/profileUID")
prof_vect_x, prof_vect_y, prof_vect_z = get_profile_coord(tixi, prof_uid)
_, prof_vect_y, prof_vect_z = get_profile_coord(tixi, prof_uid)

prof_size_y = (max(prof_vect_y) - min(prof_vect_y)) / 2
prof_size_z = (max(prof_vect_z) - min(prof_vect_z)) / 2
Expand Down

0 comments on commit 0baa673

Please sign in to comment.