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
7d5f2442
Commit
7d5f2442
authored
Dec 09, 2020
by
Baptiste Durand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update __init__ + docstring kagome
parent
165824b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
ho_homog/mesh_generate/__init__.py
ho_homog/mesh_generate/__init__.py
+3
-3
ho_homog/mesh_generate/kagome.py
ho_homog/mesh_generate/kagome.py
+19
-1
No files found.
ho_homog/mesh_generate/__init__.py
View file @
7d5f2442
...
...
@@ -30,8 +30,8 @@ logger = logging.getLogger(__name__) # http://sametmax.com/ecrire-des-logs-en-p
__all__
=
[
"kagome"
,
"pantograph"
,
"kagome"
,
"duplicate_pattern"
,
"offset_pattern"
,
"Gmsh2DRVE"
,
...
...
@@ -341,8 +341,8 @@ class Gmsh2DPart(object):
from
.pantograph
import
pantograph_RVE
,
pantograph_offset_RVE
,
beam_pantograph_RVE
from
.kagome
import
kagome_RVE
from
.kagome
import
kagome_sym_RVE
from
.kagome
import
kagome_RVE
,
kagome_sym_RVE
# from .other_2d_microstructures import auxetic_square_RVE
...
...
ho_homog/mesh_generate/kagome.py
View file @
7d5f2442
...
...
@@ -31,10 +31,28 @@ xdmf_parameters = dict(
def
kagome_RVE
(
alpha
,
name
,
r
):
def
kagome_RVE
(
alpha
,
r
,
name
=
""
):
"""[summary]
Parameters
----------
alpha : float
Paramètre d'ouverture, intervalle [0, 0.5]
0: configuration refermé
0.5: configuration complétement ouverte
name : str
r : float
junction thinness, rayon de jonction / côté d'un triangle
La cellule est de taille constante,
par contre les triangles ont une taille qui dépend de l'angle d'ouverture.
"""
logger
.
info
(
"Start defining the geometry"
)
name
=
name
if
name
else
"kagome"
a
=
1.0
# taille du réseau de triangle
#alpha = 0.5# degré d'ouverture compris entre 0 et 0.5
#r = a / 500 # rayon de jonction
...
...
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