Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
HO_homog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Baptiste Durand
HO_homog
Commits
8a63824e
Commit
8a63824e
authored
Jan 12, 2021
by
Baptiste Durand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean after merge
parent
7cad1ee2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
15 deletions
+5
-15
ho_homog/geometry/surfaces.py
ho_homog/geometry/surfaces.py
+0
-2
ho_homog/geometry/tools.py
ho_homog/geometry/tools.py
+1
-9
ho_homog/mesh_generate/__init__.py
ho_homog/mesh_generate/__init__.py
+4
-4
No files found.
ho_homog/geometry/surfaces.py
View file @
8a63824e
...
...
@@ -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
...
...
ho_homog/geometry/tools.py
View file @
8a63824e
...
...
@@ -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
)
...
...
ho_homog/mesh_generate/__init__.py
View file @
8a63824e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment