FEM: example thermomech spine, move mesh from unit tests to fem examples

This commit is contained in:
Bernd Hahnebach
2019-09-25 09:12:19 +02:00
parent 79dcd464b2
commit 5a84dc27cb
3 changed files with 4 additions and 6 deletions

View File

@@ -45,6 +45,7 @@ SET(FemExampleMeshes_SRCS
femexamples/meshes/__init__.py
femexamples/meshes/mesh_canticcx_tetra10.py
femexamples/meshes/mesh_rc_wall_2d_tria6.py
femexamples/meshes/mesh_thermomech_spine.py
)
SET(FemInOut_SRCS
@@ -166,7 +167,6 @@ SET(FemTestsCcx_SRCS
femtest/data/ccx/cube.FCStd
femtest/data/ccx/multimat.inp
femtest/data/ccx/multimat_mesh.py
femtest/data/ccx/spine_mesh.py
femtest/data/ccx/spine_thermomech.inp
femtest/data/ccx/spine_thermomech.dat
femtest/data/ccx/spine_thermomech.frd

View File

@@ -1,4 +1,4 @@
def create_nodes_spine(femmesh):
def create_nodes(femmesh):
# nodes
femmesh.addNode(203.2, 25.4, 0.0, 1)
femmesh.addNode(203.2, 25.4, 25.4, 2)
@@ -48,7 +48,7 @@ def create_nodes_spine(femmesh):
return True
def create_elements_spine(femmesh):
def create_elements(femmesh):
# elements
femmesh.addVolume([6, 5, 12, 11, 26, 33, 43, 37, 20, 34], 1)
femmesh.addVolume([12, 9, 11, 2, 44, 39, 34, 45, 15, 38], 2)

View File

@@ -124,9 +124,7 @@ def setup(doc=None, solver="ccxtools"):
heatflux_constraint.FilmCoef = 5.678
# mesh
# from femexamples.meshes.mesh_canticcx_tetra10 import create_nodes, create_elements
from femtest.data.ccx.spine_mesh import create_nodes_spine as create_nodes
from femtest.data.ccx.spine_mesh import create_elements_spine as create_elements
from femexamples.meshes.mesh_thermomech_spine import create_nodes, create_elements
fem_mesh = Fem.FemMesh()
control = create_nodes(fem_mesh)
if not control: