# pyapdl **Repository Path**: csutjf/pyapdl ## Basic Information - **Project Name**: pyapdl - **Description**: Programming in ANSYS Parametric Design Language (APDL) using Python - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-14 - **Last Updated**: 2022-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PyAPDL Programming in ANSYS Parametric Design Language (APDL) using Python ### Mini Example 1. Creating two keypoint from a list of coordinates. ```python # -*- coding: utf-8 -*- from pyapdl import * s = Script() s.append("/PREP7") # Create BEAM188 Elements s.append(create_element(1,"BEAM188")) # Keypoints kps = {1:(0,0,0), 2:(0.5,0,0), 3:(1,0,0)} for kp in kps: s.append(create_keypoint(kp,kps[kp])) # Create lines. 1->2 & 2->3 s.append(create_line(1,2)) s.append(create_line(2,3)) # Create material s.append(create_material(1,E=200e9,nu=0.3,density=7850)) # Section s.append(create_beam_section(1,"_b1",ISection(0.05,0.05,0.05,0.01,0.01,0.01))) # Mesh line s.append(mesh_line(1)) s.append(mesh_line(2)) # Numbering nodes s.append(sol()) s.append(constraint_node(1)) s.append(load_node(5,fy=-1000)) # Save scritp s.save(r"beam_example.txt") ``` ### Installation Using git to clone this repository (or download zip): ``` $ git clone https://github.com/JorgeDeLosSantos/pyapdl.git ``` and run the `setup.py`: ``` >> python setup.py install ``` ### About... ``` Author: Pedro Jorge De Los Santos E-mail: delossantosmfq@gmail.com ```