An open API service indexing awesome lists of open source software.

https://github.com/kyrylo-sovailo/p6

2D solid constructions editor and simulator
https://github.com/kyrylo-sovailo/p6

physics physics-2d physics-simulation wxwidgets

Last synced: 8 months ago
JSON representation

2D solid constructions editor and simulator

Awesome Lists containing this project

README

          

# Welcome to P6
![Bridge](/image/bridge.png "One screenshot worth thousands words")

## Features
- Simulates static solid constructions.
- Has nonlinear materials.
- Has possibility to read and write exact data in text format.
- Can save and import constructions.
- Can save images.
- Can be built on every platform supported by [wxWidgets](https://www.wxwidgets.org).
- Has automatic building, testing and documentation systems.

## Installation
- Linux:
1. Build [wxWidgets](https://www.wxwidgets.org) or install it with your package manager.
2. Download [Eigen](http://eigen.tuxfamily.org) and specify it's location in Makefile.
3. (Optionally) Build [Google Test](https://github.com/google/googletest) or install it with your package manager.
4. (Optionally) Install [Doxygen](https://www.doxygen.nl) with your package manager.
5. Build project by typing in terminal:
```
make
```

- Windows:
1. Build [wxWidgets](https://www.wxwidgets.org) or download it's header files, 64-bit development files and release DLLs. Specify their location in Makefile-nmake-64.
2. Download [Eigen](http://eigen.tuxfamily.org) and specify it's location in Makefile-nmake-64.
3. (Optionally) Build [Google Test](https://github.com/google/googletest) and specify it's location in Makefile-nmake-64.
4. (Optionally) Download and install [Doxygen](https://www.doxygen.nl).
5. Enter Visual Studio command prompt by calling `VsDevCmd.bat -arch=amd64`. It is located in Visual Studio files, so you may need to add it's folder to `PATH` or call it directly.
6. Build project by typing:
```
nmake /F Makefile-nmake-64
```

Hints:
- Other available targets for Makefiles are `run`, `test` (requires [Google Test](https://github.com/google/googletest)), `doc` (requires [Doxygen](https://www.doxygen.nl)) and `clean`.
- If you are having issue with black icons, try building project with Visual Studio (better) or uncommenting `/D ICONS_SET_BACKGROUND` in Makefile-nmake-64 (worse).
- If you want to test P6 without having wxWidgets, delete `-D P6_FILE_WXWIDGETS` from Makefile or Makefile-nmake-64 respectively.
- If you do not want to use `dot`, disable this option in Doxyfile by setting `HAVE_DOT = NO`.

## Help
Application is developed to be simple, but there are some non-obvious moments:
1. For non-linear materials you can type arbitrary strain(stress) in "Formula" window. There is special variable "s" for "stress" and also "sin", "cos", "ln", "exp" functions.
2. Red point in "move" mode is the anchor. Selected elements are scaled and rotated around the anchor.
3. Do not forget to specify material and cross-sectional area of sticks.
4. Clicking on "node", "stick" or "force" tool makes selection contain only nodes, sticks or forces respectively.
5. Rotating mouse wheel with "force" tool activated makes forces be displayed bigger or smaller.

Created by Meta-chan (Kyrylo Sovailo)\
Feel free to contact me at [github](https://github.com/Meta-chan), [telegram](https://t.me/Meta_chan) and k.sovailo\@gmail.com