# Mechanics Apps
This repository contains the Python codes for webbased-visualization for mechanics principles, via Bokeh.
It contains different prototypes for web apps for the visualization of mechanics examples for the lectures of the Chair of Structural Mechanics, Prof. Müller, TUM (Technical University of Munich).
## Overview
The use of this repository is only suggested for developers. If you are only interested in using the completed apps, please visit the following website: http://www.bm.bgu.tum.de/lehre/interactive-apps/. <br>
For the math apps visit https://www.groups.ma.tum.de/en/algebra/karpfing/buecher/videoanimationen-interaktive-apps/.
Before starting developing, please take a look at our [Wiki](https://github.com/ChairOfStructuralMechanicsTUM/Mechanics_Apps/wiki). We use two different bokeh servers for different groups of apps, in order to avoid conflicts: most of the apps run on one server, some have to run on a second server since they interfere with other apps and might brake them.
This repository contains one folder for each app, with a main file and subfunction-files. The following files are important for running the server:
### Files
(.cmd is used for Windows and .sh is used for Linux. From a .sh file you can create the .exe file with the "Bat to Exe Converter" on the server) <br>
All apps run on one physical server which provides a different port for each bokeh server. <br>
We use a Windows server, therefore we use powershell and cmd scripts.
* ```appnames.conf``` the list of the names of apps that are completed and ready to run on the first bokeh server
* ```appnames_all.conf``` the list of the names of all apps. Autogenerated by running `dir * /AD /B > appnames_all.conf` via `cmd`. Need to manually remove the following folders: `.git AppOverviewPage shared`. Need to manually add all folders from `appnames_math.conf`.
* ```appnames_testing.conf``` the list of the names of the apps that are completed and ready to run on the second bokeh server
* ```appnames_math.conf``` the list of the names of the math apps that are completed and ready to run on another bokeh server
* ```bokehrunner.ps1``` runs a bokeh server hosting most of the bokeh apps
* ```bokehrunner_all.ps1``` runs a bokeh server hosting all bokeh apps from Port 443
* ```bokehrunner_testing.ps1``` runs another bokeh server hosting critical bokeh apps (might interfere with other apps if used on the same bokeh server)
* ```bokehrunner_math.ps1``` runs a bokeh server hosting math bokeh apps
* ```server.conf``` for configuration of the server, it contains the IP address of the server, the server port and the bokeh ports (which can be multiple)
* ```server_autorun.cmd``` calls the files for running the bokeh servers (.ps1 files)
* ```server_shutdown.cmd``` kills the processes for restart
### Directories
* ```AppOverviewPage/``` contains screenshots of the apps for a webpage, such as the overview page of the [Chair of Structural Mechanics](http://www.bm.bgu.tum.de/lehre/interactive-apps/)
* ```shared/``` contains custom LaTeX support for some bokeh objects like sliders and labels
* ```Math_Apps/``` interactive math apps provided for the [Department of Mathematics](https://www.groups.ma.tum.de/en/algebra/karpfing/buecher/videoanimationen-interaktive-apps/)
* ```<other>/``` different bokeh apps in directory format (see [Bokeh User Guide](http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#directory-format))
* ```.gitignore``` the files or file extensions listed here are not committed to GitHub when changed locally
## Server Architecture
We provide access to the apps through a bokeh server (https://docs.bokeh.org) in directory format (see http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#directory-format).
The server can be run in two modes:
* online mode: provide access to apps through the internet.
* offline mode: run the server locally
### General Server Setup
1. install Anaconda with Python version defined in the [Wiki](https://github.com/ChairOfStructuralMechanicsTUM/Mechanics_Apps/wiki/Current-Versions): https://www.anaconda.com/distribution/
2. install Git
* Linux: see https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
* Windows: see https://git-for-windows.github.io/
* For Windows we also suggest a desktop version of GitHub: see https://desktop.github.com/
3. clone **this** repository
* Windows with GitHub Desktop: File -> Clone Repository
* Linux from command line: ```git clone https://github.com/ChairOfStructuralMechanicsTUM/Mechanics_Apps.git```
* Windows with git bash: ```git clone https://github.com/ChairOfStructuralMechanicsTUM/Mechanics_Apps.git```
4. install additional Python packages (bokeh, nodejs, flexx, twisted) <br> *Windows:* If you chose to install Anaconda for all users, right click >> Run as administrator.
5. configure the server with ```server.conf``` to your own server settings. If you want to run the server locally, just use the existing configuration. If you want to run the server online, insert the global ip address and make sure that the server port is open to the world wide web.
6. In ```appnames.conf``` write the folder names of the apps you want to run on the server.
### Running the Server
* **Local running** (If you just want to run a single app locally)
- open a command window and navigate to the repository folder
- enter ```bokeh serve --show Directory_name```
- for example: ```bokeh serve --show Diffraction```
- the browser should open automatically and show the app. You can also directly access *localhost:Port* (For example *localhost:5006/Diffraction*) if your browser does not open automatically.
* **Web running** (If you want to publish several apps to the web)
- add the app to the file ```appnames.conf```
- run `server_autorun.exe`
- Navigate to *Global_IP:Port* in your browser (or the corresponding IP address set in ```server.conf```). For example: *127.0.0.1:5006*
- In our case, we use a proxy name for the *IP:Port*, which is *apps.bm.bgu.tum.de:5006* in order to display a more appropriate website name.
<br>
For more information and contacts, please consult the [Wiki](https://github.com/ChairOfStructuralMechanicsTUM/Mechanics_Apps/wiki).
<br>
## Apps
#### Technical Mechanics:
- [ ] 1) Tensile testing / Zugversuch (eb,rr)
- [ ] 2) Transverse strain / Querdehnung (eb,rr)
- [ ] 3) Double-supported beam with point load / Balken (ad)
- [x] 4) Maxwell's reciprocity theorem / Reziprozitätssatz von Maxwell (ad, me)
- [x] 5) Buckling / Knickung (ad, me)
- [ ] 6) Funicular / Seilbahn (br)
- [ ] 7) Polar moment of inertia / Polares Flächenträgheitsmoment ()
- [ ] 8) Combined moment of inertia / Zusammenges. Flächenträgheitsmoment ()
- [ ] 9) Combined center of mass moment / Zusammenges. Schwerpunktsmoment ()
- [ ] 10) Maypole / Maibaum ()
- [x] 11) Vector addition (rem, cfm)
- [ ] 12) Couple-moment (rem, cfm)
- [ ] 13) Moment is a free vector (rem, cfm)
- [ ] 14) Balken (ad, sk)
#### Supplementary course / Ergänzungskurs Technical Mechanics:
- [x] 1) Damped oscillator / Federpendel (eb, qa, ft)
- [x] 2) Pendulum / Schwerependel (eb, ft)
- [ ] 3) Base-excited oscillator / Fusspunkterregter Schwinger (eb, kb)
- [ ] 4) Tuned mass damper / Schwingungstilger (eb, rd)
- [ ] 5) Instant centre of rotation / Momentanpol der Leiter (Leiter) (ak, vu)
- [x] 6) Coriolis force/Drehscheibe-Corioliskraft (eb,ag)
- [x] 7) Boat with three swimmers / Boot mit drei Schwimmern (ma,ag)
- [x] 8) Collision / Stoss (ma,ag)
- [ ] 9) Rollercoaster (eb)
- [x] 10) Stopping distances (eb)
- [x] 11) Projectiles / Wurfgeschoss (eb)
- [ ] 12) Rolling Condition / Abrollbedingungen (eb)
- [x] 13) Rolling test / Rollversuch (eb, me)
- [ ] 14) Instant centre of rotation of the cupoler / Momentanpol der Koppel ()
- [ ] 15) Drop tube / Fallturm ()
- [ ] 16) Low-pressure
没有合适的资源?快使用搜索试试~ 我知道了~
用于动态机械系统交互式可视化的应用程序_Python.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共733个文件
py:218个
html:99个
png:75个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 157 浏览量
2023-04-10
23:43:34
上传
评论
收藏 26.3MB ZIP 举报
温馨提示
用于动态机械系统交互式可视化的应用程序_Python.zip
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 733 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
快撑死的鱼
- 粉丝: 1w+
- 资源: 9153
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)