Skip to content

Applying increasing force over time in a specific point #3021

Answered by mikerife
Deternanna asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a small example using a generic solid model of a cantilever beam.

from ansys.mapdl.core import launch_mapdl
import matplotlib.pyplot as plt
import pyvista as pv

mapdl = launch_mapdl(port=50056)
mapdl.units('bin')
mapdl.clear()
mapdl.prep7()

mapdl.et(1, 185)

mapdl.mp('EX', 1, 1E7)
mapdl.tb('plas', 1, 1, 1, 'biso')
mapdl.tbdata(1, 50_000, 5E6)

mapdl.blc4(0, 0, 24, 0.5, 1)
mapdl.esize(0.25)
mapdl.vmesh(1)

mapdl.nsel('s', 'loc', 'x', 0)
mapdl.cp(1, 'all', 'all')
node_bc = mapdl.queries.ndnext(0)
mapdl.allsel()
mapdl.finish()

mapdl.slashsolu()

mapdl.d(node_bc, 'all', 0)
mapdl.nsel('s', 'loc', 'y', 0.5)
mapdl.sf('all', 'pres', 20)
mapdl.allsel()

mapdl.time(20)
mapdl.nsubst(20, 100

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@Deternanna
Comment options

Comment options

You must be logged in to vote
3 replies
@Deternanna
Comment options

@Deternanna
Comment options

@mikerife
Comment options

Comment options

You must be logged in to vote
2 replies
@Deternanna
Comment options

@Deternanna
Comment options

Comment options

You must be logged in to vote
1 reply
@Deternanna
Comment options

Answer selected by Deternanna
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