- Видео 105
- Просмотров 38 870
Oliver Hennigh
Добавлен 2 ноя 2011
Field Reversed Configuration Formation, Two Fluid MHD
Shows the formation of a field reversed configuration (FRC) from a theta pinch. FRCs are often used to confine plasma in fusion reactors due to their closed magnetic field lines. The simulation starts with a uniform plasma and magnetic field. A theta pinch is imposed by coils outside the visualization. This compresses the plasma and forms the FRC. A two fluid model is used where the electrons and ions are modeled as separate fluids. Video shows the magnetic field, current, electron density and ion density over time. While I don't have a reference this is probably how the FRC is formed in Helion's or TAE's fusion reactors and is a common method for forming FRCs.
I use initial conditions sim...
I use initial conditions sim...
Просмотров: 393
Видео
Exploding Plasma, Two Fluid MHD
Просмотров 110Месяц назад
Two fluid MHD simulation of expanding plasma. The plasma is heated to around 1 keV. The simulation shows the electrons on left and hydrogen ions on the right. Due to the electrons smaller mass they are quickly blown off the plasma. This seems to create lower-hybrid drift instabilities (LMDI) but I am not sure. This process also results in an electromagnetic pulse due to the charge separation.
Plasma Frequency Simulation, Two Fluid MHD
Просмотров 48Месяц назад
Shows an electromagnetic wave hitting spheres of plasma with different plasma frequencies (number density). When the wave hits a plasma with wavelength greater then it passes through however when a wave hits a plasma with a smaller wavelength it is reflected. When hitting a plasma with equal wavelength it is mostly absorbed but also partially reflected. Domain size is 1^3m, sphere radius 0.25, ...
Higher Resolution Two Fluid Magnetic Reconnection
Просмотров 41Месяц назад
High resolution version of this, ruclips.net/video/TqvfLIdwC6g/видео.html. Plot is of momentum.
MHD Current Sheet, Magnetic Field Lines
Просмотров 49Месяц назад
Simple 2D Current Sheet simulation with Ideal MHD. Longer solve time then the last one and showing magnetic fields. Same initial conditions as found here, flash.rochester.edu/site/flashcode/user_support/flash_ug_devel/node192.html
Two-Fluid Collisionless Magnetic Reconnection
Просмотров 31Месяц назад
Magnetic Reconnection modeled with Two-Fluid MHD. Initial conditions given from this paper, www.ammar-hakim.org/_static/files/Phys.-Plasmas-2007-Hakim.pdf. There is a small mistake on equation 42. Denominator should be 20 instead of 12. Took me a long time to find this.. Resolution ~2,500x2,500
MHD Current Sheet
Просмотров 772 месяца назад
Simple 2D Current Sheet simulation. Left is By and right is pressure. Same initial conditions as found here, flash.rochester.edu/site/flashcode/user_support/flash_ug_devel/node192.html Domain size 2,000x2,000
Magnetic Blast
Просмотров 1162 месяца назад
Blast with uniform magnetic field using Ideal MHD. Same example as seen in athena but implemented on GPU and run at 400x400x400x resolution. github.com/PrincetonUniversity/athena/blob/master/inputs/mhd/athinput.blast
De Laval Nozzle Simulation
Просмотров 1572 месяца назад
Simulation of a De Laval Nozzle. Euler equations. Simulation parameters a bit off but was aiming for a realistic setup. Still looks nice though. STL file # Ref: www.thingiverse.com/thing:280483 #License #BSD-2-CLAUSE #Customizable Rocket Nozzle #by waterside is licensed under the BSD License license.
Imploding Pumpkin (FV Euler)
Просмотров 3,3 тыс.3 месяца назад
FV solver simulation of an imploding pumpkin. Euler equations of in-viscous flow. 500x500x500 domain size and 2nd order space and time. Would like to add surface modeling when I have time. Still working on code refactor but getting all my physics in one coherent place now. # Pumpkin Patch by tone001 on Thingiverse: www.thingiverse.com/thing:1836056
FDTD Radar Cross Section
Просмотров 353 месяца назад
Simple FDTD simulation of wave interacting with B2 bomber. Simulation somewhat unrealistic. Frequency of wave 0.1 GHz. Bomber is modeled as pure copper. Simulation size 500x500x500 or 125 million cells. Still restructuring code. STL Ref: B2 Spirit Stealth Bomber by JCanz on Thingiverse: www.thingiverse.com/thing:1048103 This thing was created by Thingiverse user JCanz, and is licensed under Cre...
DSMC simulation of X-71 Space Shuttle
Просмотров 2033 месяца назад
Just a fun simulation of a space shuttle I found here, www.thingiverse.com/thing:5993259. Code is due for a major rewrite now. Next up surface modeling and back to z-pinch work.
DSMC simulation of a Jet hitting a sphere
Просмотров 3583 месяца назад
Marching cube for surface modeling. Hard sphere for collision model. Still a work in progress. ~80 million particles.
GPU PIC Code with Automatic Particle Sorting
Просмотров 3715 месяцев назад
Implemented automatic particle sorting in my PIC code. Particles are moved in memory after push step. This allows faster memory transfers to grid and Monte Carlo Collision modeling. Video shows index of particle in list of particles. As the particles spread out their index in the list changes to keep them grouped in each cell.
EM PIC code, Just kicking some particles around
Просмотров 1766 месяцев назад
EM PIC code, Just kicking some particles around
Kelvin Helmholtz Instability 500 million cell 3D Finite Volume
Просмотров 296Год назад
Kelvin Helmholtz Instability 500 million cell 3D Finite Volume
Laser wakefield acceleration using WarpX
Просмотров 198Год назад
Laser wakefield acceleration using WarpX
Particle in Cell Fusor Simulation, 800 million particles
Просмотров 153Год назад
Particle in Cell Fusor Simulation, 800 million particles
Plasma Bunny, PIC simulation 800 million particles
Просмотров 1,1 тыс.Год назад
Plasma Bunny, PIC simulation 800 million particles
Electrons in Box, 200 million particle simulation
Просмотров 562Год назад
Electrons in Box, 200 million particle simulation
Rendering done with VTK?
Currently yes with paraview. I am working on a full scale simulation of a reactor like Helions. This will be ~10 billion cells though and require my own rendering engine due to the size. I need to update it but here is the current prototype for the rendering github.com/loliverhennigh/PhantomGaze
@@oliverhennigh451 Nice! Thinking of writing my own visualization for my kinetic solver too but for different reasons: no visualization software supports arbitrary order FE solutions on different bases (except GLVis). Also, its a lot of fun to do visualization and computer graphics!
I fixed an issue in the initial conditions that's in the video but here is the cleaned up source if anyone is interested, github.com/loliverhennigh/ConstrainedTransportZPinch
This is amazing!
Silly rabbit, Trix are for kids.
Well done
Does the electron density follow exp(voltage / kT)? Is there an electron temperature profile? What was the initial plasma radius in Debye lengths?
1 Corinthians 15:1-4 Moreover, brethren, I declare unto you the gospel which I preached unto you, which also ye have received, and wherein ye stand; 2 By which also ye are saved, if ye keep in memory what I preached unto you, unless ye have believed in vain. 3 For I delivered unto you first of all that which I also received, how that Christ died for our sins according to the scriptures; 4 And that he was buried, and that he rose again the third day according to the scriptures:
Лучший! Спасибо, мне есть к чему стремиться :)
now we can finally see what would happen if we replaced the titan submarine with a pumpkin. this is a huge breakthrough in science!
Thank you very much for this simulation, though I would also want to see a simulation of exploding pumpkin, that would be very nice indeed!
Imploding pumpkins are a great deal in my area. Thanks for showing this, maybe it will help finding a solution
Thank you for this. I thought I was the only one having this problem
Mythical algorithm pull
Oh, so THAT'S what an imploding pumpkin looks like. I always wondered.
The blowtorch in my pants:
what softwear plz?
I am still writing the solver. Not a whole lot yet but once I finish I will put it on GitHub.
good job
Paper?
artistic science 🙂
"................." "Penny for your thoughts." "No deal." "C'mon give me one word." "Mortifying." "Huh. You didn't seem like it a minute ago. So i think you meant to say gratifying." "Big words don't fit in your mouth..." "Yeah? Something else fit in just fine earlier." "HahHaHahHA!" "Oh Yeah! Soooooo mortified, are you?" "You know I'm easy to distract...." "Some guilty conscience you've got!" "Better than yours. C'mere you!" "Ahaha!! Wait--! G-gently! Gently, goddamnit!!"
silence, bot
@@kartoffelbrei8090 nuh uh
@@sciepan666 This is like exactly what a untrained LLM would produce. Wild stuff man
Um, what is the name of the software that you are using
Is there amr? Turbulence model?
Just Euler equations and FV with explicit time stepping. It’s on a dense grid as well but don’t remember the resolution. I can get around 500 million cells on my 4090 and if I do some tricks can get up to 4 billion using out of core memory.
Absolutely wild resolution
Periodic boundary conditions used on all sides which is why you see the weirdness on the edges.
Astonishing! What hardware are you running this on?
This was a fairly small simulation run on my RTX 4090. Sim size about 4 million. I will rewrite the solver in Taichi or Warp though and should be able to get ~250 million cell sims running.
@@oliverhennigh451 250 million is really nice! I would assume using something like Taichi etc. saves a bunch of time compared to CUDA/OpenCL in the development, but what about simulation speed? Do you know your achieved vs. theoretical throughput?
@@yunuszenichowski This is a good question that I would also like to know the answer to haha. I have done some pretty thorough benchmarks for Warp and CUDA/OpenCL on Lattice Boltzmann methods and found them achieving same performance. I would assume will also be the case for Taichi but should test it when I get a chance. LBM is a bit of a contrived problem though and its not terribly difficult to get optimal performance. I was hopping to get my solver in a better place and compare to Athena++ when I run on the CPU. Not sure how to compare the GPU though...
@@oliverhennigh451 The bare LBM implementation is relatively easy to make fast, but it obviously gets more difficult, the more features and methods you add. I really like the idea of abstracting away the performance optimization, since it's very tedious if you don't know what you're doing, like me :) . And you could get cross-platform, which I really miss using CUDA.
What language do you use?
This is written in Python using JAX (github.com/google/jax). I wrote this in JAX to do automatic differentiation through the solver and allow for design optimization. You can see this here where I optimize the initial conditions so that at a given time the plasma forms an image of a smiling pumpkin ruclips.net/user/shorts7l-JdndaqBo. Ultimately I will rewrite this in Taichi or Warp which will allow for ~10x larger simulations. github.com/NVIDIA/warp www.taichi-lang.org/. I have an inviscous Euler solver that can run a 500 million cell sim on my 4090 and it uses Taichi.
@@oliverhennigh451 I probably discovered your channel from a post on the Taichi discord? I'm really interested in playing with Taichi. I was also interested in Warp (thought I saw it used for differential renderering/physics but have a very hard time finding documentation on it)
nice!
Wow, this is soo cool!
Plasma bnuuy Plasma bnuuy Plasma bnuuy
What a random video for YT to recommend.
How long it renders?
It took about two hours in paraview although I might try writing my own ray tracer now. The actual computation was around 3 hours though.
@@oliverhennigh451 wow you write your own? Cool! Which language you're using for ray tracer?
@@KangJangkrik I am using a library called warp, github.com/NVIDIA/warp. It lets you write optimized kernels in python. I only learned about it around 4 months ago and it has been awesome to use. Makes it really easy to implement optimized code that runs fast on GPUs. This is how I wrote the PIC solver and it only took a day or so to write (~400 lines of python). They have some ray tracing examples I was looking at and might give it a go.
@@oliverhennigh451 awesome! Mind to create tutorial video? :)
I’ll think about it :)
why did the youtube algorithm recommend this? i have no idea! will i interact with it so more people see it? FUCK YEAH!
Okay but why?
Why not?
Mostly for fun but also to show what is possible now. This simulation is actually about as big as the one here for example ruclips.net/video/lgxVYl_pslI/видео.html (their grid size is bigger). It only took me a few hours on a single gpu and can probably be made a bit faster/bigger.
Ooo neat.
You have a new subscriber now ;)
Thanks
Hi Oliver, can you share your email id?
👍
Great
please can you share the data of this I need it, or make one video on how to download it
I am looking for a course on Artificial Intelligence for CFD. If you can provide me please contact, I will pay you for this. Thanks
Soo... it's not correct?
Hi man really great work. Any updates on dnn implementation in cfd .
This is one of the most well thought out videos I have seen in a while - amazing work!!
Beautiful. It amazes me how neural networks offer a way to simplify really complex problems into a question of optimisation that we can automate. Great work. I would never have thought you could apply them to this kind of problem, where no explicit function to be approximated is apparent.
This is awesome! I was thinking of doing something similar with HL devices.
This is really amazing!!! I am a senior student studying the CFD, and for the capstone project I want to use machine learning for the boundary flow separation prediction. Your work is awesome and really helpful for me!
Do you calculate loss for every output of the decoder, or you calculate loss for the 4 outputs together?
You need a bigger tank and 3 goldfishes is the minimum to keep goldfishes
Can you put a more detailed video?
Hey Mehras, I'm a bit surprised anyone sees my videos haha. Right now I am wrapping up this and some other stuff in a paper for ICRL so hopefully I will be done Oct 27th (fingers crossed). After that I am going to make a fun video explaining all the stuff in the paper. This work was actually supported by the AIgrant thing and I made a video outlining my stuff here (ruclips.net/video/3ZbmrUH9eto/видео.html). I'm about half way done with my project so my video will be like a what did I do so far thing. Its weird to watch that old video and realize that a lot of the stuff I ended up doing didn't work the way I thought it would haha. That damn unsupervised loss function idea I had took 2 months of my life and didn't work at all. Basically what is happening in the video is a network is predicting the steady state heat dissipation from a list of parameters corresponding to the height of the fin things. Then I kinda treat the heat at a loss function that I minimize by doing gradient decent on the parameter space. The fins take heights that try to cool off the heat sink as well as possible. Probably a bad explanation. The name of the video is a little miss leading too but I haven't really settled on a good way to say it. Here is a rough draft of the paper abstract if you are interested. I rewrite the whole thing every day so I'm not really sure if this is how it will come out but I will post a link to the paper when its finally done. " In this paper, we propose a novel method that makes use of deep neural networks and gradient decent to perform automated design on complex real world problems. Our approach works by training a neural network to mimic the fitness function of the optimization task and then, using the differential nature of the neural network, we perform gradient decent to maximize the fitness. We demonstrate this methods effectiveness by designing an optimized heat sink and both 2D and 3D wing foils that maximize the lift drag ratio under steady state flow conditions. We highlight that our method has two distinct benefits. First, evaluating the neural networks prediction of fitness can be orders of magnitude faster then simulating the system of interest. Second, using gradient decent allows the design space to be searched much more efficiently. " Oh ya, all the code is here (github.com/loliverhennigh/Flow-Sculpter) but it is super messy right now and I dont have time to clean it up till after the paper deadline. I do have some similar type projects like github.com/loliverhennigh/Computational-Fluid-Dynamics-Machine-Learning-Examples and github.com/loliverhennigh/Phy-Net.
I made a somewhat more detailed video ruclips.net/video/Xr91QAPBBa4/видео.html