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
ce7c0193
Commit
ce7c0193
authored
Oct 24, 2019
by
Baptiste Durand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change organization of gmsh options
parent
869d8386
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
ho_homog.egg-info/SOURCES.txt
ho_homog.egg-info/SOURCES.txt
+1
-0
ho_homog/geometry/__init__.py
ho_homog/geometry/__init__.py
+17
-14
No files found.
ho_homog.egg-info/SOURCES.txt
View file @
ce7c0193
...
...
@@ -4,6 +4,7 @@ setup.py
ho_homog/__init__.py
ho_homog/full_scale_pb.py
ho_homog/homog2d.py
ho_homog/homog_beam.py
ho_homog/materials.py
ho_homog/mesh_tools.py
ho_homog/part.py
...
...
ho_homog/geometry/__init__.py
View file @
ce7c0193
...
...
@@ -77,6 +77,21 @@ from .tools import (
)
from
.transformations
import
plane_reflection
,
point_reflection
,
rotation
,
translation
DEFAULT_GMSH_OPTIONS
=
{
"General.Terminal"
:
1
,
"General.Verbosity"
:
5
,
"Geometry.AutoCoherence"
:
0
,
"Mesh.ColorCarousel"
:
2
,
# * 0=by element type, 1=by elementary entity, 2=by physical entity,3=by partition
"Mesh.MeshOnlyVisible"
:
0
,
# TODO : Should be in the init file of the mesh_tools module.
"Mesh.CharacteristicLengthExtendFromBoundary"
:
0
,
"Mesh.SaveAll"
:
0
,
"Mesh.Binary"
:
0
,
"Mesh.MshFileVersion"
:
2.2
,
"Mesh.Algorithm"
:
5
,
}
def
init_geo_tools
():
"""
...
...
@@ -84,20 +99,8 @@ def init_geo_tools():
In addition, some options are set to custom values.
"""
gmsh
.
initialize
()
# ? Utiliser l'argument sys.argv ? cf script boolean.py
set_gmsh_option
(
"General.Terminal"
,
1
)
set_gmsh_option
(
"General.Verbosity"
,
5
)
set_gmsh_option
(
"Geometry.AutoCoherence"
,
0
)
set_gmsh_option
(
"Mesh.ColorCarousel"
,
2
)
# * 0=by element type, 1=by elementary entity, 2=by physical entity, 3=by partition
set_gmsh_option
(
"Mesh.MeshOnlyVisible"
,
0
)
# TODO : Should be in the init file of the mesh_tools module.
set_gmsh_option
(
"Mesh.CharacteristicLengthExtendFromBoundary"
,
0
)
set_gmsh_option
(
"Mesh.SaveAll"
,
0
)
set_gmsh_option
(
"Mesh.Binary"
,
0
)
set_gmsh_option
(
"Mesh.MshFileVersion"
,
2.2
)
set_gmsh_option
(
"Mesh.Algorithm"
,
5
)
# * 2D mesh algorithm (1=MeshAdapt, 2=Automatic,...)
# info about gmsh module
for
option
,
val
in
DEFAULT_GMSH_OPTIONS
.
items
():
set_gmsh_option
(
option
,
val
)
logger
.
info
(
f
"gmsh module path :
{
Path
(
gmsh
.
__file__
).
resolve
()
}
"
)
logger
.
info
(
"Gmsh SDK version : %s"
,
gmsh
.
option
.
getString
(
"General.Version"
))
...
...
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