Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fossils
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Boman Romain
fossils
Commits
1d671b90
Commit
1d671b90
authored
4 years ago
by
Boman Romain
Browse files
Options
Downloads
Patches
Plain Diff
rename loadbone to boneload
parent
4180a34f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
models/boneload.py
+0
-0
0 additions, 0 deletions
models/boneload.py
models/mandiblemodel.py
+5
-5
5 additions, 5 deletions
models/mandiblemodel.py
models/view_cylinder.py
+1
-1
1 addition, 1 deletion
models/view_cylinder.py
models/view_doli_10k.py
+1
-1
1 addition, 1 deletion
models/view_doli_10k.py
with
7 additions
and
7 deletions
models/
load
bone.py
→
models/bone
load
.py
+
0
−
0
View file @
1d671b90
File moved
This diff is collapsed.
Click to expand it.
models/mandiblemodel.py
+
5
−
5
View file @
1d671b90
...
...
@@ -2,7 +2,7 @@
# mandible model
from
wrap
import
*
import
load
bone
import
bone
load
import
os
# enable full parallelism
...
...
@@ -76,12 +76,12 @@ def getMetafor(p={}):
for
muscle
in
p
[
'
muscles
'
]:
# load focal point
fullpath
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
muscle
[
'
focalpt
'
])
focalnodes
,
_
=
load
bone
.
load_msh
(
fullpath
)
focalnodes
,
_
=
bone
load
.
load_msh
(
fullpath
)
# load surface mesh => groups[name (from filename)]
name
,
nodes
,
tris
,
ntags
=
\
create_group
(
muscle
[
'
file
'
],
nods_no
,
nods_pos
,
domain
,
groups
)
# create loads on the surface
loads
=
load
bone
.
create_uniform_loads
(
nodes
,
tris
,
\
loads
=
bone
load
.
create_uniform_loads
(
nodes
,
tris
,
\
total_force
=
muscle
[
'
force
'
],
target
=
focalnodes
[
0
])
# store data in a structure
mgroups
[
name
]
=
MuscleGroup
(
nodes
,
tris
,
ntags
,
loads
)
...
...
@@ -227,10 +227,10 @@ def create_group(mesh_file, all_no, all_coords, domain, groups, gname=None):
"""
# load mesh file
fullpath
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
mesh_file
)
nodes
,
tris
=
load
bone
.
load_msh
(
fullpath
)
nodes
,
tris
=
bone
load
.
load_msh
(
fullpath
)
# identify nodes of the mesh among the given vertices of the main mesh
ntags
=
load
bone
.
identify_nodes
(
nodes
,
all_no
,
all_coords
)
ntags
=
bone
load
.
identify_nodes
(
nodes
,
all_no
,
all_coords
)
# create a metafor group
groupset
=
domain
.
getGeometry
().
getGroupSet
()
...
...
This diff is collapsed.
Click to expand it.
models/view_cylinder.py
+
1
−
1
View file @
1d671b90
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from
load
bone
import
*
from
bone
load
import
*
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
models/view_doli_10k.py
+
1
−
1
View file @
1d671b90
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from
load
bone
import
*
from
bone
load
import
*
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment