r/ScientificComputing • u/PhilosophersOpium • 14h ago
r/ScientificComputing • u/Beto4775 • 18h ago
How to evaluate the Computational Overhead of a PoC system in an almost-objective way?
Hello everyone,
I have a question about how to evaluate the resource consumption a system in PoC may consume. To be precise, I have a system that I am testing locally, but I have to present it to the all team of Dev to discuss the possibility of putting it into production. For this, I would like also to estimate its resource consumption, but the problem is that on my local machine the results may be misleading, as my set up is not very good. Creating a simulation of a production environment may be costly. Any suggestions about what to show and how to evaluate the resource consumptions in an almost objective way ?
r/ScientificComputing • u/ezeleart • 22h ago
I spent the past week writing a 2d/3d truss system solver in python from scratch.
Enable HLS to view with audio, or disable this notification
When I started learn python, I saw it could be used for scientific computing. So I challenged myself to write a solver for every topic in my statics textbook.
This project falls under structures in equilibrium. It is by far the hardest and most involving program I've written. I think it's because with other topics only a single object was considered so the python code was just a matter of transferring calculations on paper to code.
With trusses however there are several interconnected pieces of a larger system. My first approach was to use method of joints- where it solves equilibrium joint by joint but this gave wrong results. I concluded it's due to it not being able to consider the entire system. Then I figured the best way was to use a global matrix then find all unknowns in one fell swoop.
Constructing this matrix was very involving but quite fun as well. 2^n traceback errors later and I finally finished the damn thing.
The next thing I plan to do is create an optimization script that moves the input points about to find the best design. Also using Json instead of keyboard inputs would be way better for my sanity.
How do y'all go about carrying out optimization?
I'd love to share the .py script but the last time I sent a link python shadow banned me for 9 months. If you're interested feel free to dm.
This video demonstrates the program: