Example of 3D skeleton analysis by Python

The latest version of the program is posted below, so please refer to it.

Introduction

I will introduce an example calculated by a three-dimensional skeleton analysis program using Python. Here, I tried to reproduce the grid girder analysis result and the plane frame analysis result. I was wondering if the 3D coordinate conversion was working, but as a result, it seems to be working.

Until now, plane skeleton analysis and grid girder analysis were used properly according to the structure to be designed, but if the three-dimensional skeleton analysis program can be used freely, this one can play both roles. It can be done, so it will be convenient.

But in reality, the grid girder analysis will be done by 3D skeleton analysis, but the plane skeleton analysis will use a plane program. This is because creating input data is a little troublesome for 3D objects.

The program used was the one introduced last time. http://qiita.com/damyarou/items/2b83b9b20181c1b8e35d

The program, input data, analysis procedure and section force drawing script by GMT are uploaded to the following Gist. https://gist.github.com/damyarou/8b99e5e57576db5e71bf630fa1b396a2

About the program

The three-dimensional frame structure analysis program by the finite element method is Python3, but the section force diagram is created by GMT (Generic Mapping Tools). The reason is that the 3D plot of Python-matplotlib is not cool. matplotlib is good for 2D plots, but I feel that it suddenly becomes cartoonish when it comes to 3D. In that respect, GMT is troublesome to handle, but it is possible to draw in a unified manner in both 2D and 3D, and the product feels good. Both are a matter of taste. In order to plot in GMT, a Python program that reads the output data of the analysis program and creates a data file for plotting in GMT is created separately.

Analysis of in-plane grid girders in the global coordinate system XY

Azimuth looking at the 3D plot: 150 degrees from north, 30 degrees elevation Code angle: All 0

fig_grid.png

Analysis of multi-layer ramen in the whole coordinate system Y-Z plane

Azimuth looking at the 3D plot: 120 degrees from north, 30 degrees elevation Code angle: All 0

fig_cpost_1.png

Analysis of multi-layer ramen in the whole coordinate system X-Z plane

The dimensions, cross-sectional characteristics, and loads of the structural system are exactly the same as the above-mentioned model in the Y-Z plane of the overall coordinate system, but when making a three-dimensional model, the structure is placed in the X-Z plane. In this case, the same cross-sectional force diagram as the above model is obtained by setting the cord angle to -90 degrees for the column member.

Azimuth looking at the 3D plot: 150 degrees from north, 30 degrees elevation Code angle: 0 for beam members, -90 degrees for column members

fig_cpost_2.png

It is necessary to consider the relationship between the column member and the beam member when setting the code angle. The following documents will be helpful.

http://www.archi.hiro.kindai.ac.jp/laboratory/SAL/dfujii/Report/fem/fem_11.pdf

that's all

Recommended Posts

Example of 3D skeleton analysis by Python
3D skeleton structure analysis with Python
Analysis of X-ray microtomography image by Python
Static analysis of Python programs
python> Handling of 2D arrays
Planar skeleton analysis with Python
Planar skeleton analysis with Python (4) Handling of forced displacement
Plane skeleton analysis with Python (3) Creation of section force diagram
Expansion by argument of python dictionary
Planar skeleton analysis in Python (2) Hotfix
Behavior of python3 by Sakura's server
Example of code rewriting by ast.NodeTransformer
Story of power approximation by Python
A simple data analysis of Bitcoin provided by CoinMetrics in Python
Practice of data analysis by Python and pandas (Tokyo COVID-19 data edition)
Explanation of production optimization model by Python
[Learning memo] Basics of class by python
Conditional branching of Python learned by chemoinformatics
2D FEM stress analysis program with Python
Grayscale by matrix-Reinventor of Python image processing-
Pandas of the beginner, by the beginner, for the beginner [Python]
Practical example of Hexagonal Architecture in Python
Time variation analysis of black holes using python
Example of taking Python> function> * args as arguments
[Python] limit axis of 3D graph with Matplotlib
python script skeleton
Data analysis python
[Python] Comparison of Principal Component Analysis Theory and Implementation by Python (PCA, Kernel PCA, 2DPCA)
Basics of Python ①
Basics of python ①
Motion analysis of figure skating with VideoPose 3D
Thorough comparison of three Python morphological analysis libraries
Copy of python
Analysis of shared space usage by machine learning
[Scientific / technical calculation by Python] Drawing of 3D curved surface, surface, wireframe, visualization, matplotlib
Sentiment analysis of large-scale tweet data by NLTK
Static analysis of Python code with GitLab CI
A well-prepared record of data analysis in Python
[Answer example (python3)] ABS (AtCoder Beginners Selection) of atcoder
Two-dimensional elastic skeleton geometric nonlinear analysis with Python
Example of reading and writing CSV with Python
Introduction of Python
[Scientific / technical calculation by Python] Plot, visualization, matplotlib of 2D data read from file
[Scientific / technical calculation by Python] Drawing, visualization, matplotlib of 2D (color) contour lines, etc.
[Language processing 100 knocks 2020] Summary of answer examples by Python
Image processing by matrix Basics & Table of Contents-Reinventor of Python image processing-
Implementation example of simple LISP processing system (Python version)
python --Export 2D histogram as an array by Matplotlib
Analysis of financial data by pandas and its visualization (2)
Explanation of the concept of regression analysis using python Part 2
[Python] [Word] [python-docx] Simple analysis of diff data using python
Analysis of financial data by pandas and its visualization (1)
Summary of Python articles by pharmaceutical company researcher Yukiya
[OpenCV / Python] I tried image analysis of cells with OpenCV
Calculate the regression coefficient of simple regression analysis with python
Challenge principal component analysis of text data with Python
List of Python code used in big data analysis
Explanation of the concept of regression analysis using Python Part 1
Python: Diagram of 2D data distribution (kernel density estimation)
Reproduce the execution example of Chapter 4 of Hajipata in Python
Group by consecutive elements of a list in Python