- Видео 37
- Просмотров 8 142
tristandeme
Добавлен 14 сен 2010
4K SPH Python+Taichi. 300K particles. Simulation of sea waves gradually flooding the beach
Study of a simulation of sea waves getting bigger and bigger and gradually flooding the beach.. Added real sound of sea waves.
300 K particles.
Simulation written from scratch, from nothing, only with the languages Python and Taichi. Taichi is extremly fast and powefull because it knows how to use the garphic card (here Nwidia RTX 4060).
The display is done with Taichi.
SPH means smoothed particle hydrodynamics, it is a meshfree particle method based on Lagrangian formulation, and has been widely applied to different areas in engineering and science.
300 K particles.
Simulation written from scratch, from nothing, only with the languages Python and Taichi. Taichi is extremly fast and powefull because it knows how to use the garphic card (here Nwidia RTX 4060).
The display is done with Taichi.
SPH means smoothed particle hydrodynamics, it is a meshfree particle method based on Lagrangian formulation, and has been widely applied to different areas in engineering and science.
Просмотров: 14
Видео
4K SPH Python+Taichi. 80K particles. Study of a falling water simulation. Walls with Taichi's mesh.
Просмотров 619 часов назад
This time it is water ! Study of a simulation of falling water with walls created using Taichi's mesh function and much better calculations of particle bounce between particles and on walls or balls with the Taichi's relflex function . Added sounds of water... 80 K particles. Simulation written from scratch, from nothing, only with the languages Python and Taichi. Taichi is extremly fast and po...
4K SPH Python+Taichi. 100K particles. Study of a falling sand simulation. Walls with Taichi's mesh.
Просмотров 1114 дней назад
Study of a simulation of falling sand with walls created using Taichi's mesh function and much better calculations of particle bounce between particles and on walls or balls with the Taichi's relflex function . Added sounds of water... 100 K particles. Simulation written from scratch, from nothing, only with the languages Python and Taichi. Taichi is extremly fast and powefull because it knows ...
4K SPH Python+Taichi. 100K particles. Merlin 1a engine horizontal test. Better nozzle. Real noise.
Просмотров 1614 дней назад
For this new year 2025 : Another 4K SPH simulation of an Horizontal test of a Merlin 1a engine from SpaceX, with many start/stop... and the real noise of the Merlin 1a. This time, the combustion chamber and nozzle are created using Taichi's mesh function, making a much more realistic engine made of real sheet metal and particles. You can compare with te previous one : ruclips.net/video/V8X_y6Gh...
4K SPH Python+Taichi. 100K particles. Merlin 1a engine horizontal test 1 small bug fixed, real noise
Просмотров 6921 день назад
For this new year 2025 : Another 4K SPH simulation of an Horizontal test of a Merlin 1a engine from SpaceX, with many start/stop... and the real noise of the Merlin 1a. This time, the combustion chamber and nozzle become hot when the engine is running. Compared with the previous simulation, I fixed a small bug (a second one... !) concerning reflex rebound calculations in the nozzle. The jet gen...
4K SPH Python+Taichi. 100K particles. Horizontal test of Merlin 1a engine many start/stop real noise
Просмотров 35928 дней назад
For this new year 2025 : 4K SPH simulation of an Horizontal test of a Merlin 1a engine from SpaceX, with many start/stop... and the real noise of the Merlin 1a. This time, the combustion chamber and nozzle become hot when the engine is running. After correcting a bug, you can see that the jet at the nozzle outlet conforms to what can be seen on real rocket engines. This simulation is the most d...
4K SPH Python+Taichi. 100K particles. Ignition of the Vulcain engine of the Ariane V rocket. Off/on.
Просмотров 22Месяц назад
Ignition of the Vulcain engine of the Ariane V rocket. Then the engine is turned off and on again... With the real noise of Ariane V. Gauges : From up left to the right : * Level of filling of reaction chamber * Temperature in chamber * Start/stop light Below the reactor left to right : * Flow speed at exit of chamber * Flow speed at exit of nozzle * Thrust at exit of nozzle Simulation written ...
New! 4K SPH Python + Taichi. 100K particles. Mars collide Earth 1st 80 K particles, 2nd 10K. +10K p.
Просмотров 28Месяц назад
Mars collides Earth, Earth becomes a bowl of magma... and Mars no longer exists. Mars is torn apart in this encounter with Earth, because the mass of Mars is only 10% of that of Earth. As the speed of the collision is not very high Earth is not torn like Mars. Using a completely new feature for bounces between particles with the “ti.math.reflect” instruction. Now two particles in collision will...
4K SPH Python + Taichi. 100 K particles. Also Sprach Zarathustra : a star is born with planetoids !
Просмотров 29Месяц назад
Better simulation with more planetoids. Still Newton law for gravitational attraction: (mass1 of particle1 mass2 of particle2) / distance 2. Completely new algorithm for the accretion/aggregation of matter allowing the formation of the star and its planetoids within an accretion disk. Reintroduction of repulsion / push back algorithms but stable now. The radiation pressure algorithm is still th...
New! 4K SPH Python + Taichi. 120K particles. Mars collide Earth 1st 80 K particles, 2nd 10K. +30K p.
Просмотров 288Месяц назад
With the new last features regarding the colors : creation of a new colors for the highest temperature , a blue between "sky blue" and "blue azurin" much more beautiful. And all other new feature since the last simulation on the same subject (in nov. 27th). Mars collides Earth, Earth becomes a bowl of magma... and Mars no longer exists. After the collision we can see that there is a big shockwa...
4K SPH Python+Taichi 80K particles A cloud of dust around a black hole gives galaxies spirals or not
Просмотров 483Месяц назад
At the beginning a simple cloud of dust around a black hole (masse 100K the cloud is 80 K particles with a mass of 1 each). Remark : for this simulation of course the push back algorithm is disconnected because the stars do not push back each other, only the gravity plays here. New feature from now : each time two particles collide, as two matters (two atoms) cannot be at the same location, the...
4K SPH Python+Taichi 82K particles. Direct hit of Moon into Earth. 1° 80 K particles, 2° 2K. +30K
Просмотров 255Месяц назад
Direct hit of the Moon into Earth. Enormous crater in Earth with a big hole but the shokwave bounces against the opposite side and then create an gigantic eruption from the zone of the collision. the eruption turn because earth turn around his axis (view from the north pole). New feature from now : each time two particles collide, as two matters (two atoms) cannot be at the same location, they ...
4K SPH Python+Taichi 120K particles Mars collides Earth 1° 80 K particles, 2° 10K. +30K Risky place!
Просмотров 2582 месяца назад
Mars collides Earth, an other video taken by a crazy captain who put his spaceship at a very risky place ! Earth becomes a bowl of magma... and Mars no longer exists. After the collision we can see that there is a big shockwave insideEarth, that bounce against the opposite site of the collision, and then creates an enormous eruption from the zone of this collision. Two types of particles with d...
4K SPH Python + Taichi. 120K particles. Mars collide Earth 1st 80 K particles, 2nd 10K. +30K p.
Просмотров 652 месяца назад
Mars collides Earth, Earth becomes a bowl of magma... and Mars no longer exists. After the collision we can see that there is a big shockwave insideEarth, that bounce against the opposite site of the collision, and then creates an enormous eruption from the zone of this collision. Two types of particles with different behavior : 1) Hydrogen for stars can have a high temperature 2) earth materia...
4K SPH Python + Taichi. 126 K particles. Again two stars collide 1st 80 K particles, 2nd 16K. +30Kp.
Просмотров 1342 месяца назад
Two stars collide. You can see that each one heat the other before the collision due to the radiative pression I have programmed in my simulation for stars (not planets) After the collision we can see that there is a big shockwave inside the main star, that bounce against the opposite site of the collision, and then creates an enormous eruption from the zone of this collision. Two types of part...
4K SPH sim Python + Taichi. 126 K particles. Two stars collide 1st 80 K particles, 2nd 16K, + 30 K p
Просмотров 612 месяца назад
4K SPH sim Python Taichi. 126 K particles. Two stars collide 1st 80 K particles, 2nd 16K, 30 K p
4K SPH Python + Taichi. 110 K particles. A Star becomes a Nova, explodes, collapses, explodes ...
Просмотров 2942 месяца назад
4K SPH Python Taichi. 110 K particles. A Star becomes a Nova, explodes, collapses, explodes ...
4K SPH sim Python + Taichi. 80992 particles + 40K small particles. Moon collide with Earth.
Просмотров 2862 месяца назад
4K SPH sim Python Taichi. 80992 particles 40K small particles. Moon collide with Earth.
4K SPH sim Python + Taichi. 80.8 K particles + 20K small particles. "14xJupiter" collide the Sun.
Просмотров 1242 месяца назад
4K SPH sim Python Taichi. 80.8 K particles 20K small particles. "14xJupiter" collide the Sun.
4K video, SPH sim Python + Taichi. 96 K particles + 20K small particles. Two stars collide,
Просмотров 1032 месяца назад
4K video, SPH sim Python Taichi. 96 K particles 20K small particles. Two stars collide,
4K video SPH simulation 70 K particles.V3 of reactor: better ergols and nozzle+ gauge+ description
Просмотров 9810 месяцев назад
4K video SPH simulation 70 K particles.V3 of reactor: better ergols and nozzle gauge description
4K video SPH simulation 70 K particles. Improvement of reactor: better ergols and nozzle+new gauge
Просмотров 21110 месяцев назад
4K video SPH simulation 70 K particles. Improvement of reactor: better ergols and nozzle new gauge
4K video SPH simulation 50 K particles. Ignition of a reactor for a rocket and flow stabilization.
Просмотров 54310 месяцев назад
4K video SPH simulation 50 K particles. Ignition of a reactor for a rocket and flow stabilization.
4K video SPH simulation 50 K. 2 °turbulences study of fluid density injected on a sphere and bounce.
Просмотров 13610 месяцев назад
4K video SPH simulation 50 K. 2 °turbulences study of fluid density injected on a sphere and bounce.
4K video, simulation SPH 50 K. Turbulences study of fluid density injected on a sphere and bounce.
Просмотров 56110 месяцев назад
4K video, simulation SPH 50 K. Turbulences study of fluid density injected on a sphere and bounce.
4K video, simulation SPH 50 K particles. Turbulences study of fluid injected on a sphere and bounce.
Просмотров 25810 месяцев назад
4K video, simulation SPH 50 K particles. Turbulences study of fluid injected on a sphere and bounce.
4K & fluid video SPH. Moon colliding sideways with earth and earth become a ball of magma.
Просмотров 41910 месяцев назад
4K & fluid video SPH. Moon colliding sideways with earth and earth become a ball of magma.
4K video SPH. a small star (50 times Jupiter) collide the Sun. 105 000 particles.
Просмотров 6210 месяцев назад
4K video SPH. a small star (50 times Jupiter) collide the Sun. 105 000 particles.
Better resolution : A planet 50 times the size of Jupiter (same density) collide the sun. SPH method
Просмотров 27410 месяцев назад
Better resolution : A planet 50 times the size of Jupiter (same density) collide the sun. SPH method
With better resolution : Moon slowly collides with earth. Earth finish with an asteroid belt.
Просмотров 1,3 тыс.10 месяцев назад
With better resolution : Moon slowly collides with earth. Earth finish with an asteroid belt.
OK, this seems like a really cool simulator now, especially for water physics
Oh my god a water sim cool! Although the water acts more like sand though
Code?
As explained in description of the video, languages Python + Taichi (+ Numba) from scratch.
Great work! Do you think is possible to extend this work to water rockets?
What are the bar graphs supposed to mean
I explain this in the description : Gauges : From up left to the right : * Level of filling of reaction chamber * Temperature in chamber * Start/stop light Below the reactor left to right : * Flow speed at exit of chamber * Flow speed at exit of nozzle * Thrust at exit of nozzle
@ ok thanks
I like this version of the app you are using, although it seems that cohesion is a little too strong?
yes the cohesion is a bit too strong. I think I should look at this. But Mars is destroyed completly, and do not forget that the mass of earth is ten (10) times the one of Mars, so it is not completly abnormal to see Earth not exploding like Mars. However Earth is not far from the explosion because his diameter increases a lot after the collision.
@ yeah?
Python is definitely bogging this down. If you can somehow convert it to assembly (via compiling or something) or speed it up, I believe that this application would rival those that are similar
this is still VERY fast for an SPH simulation (I've seen your other video, 1 hour for 80k particles is pretty decent imo)
In fact the SPH calculations are done by Taichi running on the GPU CUDA (Nvidia RTX 4060). Python just encapsulates Taichi. For the launching of the program and mouse detection I use Numba (a "Just in Time compiled" & paralell on CPU sub-program of Python). For the display again Taichi, for the recording of the images and then the generation of the video I use Moviepy when the simulation is finished. Taichi is a "Just in Time compiled" langages and is massively parallel on the GPU . So the simulation IS compiled ! In fact for this one it takes 0.7 second par loop (or step as you want). Here it has 10000 steps so it took 116 minutes (during the night...) but the result is a long video of 9 minutes.
@ ooh, I have a 4060 too
Is there some sort of update log?
nvm I just dumb, I looked at the dec
thats pretty rad
Thanks !
Next step is a galaxy
Oh my god it’s a protoplanetary disk!!!!
Or many galaxies... I do not know !
Textures?
I am not sure to understand what do you meand by "textures", I do nothing special for that in fact... if you mean drawing seas and continents I do not know how to do that
@ no I meant where are the textures for the planets
Have you thought of using a stabilizer to allow the particles that make up the planet to come together?
There is the gravity first. I added the new feature I talk about in the description but only if two particles are very close and with a low cinetique energy.
Wow you’re really pumping out videos now!
amazing
How long does this typically take you?
3200 steps (loops of the program) * 1.45 seconds per step / 60 = 77 minutes... thanks to Taichi !
First
I don’t know too much about coding so it might actually be a lot to do
It could be easy because all you really have to do is pull up the Color of the temperature range. Red is cool; white is warm; blue is hot. Then change that based off of the material of the particle
I checked what you said and you are right in term of physic. I will try this ! Thanks. uk.pinterest.com/pin/191895634108480447/ .....I tried "blue azur", "blue electric" and "blue" and it is not OK, I have the feeling to see ... water. I think this is coming from two facts : 1) A star emits the blue color at a temperature above 6000 °K. The star Rigel is blue beacause it is at 11000 °K but this temperature does not existe on earth (except in some research laboratories). 2) for a human being in his day to day life, blue means mainly water and water in the nature is naturally cold. This why painters call "blue" the "cold color". I think I will keep white for the "maximum" for instance still for a human being the sun is white because his surface is at 5770°K. But I will try to change the intermediates colors. commercialledlights.com/blog/lighting-articles/color-temperature/ Feel free to tell me your opinion. Thanks again
Ahhh cool! In the future you could even add a realistic setting where you could actually see the visuals of the particles without just seeing the temp
First
Welcome back to the game buddyo
Thanks !
Oh my god
i really thought this was space sim. Really cool, that it's from scratch, but still not very visually pleasing, as the top comment says. it's also low fps, but both seem fixable. i don't have ANY experience in this, so just an opinion, based on my limited knowlege.
Is it possible to raymarch and save the simulation as a video? It would make it a whole lot more visually pleasing
What’s the simulator called?
Cool stuff
OoooOoOOOOo… Very cool graphics on the left, now what are they for?
I tried to explain this in my description, but it is a little bit too long : Two gauges are on the left : above the chamber it shows the filling level of the reaction chamber. The red part indicate if it is below 50 %. The one under the chamber indicate the ejection's speed of the burning hot flow of gaz measured after the exit of the nozzle. So... I added a description panel directly in the top left of the screen for my next post (today), I hope this will clarify these gauges. Thanks for giving me this idea !
excellent work
RUclips recommendations never fail
Im thinking of sphere with deflector or a cone with deflector
Yes me too. But I must find how a particle bounce on such a deflector, for instance a cone to have a better flow behind the sphere...
This reminds me of those simulations were its showing the aerodynamics of something
Wow the simulation looks a lot more smother, also what is the largest amount of particles you are able to run?
A little bit more than 100 K but if I collide two stars I can have 200 K... and wait 1 hour to have a video of 3 minutes length. Taichi on Nvidia GeForce RTX 4060 Laptop GPU.
a
So what does the red and white particles mean?
These colors show the temperature, grey the lowest, then red, orange, yellow, peachpuff, purple, lemonchiffon for the hottest. I tried to be realistic....
whys bro on 8 fps
cool but fps is weird tbh, impressive you did this with python and scratch
Yes unfortunatly I know, but I am at 1 second per iterartion/ step/loop of the program on my graphic card (I have a Nvidia RTX laptop 4060) for calculus and display with Taichi... and too impatient to wait hours before being able to check the result....
Is that space simulation toolkit or something else
No, it is written from nothing, I realized this with Python, plus Numpy and Numba to initialise planets, stars, or galaxies, and the simulation is done with the Taichi language (Taichi works as subprogram of Python) for the simulation itself and graphical display. Nothing esle... Taichi is able to use directly the graphic card (I have a Nvidia RTX laptop 4060) for calculus and display.
use opensph or spacesim instead you can make much better planet collisions with opensph or spacesim then this@@tristandeme
Sorry... but no. It is much more interesting for me to do it from scratch. Spacesim or Opensph are boring, you use something made by someone else, as a basic user, and then what ??? You learn nothing !
ok@@tristandeme
@@tristandeme Um, but I don’t understand about the second reply?
Oh wowie how cool. Lookin better than SpaceSim already!
An SPH project that has some heart.. finally.
Dont you mean space sim?
If you can refine this and make it more appealing and available to the public you might be able to create a large community with this. :/
Real
Thanks. do you mean add more explanations on the algorithms I use ? It is SPH comparing pair of paticles (so N**2 vulume of calculus it become quickly very long after 100 K particles) and I try to apply Navier-Stokes SPH theory.
@@tristandeme Yeah basically I was. But also you can kind of commercialize this if there’s enough demand for it or work with other people that are building SPH simulation software like SpaceSim
@@tristandeme like making it public use and possible raymarched
i mean, there wouldnt be much of a point to making knockoff spacesim
Nice
Yes
Am I the first subscriber?? Like your video!
Yes you are the first !