PyMAPDLを学ぶ#
イントロダクション#
PyMAPDL provides Pythonic access to MAPDL, an Ansys finite element solver.
PyMAPDLは、Pythonや有限要素などの異なる技術に触れ、それらを統合し、このAnsysソルバーとPythonエコシステムをシームレスに接続することで、より優れたユーザーエクスペリエンスを提供します。このライブラリの使用方法を学ぶには、多くのリソースが利用可能です。
PyMAPDLを使い始める コースを完了します。このコースでは PyMAPDL の主な機能について説明します。
実践的な例から学ぶには ギャラリー例 をご覧ください。 コーナーブラケットの静解析 の例は非常に良い出発点です。
プログラミング言語Pythonに慣れる。Pythonを学ぶためのオンラインコースやウェブサイトはたくさんあります。さらに、Ansysは Intro to Python コースを提供しています。
有限要素法(FEM)を理解する。物理モデルは FEM を使用して解かれるため、正確で適切な解を得るためには、これらの手法がどのように機能するかを知る必要があります。Ansys Learning Resources Web サイトの 有限要素法の概要 コースでは、これらのメソッドに精通するためのトラックを提供しています。
Take the Ansys Intro to Ansys Mechanical APDL scripting course. Because PyMAPDL interface with MAPDL through APDL commands, you should become familiar with MAPDL commands and workflows.
ダウンロード#
You can try the Student Version of Ansys products. For more information, see Ansys Student Versions. These are versions valid during a year and with limited capabilities regarding number of nodes, elements, etc.
View and download
PyMAPDL cheatsheet
to help you to learn PyMAPDL.
Visit 使用例 to learn how PyMAPDL can be used to solve different real problems.
コース#
Ansys has prepared high quality courses to guide you through the learning process.
Intro to Python#
The Intro to Python course teaches you the basis of the Python programming language.
Course content#
Prerequisites - Installation of Python
Fundamentals of Python - Lesson 1
Analyzing Radiance Data - Lesson 2
Repeating Actions with Loops - Lesson 3
Storing Multiple Values in Lists - Lesson 4
Making Choices - Lesson 5
Analyzing Data from Multiple Files - Lesson 6
Creating Functions - Lesson 7
Defensive Programming - Lesson 8
Debugging - Lesson 9
Command Line Programs - Lesson 10
Post Completion Survey
Meet the Instructor
PyMAPDLを使い始める#
The Getting started with PyMAPDL course teaches you about PyMAPDL, the Pythonic way to access Ansys MAPDL.
Course content#
Overview of PyMAPDL - Lesson 1
PyMAPDL Language and Usage - Lesson 2
PyMAPDL Categories - Lesson 3
Getting Help - Lesson 4
Post Completion Survey
Meet the Instructors
Intro to Ansys Mechanical APDL scripting#
The Intro to Ansys Mechanical APDL scripting course teaches you how APDL, the Mechanical solver syntax language, works.
Course content#
Overview of MAPDL (Lesson 1)
Basics of APDL Language (Lesson 2)
Solid Modeling & Meshing (Lesson 3)
Defining Loads, BCs, and Solver Controls (Lesson 4)
General Postprocessing (Lesson 5)
Selection Logic (Lesson 6)
More on Parameters (Arrays, *GET) (Lesson 7)
Post Completion Survey
Meet the Instructors
Ansys Innovation Space#
You can find more courses for different Ansys product organized in different categories such as structures, fluids, materials or 3D design.
You can find all the categories in https://courses.ansys.com.
NOTE: You might need to create a free Ansys account to access these resources.
Ansys help#
Ansys Help is the official Ansys website for documentation, tutorials and videos.
An MAPDL introductory tutorials guide which cover different topics such as Structural tutorial Thermal tutorial Electromagnetics tutorial Micro-Electromechanical System (MEMS) tutorial Contact tutorial or Modal tutorial
You can find documentation such as the Command reference guide, Verification manual guide or Technology showcase guide.
The Technology showcase guide is a comprehensive guide with real-world example problems which present the broad simulation capabilities of Ansys Mechanical APDL. The problems demonstrate how to use Mechanical APDL to effectively and accurately solve interdisciplinary problems from a variety of industries and engineering fields. The problems are more substantive and complex than examples found in the standard documentation set. The documentation thoroughly examines the physics involved with each problem and the considerations necessary for translating problems into numerical models. You can find some of the technology showcase examples in PyMAPDL documentation Technology Showcases <pymapdl_ex_ts_>. For a more comprehensive list of showcases, visit Technology showcase guide.
NOTE: You might need to create a free Ansys account to access these resources.
Additional resources#
Ansys has prepared multiple resources to help you to learn and use PyMAPDL. You can access them from the Ansys Learning Resources website. In this website, you can find a summary of the available resources for MAPDL and PyMAPDL.
Recommended articles#
Ansys Gets Into Open Source With GitHub. Link to article in Ansys Blog
Access the Power of Ansys from the Python World. Link to article in Ansys blog
Using Ansys Scripting with pyMAPDL, pyDPF-Post, and More - Part 1 Running and Post-Processing an Ansys Model Outside Ansys. Link to article in PADT Inc Blog.
ANSYS in a Python Web App, Part 1: Post Processing with PyDPF: Integrating PyAnsys with Plotly's Dash and the Dash-VTK component to build an Ansys structural analysis post-processing web application. Link to 'Towards Data Science' article in Medium.
ANSYS in a Python Web App, Part 2: Pre Processing & Solving with PyMAPDL: ANSYS in a Python Web App, Part 2: Pre Processing & Solving with PyMAPDL. Link to 'Towards Data Science' article in Medium.
Paraview: Reading ANSYS APDL (RST) results in Paraview. Link to 'Paraview Forum' question.
Feel free to share any educational or learning resources by opening an issue or starting a discussion on GitHub.