Samrachana is a free and open source structural analysis software based on Direct Stiffness Method. It is ideal for analysing 2D beams, frames and trusses.
If you find a bug or an issue, kindly post it in the discussion forum
| Go To Tutorials | See Releases | See Issues |
|---|
-
Although you can install Samrachana as an executable application, I don't recommend that right now. Consider using
build.ps1instead.To install Samrachana on Windows, you can download installer from here and simply run it. After the installation is completed, you can launch Samrachana just like you launch any other software.
To avoid fetching the executable time and again, Pin to Taskbar during the first run.
Samrachana is installed in
~/AppData/Local/samrachanaby default. To uninsall it, run this command on your terminal:remove-item ~/AppData/Local/samrachana -
At the moment, no installer is available for operating systems other than windows. So, the only option is to build from source or setup development.
You can use
electronJSto compile samrachana-web into desktop app for your operating stystem. This is how, I have prepared setup file for windows 🤐🤐🤐 -
Install
Python3.8.5andNode 18, and then clone the repository (seestep i-iiiof setup development) and then runbuild.shorbuild.ps1from terminal.Once built, just run
run.shorrun.ps1to start Samrachana whenever required. Note that, Samrachana runs on browser. When the server is running, going tohttp://localhost:8000should open the application.git clone https://github.com/badafest/samrachana-web.git cd samrachana-web ./build.sh -
Setup Development 1
If you just want to try out Samrachana, or want to contribute to this repository, the best way to install it is this way. You can follow these steps to setup development environment:
-
Install
Python3.8.5in your computer. Official Downloads -
Install
Node 18in your computer. Official Downloads -
Clone the repository by typing this in your terminal:
git clone https://github.com/badafest/samrachana-web.git -
Create a virtual environmant and run
activateby typing these on your terminal(Optional).
Replacedirectory-of-cloned-repoby the actual directory in which the repo is cloned. It issamrachana-webby default.
The second line creates virtual environment in a hidden folder titled.venvinside the directory.
(You can find the details Here)
The last line activates virtual environment so that the dependencies are not installed globally.cd ./directory-of-cloned-repo/server python3 -m venv ./.venv .venv/Scripts/activate -
Install the dependencies [
numba]:pip3 install -r ./src/python/requirements.txt -
Install
node_modules:npm install -
Make
.envfile from.env.exampleand run the server: [For general user, the commented values should work just fine]npm run dev -
To setup frontend, first
cdtofrontend, install the package bynpm installand then make.envfile from.env.example. Then run the development server:npm run devYou can then use the address shown in terminal to open samrachana on broswer.
-
Samrachana is made keeping users interested in function rather than interface of the application in mind. So, the learning curve of interface is as straight as possible. The basic keyboard shortcuts are shown in the right sidebar when there is no other form to show. For detail documentation of all the features available, refer to the docs here.
If you are interested in contributing to this repository and make Samrachana a better software, you can start by reading the CONTRIBUTING markdown file.
| Write me a Mail describing how you would contribute |
|---|
Before asking questions in discussion forum, please make sure that your question is not already answered in this document.
-
Is Samrachana free to use?
Samrachana is and always will be open source and free. You can not only use the software for free, but also download and modify the source code too. For details regarding what you can and can't do with the software and the source code, please read the LICENSE file.
-
How can I install Samrachana in my phone?
Samrachana is a desktop application and can't be installed in other devices. (Or at least, it is not intended to be.)
-
Can I work with 3D structures in Samrachana?
Unfortunately, you can't work with 3D structures currently. However, we are working to develop a 3D version of the software too.
-
Can Samrachana perform Finite Element Analysis?
In general, no. Samrachana is entirely designed for students just getting familiar with structural analysis. So, it only supports one dimensional line elements. (Although, curves are supported, they are broken down into small lines behind the scenes.) One can argue that, FEA can be performed to some extent using the software, but we will develop a separate version for that. So, stay tuned.
-
Can I submit my assignments using Samrachana?
Note that, the software comes with absolutely no warranty or liability. If your professor and institution has no problem with using the software to complete your assingments, that is completely fine with us. However, you can always use it to check your answers!
Footnotes
-
If you want to contribute, please refer For Developers section. ↩
