Skip to content

Distributed force on hyperelastic object #861

Answered by adtzlr
KaiWolven asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that PyVista doesn't show points inside the volume if you set the opacity to a value lower than 1. I think you'd have to modify the mesh before to do so.

Here is an example. Let's take a gmsh-file, e.g. cube6.geo. First, create the msh-file within gmsh and then follow this code to use it in FElupe.

code (requires the pypardiso-package)
import felupe as fem
import pypardiso

mesh = fem.mesh.read("cube6.msh")[-1]
region = fem.RegionTetraMINI(mesh.add_midpoints_volumes(cell_type="tetra"))
field = fem.FieldsMixed(region, n=3)

boundaries, loadcase = fem.dof.uniaxial(field, clamped=True)

umat = fem.NearlyIncompressible(fem.NeoHooke(mu=1), bulk=5000)
solid = fem.SolidBody(umat, field)

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@KaiWolven
Comment options

@adtzlr
Comment options

@KaiWolven
Comment options

@adtzlr
Comment options

Answer selected by adtzlr
@KaiWolven
Comment options

@adtzlr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants