Commit 8a63824e authored by Baptiste Durand's avatar Baptiste Durand

Clean after merge

parent 7cad1ee2
......@@ -10,8 +10,6 @@ Object designed to represent geometrical entitites of dimension two
and instantiate them in a gmsh model.
"""
from .curves import Line, Arc
from .point import Point
from . import factory, np, logger, model
from .tools import round_corner, offset
from .curves import Line, AbstractCurve
......
......@@ -118,15 +118,7 @@ def round_corner(inp_pt, pt_amt, pt_avl, r, junction_raduis=False, plot=False):
if alpha < 0:
# corriger le cas des angles \in ]-pi;0[ = ]pi;2pi[]. L'arrondi est toujours dans le secteur <180° #noqa
v_biss = -v_biss
# if abs(alpha-math.pi)<10E-4:
# pt_amt_milieu=Point((pt_amt.coord+inp_pt.coord)/2)
# pt_avl_milieu=Point((pt_avl.coord+inp_pt.coord)/2)
# racc_amt = Line(pt_amt_milieu, inp_pt)
#racc_avl = Line(inp_pt, pt_avl_milieu)
# geoList = [racc_amt, racc_avl]
#raise ValueError("angle quasi plat")
#return geoList
if junction_raduis:
if plot:
R = copy.deepcopy(r)
......
......@@ -459,10 +459,10 @@ def Gmsh2DPartFromRVE(cell: Gmsh2DRVE, nb_cells, part_name=None):
factory.synchronize()
for gp in phy_surfaces:
gp.add_gmsh()
all_gp = model.getPhysicalGroups()
dimtags_part = [(gp.dim, gp.tag) for gp in phy_surfaces]
remove_gp = [dt for dt in all_gp if not dt in dimtags_part]
model.removePhysicalGroups(remove_gp)
# all_gp = model.getPhysicalGroups()
# dimtags_part = [(gp.dim, gp.tag) for gp in phy_surfaces]
# remove_gp = [dt for dt in all_gp if not dt in dimtags_part]
# model.removePhysicalGroups(remove_gp)
# ! Pour le moment, il semble impossible de réutiliser le tag d'un physical group
# ! qui a été supprimé.
# ! Voir : \Experimental\Test_traction_oct19\pb_complet\run_3\MWE_reuse_tag.py
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment