Here's a simplified ANSYS input file structure for a rotary bending fatigue simulation:
/TITLE, Rotary Bending Fatigue Simulation /PREP7 *DEFINE_MATERIAL, MAT1 *ELASTIC 210e9, 0.3 ! Young's modulus, Poisson's ratio *BLOCK, 1, 10, 1, 10, 1, 1 ! Define block geometry *MESH, 10, 10 *NSEL, S, NODE, , 1 ! Select nodes at one end *D, ALL, UX, UY, UZ ! Fix the selected nodes *NSEL, S, NODE, , 10 ! Select nodes at the other end *F, ALL, FZ, -1000 ! Apply a cyclic bending moment /SOLU *TIME, 1, 100, 1 ! Define time steps and total time *NSUBST, 100 ! Number of substeps per time step *AUTOTS, ON *SOLVE /POST1 *GET, STRESS, NODE, 10, S, X ! Get maximum stress at node 10 *PRINT, STRESS