TAGGED: ansys-apdl, ansys-mechanical, ansys-mechanical-apdl, apdl, iges, workbench
-
-
September 23, 2024 at 3:23 pm
me262
SubscriberHi,
I'm trying to understand how to use APDL to solve a simple dice-shaped volume. I just need to understand the basics.
I put my script inside the Mechanical solution section and set an area as a fixed boundary condition and an area force on the opposite side. The geometry is imported as an IGES file.
The .iges file gets imported, but the geometry section in the tree is still empty, therefore I need to link the geometry inside Workbench to the mechanical analysis. But why? It should be done by the APDL script itself.
Furthermore, Mechanical tells me to add at least one structural load in the tree on the left side manually to make it work, but I did that via APDL?
Inside MAPDL, it's working so far, but inside Mechanical, it is not. So what did I miss?
/PREP7
et,1,SOLID185
MP,ex,1,10E6
MP,NUXY,1,.3surface_count = 3
*dim,str_path,String,128,4
str_path(1,1) = 'C:\\Users\\xxxxx\\'
str_path(1,2) = 'model_thickness_'*dim, temp1, string, 128
temp1(1,1) = strcat(str_path(1,1),str_path(1,2))str_path(1,3) = CHRVAL(10)
*dim, iges_filename, string, 128
iges_filename(1,1) = Â strcat(temp1(1,1),str_path(1,3))
CDREAD,solid, iges_filename(1,1), iges
*status, all*status, all
vmesh, all
*status, all
*get, num_mesh_nodes, node, 0, count
*get, num_mesh_elements, elem, 0, countNSEl,S,LOC,X,10
D,ALL,UX
D,ALL,UY
D,ALL,UZ
NSEL,S,LOC,X,-10
F,ALL,FX,-10
ALLSEL,ALL
FINISH/SOLU
SOLVE
FINISH -
September 24, 2024 at 12:04 pm
Gary_S
Ansys Employee The Workbench Mechanical application (i.e Static Structural) only uses the APDL as a solver.
 It is not possible for the Tree to be created from APDL code.Â
ÂÂ
-
- You must be logged in to reply to this topic.
- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- APDL, memory, solid
- How to model a bimodular material in Mechanical
- Meaning of the error
- Simulate a fan on the end of shaft
- Nonlinear load cases combinations
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
-
3862
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.