TAGGED: ansys-apdl, ansys-mechanical, apdl, constraints
-
-
October 1, 2023 at 3:46 amMoustafa El-SawySubscriber
I have a concrete block made up of SOLID elements. I am currently applying a spring at the base at each mesh element but I found I also want to apply rotation stiffness to the entire foundation. I have a single value of the stiffness of the system in each direction including rotation stiffness. Before knowing I need to apply rotational stiffness, I took the total value of stiffness in each translation direction and applied a portion of this to each node based on its tributary area. However I also now need to apply rotation stiffness to the entire system so I think this approach will not work.
SOLID nodes dont have rotation DOF, so I was thinking I would create a master node and assign it a single spring with x,y,z,rotx,roty,rotz and then connect this node with all my base nodes. This would distribute the stiffness to the nodes and allow the system to rotate with a certain stiffness.
- Can I perform this without tying all base nodes (X,Y,Z)? My behavior is most likely rigid but I was wondering if its possible. I dont think its possible but please correct me if im wrong
- If its not possible, can I make my base like a rigid plate (X,Y) direction but also able to rotate around the master node with a certain stiffness (around x,y).
-
October 2, 2023 at 11:01 ampeteroznewmanSubscriber
Select the bottom face of your block and insert a Spring in the Connections folder. In the Details window, change the Scope to a Body-Ground spring and change the Behavior of the Mobile side (bottom face) to be Deformable. Deformable means that the individual nodes in the face will have the freedom to move according to the loads distrubuted to them by the Deformable connection, but that the average motion will be controlled by the spring’s master node.
The spring created in Mechanical is a Longitudinal spring, COMBIN14, which is not what you want, but you can override that spring type with another spring element called a COMBI250 by using a Command Object under the Spring object in the model Outline.
A COMBI250 allows you to define six spring constants for the 3 translational and 3 rotational stiffness values.
Look up the COMBI250 element in the Mechanical APDL, Element Library section of the Help system. One line of the APDL code will switch the element type to COMBIN250 and other lines of code will provide the Real Constants for the spring stiffness values.
Here is one example of the needed code. Here is another example.
-
October 2, 2023 at 11:48 amMoustafa El-SawySubscriber
Thanks Peter. I am using APDL. With the COMBI250, I am able to assign springs in all directions at the nodes at the bottom of my solid elements even though the solid element nodes dont have DOF for rotation?
-
-
October 2, 2023 at 1:24 pmpeteroznewmanSubscriber
No, a rotational spring attached to a node on a solid element will not be able to apply any moment to that node. A pilot node that distributes forces and moments to a set of nodes can have a moment load applied to the pilot noe, which will be resolved as forces on the set of nodes it is connected to.
-
October 6, 2023 at 2:35 amMoustafa El-SawySubscriber
Hi Peter, ive been trying to apply some rotation stiffness to my whole base but im unsure if my approach is correct can you take a look at the code below:
/CLEAR        ! Clear all previous data and start fresh/PREP7        ! Enter preprocessor phaseÂ! Element DefinitionsET, 1, SOLID185   ! Define SOLID186 element type for solid modelingET, 2, COMBIN14   ! Define COMBIN14 element type for springsKEYOPT, 2, 2, 0KEYOPT, 2, 3, 0ÂET, 3, COMBIN14   ! Define COMBIN14 element type for springsKEYOPT, 3, 2, 0KEYOPT, 3, 3, 1ÂET, 999, SHELL181  ! Define SHELL181 element type with a placeholder ID of 999SECTYPE, 999, SHELL ! Specify section type for SHELL181 elementSECDATA, 10    ! Define the thickness of the shell as 100 unitsÂ! Material Properties for the SolidMP, EX, 1, (32836.56803/1000)/0.83  ! Define Young's Modulus for solid after adjusting valueMP, PRXY, 1, 0.2   ! Define Poisson's Ratio for the solidMP, DENS, 1, (23.544/9810.0)/10**9  ! Define Density for the solid after adjusting valueMP, ALPX, 1, 10E-006 ! Define Coefficient of Thermal Expansion for the solidÂ! Material Properties for Fake/Rigid AreasMAT, 999       ! Activate material with ID 999 for fake areasMP, EX, 999, 1E+13  ! Define a very high Young's Modulus to simulate rigidityMP, PRXY, 999, 0.2  ! Define Poisson's Ratio for the fake areasMP, DENS, 999, 0.0  ! Define Density as 0, implying it's a "rigid" areaMP, ALPX, 999, 10E-006! Define Coefficient of Thermal Expansion for the fake areasÂ! Geometry CreationBLC5, 0, 0, 40000, 40000, 50000 ! Create a block starting from origin with the given dimensionsÂ! Meshing Settings for the Solid BlockTYPE, 1        ! Set the element type to SOLID186MAT, 1        ! Set the material type to the first defined material (for solid)ESIZE, (5000)     ! Set the mesh sizeVMESH, ALL      ! Mesh the created volumeÂ! Meshing Settings for the Base Area (Shell)MAT, 999       ! Switch to the material ID 999 (for fake areas)TYPE, 999       ! Switch to the SHELL181 element typeSECNUM, 999      ! Use the section definition with ID 999ND_TOL = 10      ! Define a tolerance for node selection (helpful in selecting nodes near z=0)ALLSEL, ALL      ! Select everything in the workspaceASEL, S, LOC, Z, 0-ND_TOL, 0+ND_TOL ! Select areas near the base within the defined toleranceAMESH, ALL      ! Mesh the selected areas (i.e., the base) using SHELL181 element typeÂ! Select nodes at the baseND_TOL = 10NSEL, S, LOC, Z, 0-ND_TOL, 0+ND_TOLÂ! Create a component for the selected nodesCM, BASE_NDS, NODEÂ! Get essential parameters for node looping*GET, NMAX, NODE, 0, NUM, MAX*GET, NODE_NMIN, NODE, 0, NUM, MIN*GET, NODE_NCOUNT, NODE, 0, COUNTÂKX = 1000 ! Spring constant in X directionKY = 500 ! Spring constant in Y directionKZ = 2000 ! Spring constant in Z directionÂR, 1001, KXR, 2001, KYR, 3001, KZÂCMSEL,S, BASE_NDS ! Select component of nodesL_SPRING = 100Â! Loop over each node in the created componentNODE_NNUM = NODE_NMIN*DO, i, 1, NODE_NCOUNT! Get coordinates of the current node  *GET, X_COORD, NODE, NODE_NNUM, LOC, X  *GET, Y_COORD, NODE, NODE_NNUM, LOC, Y  *GET, Z_COORD, NODE, NODE_NNUM, LOC, ZÂ! Create spring in X direction  N, , X_COORD-L_SPRING, Y_COORD, Z_COORD  ! Generate a new node  *GET, newNode, NODE, 0, NUM, MAX ! Get the ID of the newly created node  D, newNode, ALL       ! Fix the ground node for X directionTYPE, 2  REAL, 1001           ! Define spring constant for X  E, NODE_NNUM, newNode  ! Create spring in Y direction  N, , X_COORD, Y_COORD-L_SPRING, Z_COORD  ! Generate a new node  *GET, newNode, NODE, 0, NUM, MAX ! Get the ID of the newly created node  D, newNode, ALL       ! Fix the ground node for Y directionTYPE, 2  REAL, 2001           ! Define spring constant for Y  E, NODE_NNUM, newNode  ! Create spring in Z direction  N, , X_COORD, Y_COORD, Z_COORD-L_SPRING  ! Generate a new node  *GET, newNode, NODE, 0, NUM, MAX ! Get the ID of the newly created node  D, newNode, ALL       ! Fix the ground node for Z directionTYPE, 2  REAL, 3001           ! Define spring constant for Z  E, NODE_NNUM, newNodeÂ! Move to the next node in the component  NODE_NNUM = NDNEXT(NODE_NNUM)*ENDDOÂ! add node at center of block and assign rotational torsion springs to this node (master node)! Create a master node at the center of the blockN, , 0, 0, -500*GET, masterNode, NODE, 0, NUM, MAX ! Get the ID of the master node*GET, X_COORD, NODE, masterNode, LOC, X*GET, Y_COORD, NODE, masterNode, LOC, Y*GET, Z_COORD, NODE, masterNode, LOC, ZÂ! Assign rotational torsion springs to this node (master node)KRX = 500 ! Spring constant for rotation about X axis (Torsional Spring)KRY = 500 ! Spring constant for rotation about Y axis (Torsional Spring)KRZ = 500 ! Spring constant for rotation about Z axis (Torsional Spring)ÂR, 4001, KRXR, 5001, KRYR, 6001, KRZÂ! Create Torsion springs at the master nodeN, , X_COORD-L_SPRING, Y_COORD, Z_COORD  ! Generate a new node offset in X for ROTX spring*GET, newXNode, NODE, 0, NUM, MAXD, newXNode, ALLÂTYPE, 3REAL, 4001E, masterNode, newXNodeÂN, , X_COORD, Y_COORD-L_SPRING, Z_COORD  ! Generate a new node offset in Y for ROTY spring*GET, newYNode, NODE, 0, NUM, MAXD, newYNode, ALLTYPE, 3REAL, 5001E, masterNode, newYNodeÂN, , X_COORD, Y_COORD, Z_COORD-L_SPRING  ! Generate a new node offset in Z for ROTZ spring*GET, newZNode, NODE, 0, NUM, MAXD, newZNode, ALLTYPE, 3REAL, 6001E, masterNode, newZNodeÂ! Transfer rotational stiffness from the master node to the slave nodes (base nodes)CMSEL, S, BASE_NDS  ! Select nodes in BASE_NDS componentNSEL,A,NODE,,masterNodeCERIG,masterNode,ALL,RXYZÂ! Re-select everything for subsequent commandsALLSEL, ALLÂ/SOLU              ! Enters the solution processorÂDAMPING_RATIO = 0.00      ! Modal Damping RatioN_MODES = 25          ! Number of Modes, When Method = LANPCG, NMODE should be less than 100 to be computationally efficient.ÂANTYPE, MODAL          ! Perform a modal analysisMXPAND, N_MODES         ! Number of modesDMPRAT, DAMPING_RATIO      ! Modal damping ratioMODOPT, LANB, N_MODESÂALLSEL, ALL/MKDIR, 'OUTPUT'/OUTPUT, 'OUTPUT/Modal_Analysis', 'OUT'SOLVEÂFINISH             ! Exits solution processor /SOLUÂÂ
-
-
October 2, 2023 at 1:28 pmMoustafa El-SawySubscriber
If I need to apply springs in all 6 directions to the base of my solid elements, is there any way to accomplish this (individual nodes not the entire base with a single value).
I was thinking of adding shell elements to the base that share the same nodes as the solid elements and this will enable those nodes to take moment? Do you think this will work? In this case I was planning on assigning these shells as massless and with small stiffness to not affect the dynamic behavior of the structure.
-
October 6, 2023 at 5:03 pmpeteroznewmanSubscriber
I am not an expert at APDL code. I use Workbench and only use a few lines of APDL occasionally. Maybe someone else can comment.
-
- The topic ‘Apply rotational stiffness to a base’ is closed to new replies.
- How to apply Compression-only Support?
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- Script Error Code:800a000d
- Elastic limit load, Elastic-plastic limit load
- Image to file in Mechanical is bugged and does not show text
- Element has excessive thickness change, distortion, is turning inside out
-
1762
-
635
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.