-
Recently, though, I’ve run into a challenge while working with SHELL181 elements. Since shell elements represent 2D geometry with a defined thickness, I understand that pressure application works differently than with solids. Currently, I’m using the SFE command to apply pressure, but I’m not entirely confident if I’m doing it correctly or if there’s a better approach specific to shell elements. Here’s the current setup I’m testing (summary only — full code below): Defined a rectangular shell area using mapdl.blc4(0, 0, 100, 20) Assigned SHELL181 with SECTYPE and SECDATA mapdl.asel("S", "LOC", "X", 90, 100) UserWarning: There are no elements to plot. warnings.warn("There are no elements to plot.") What’s the correct or recommended way to apply pressure to shell elements (like SHELL181)? Appreciate your time and any guidance you can share! Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Hi @AltoAuto accidentally selecting area here instead of elements: # 5. Apply pressure force on right face
mapdl.asel("S", "LOC", "X", 90,100)
mapdl.esla("S")
mapdl.eplot()
mapdl.sfe("ALL", 1, "PRES", 1, 25) Use instead: # 5. Apply pressure force on right face
mapdl.esel("S", "CENT", "X", 90,100)
mapdl.eplot()
mapdl.sfe("ALL", 1, "PRES", 1, 25) MIke |
Beta Was this translation helpful? Give feedback.
-
Hi @AltoAuto I can't really comment as I don't have access to the solid element script. And the results you posted don't match the input (pressure is normal to the material but the results show a in-plane pulling of the material). Here is a example so we can discuss: from ansys.mapdl.core import launch_mapdl
import os
path = os.getcwd()
mapdl = launch_mapdl(run_location=path)
mapdl.clear()
mapdl.prep7()
# 1. Define Element Type, Section, Material
mapdl.et(1, "SHELL181")
mapdl.sectype(1, "SHELL")
mapdl.secdata(2) # thickness
mapdl.et(2, "186")
mapdl.mp("EX", 1, 210000) # MPa
mapdl.mp("NUXY", 1, 0.3)
# 2. Create Geometry (100 mm x 20 mm)
mapdl.blc4(0, 0, 100, 20)
mapdl.block(0, 100, 0, 20, 10, 12)
# 3. Mesh
mapdl.type(1)
mapdl.esize(3)
mapdl.amesh(1)
mapdl.type(2)
mapdl.vsweep(1)
# 4. Fix left edge
mapdl.nsel("S", "LOC", "X", 0)
mapdl.d("ALL", "ALL", 0)
# 5. Apply pressure force on right face
mapdl.esel('s', 'type', '', 1)
mapdl.esel("r", "CENT", "X", 90,100)
mapdl.sfe("ALL", 1, "PRES", 1, 25)
mapdl.allsel()
mapdl.esel('s', 'type', '', 2)
mapdl.esel('r', 'cent', 'x', 90, 100)
mapdl.sfe('all', '1', 'pres', 1, 25)
mapdl.allsel()
mapdl.finish()
mapdl.slashsolu()
mapdl.solve()
mapdl.finish()
mapdl.post1()
mapdl.set('last')
mapdl.post_processing.plot_nodal_eqv_stress(cmap='jet') |
Beta Was this translation helpful? Give feedback.
Hi @AltoAuto I can't really comment as I don't have access to the solid element script. And the results you posted don't match the input (pressure is normal to the material but the results show a in-plane pulling of the material). Here is a example so we can discuss: