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.ps1
instead.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/samrachana
by 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
electronJS
to compile samrachana-web into desktop app for your operating stystem. This is how, I have prepared setup file for windows 🤐🤐🤐 -
Install
Python3.8.5
andNode 18
, and then clone the repository (seestep i-iii
of setup development) and then runbuild.sh
orbuild.ps1
from terminal.Once built, just run
run.sh
orrun.ps1
to start Samrachana whenever required. Note that, Samrachana runs on browser. When the server is running, going tohttp://localhost:8000
should 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.5
in your computer. Official Downloads -
Install
Node 18
in 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
activate
by typing these on your terminal(Optional).
Replacedirectory-of-cloned-repo
by the actual directory in which the repo is cloned. It issamrachana-web
by default.
The second line creates virtual environment in a hidden folder titled.venv
inside 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
.env
file from.env.example
and run the server: [For general user, the commented values should work just fine]npm run dev
-
To setup frontend, first
cd
tofrontend
, install the package bynpm install
and then make.env
file from.env.example
. Then run the development server:npm run dev
You 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. ↩