kyrylo-sovailo / P6

2D solid constructions editor and simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to P6

Bridge

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.
  • Has automatic building, testing and documentation systems.

Installation

  • Linux:

    1. Build wxWidgets or install it with your package manager.
    2. Download Eigen and specify it's location in Makefile.
    3. (Optionally) Build Google Test or install it with your package manager.
    4. (Optionally) Install Doxygen with your package manager.
    5. Build project by typing in terminal:
    make
    
  • Windows:

    1. Build wxWidgets or download it's header files, 64-bit development files and release DLLs. Specify their location in Makefile-nmake-64.
    2. Download Eigen and specify it's location in Makefile-nmake-64.
    3. (Optionally) Build Google Test and specify it's location in Makefile-nmake-64.
    4. (Optionally) Download and install Doxygen.
    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), doc (requires Doxygen) 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, telegram and k.sovailo@gmail.com

About

2D solid constructions editor and simulator

License:MIT License


Languages

Language:C++ 95.5%Language:CMake 4.5%