Skip to content
Snippets Groups Projects
Commit 1d671b90 authored by Boman Romain's avatar Boman Romain
Browse files

rename loadbone to boneload

parent 4180a34f
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -2,7 +2,7 @@
# mandible model
from wrap import *
import loadbone
import boneload
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, _ = loadbone.load_msh(fullpath)
focalnodes, _ = boneload.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 = loadbone.create_uniform_loads(nodes, tris, \
loads = boneload.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 = loadbone.load_msh(fullpath)
nodes, tris = boneload.load_msh(fullpath)
# identify nodes of the mesh among the given vertices of the main mesh
ntags = loadbone.identify_nodes(nodes, all_no, all_coords)
ntags = boneload.identify_nodes(nodes, all_no, all_coords)
# create a metafor group
groupset = domain.getGeometry().getGroupSet()
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from loadbone import *
from boneload import *
if __name__=="__main__":
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from loadbone import *
from boneload import *
if __name__=="__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment