Can ChatGPT write an Eulerian Fluid Simulator in 200 lines of code?

  Рет қаралды 15,449

Ten Minute Physics

Ten Minute Physics

Жыл бұрын

In this video I experimented with ChatGPT to see whether my channel is now obsolete :-)
• 17 - How to write an E... This is the original video in which I show how to write an Euerlian Fluid simulator in 200 lines of code.

Пікірлер: 41
@patryk6769
@patryk6769 Жыл бұрын
It doesn't get stuck, but it has a limit of tokens it can produce per user request. Sometimes I just ask it to "continue your code" to get rest of the answer.
@aditya_a
@aditya_a Жыл бұрын
right i usually ask it "what's after the line ____" and it continues
@vaan2900
@vaan2900 Жыл бұрын
I just say 'continue'. always works
@johnlin9665
@johnlin9665 Жыл бұрын
"Sure, I can do that!" Gets stuck... Sounds like OpenAI trained GPT to write code the same way I do.
@TenMinutePhysics
@TenMinutePhysics Жыл бұрын
Thanks for the hint about the possibility to generate more code. I might do a follow-up video and discuss some more findings... and if somebody gets the flipper or tutorial 3 working, let us know in the comments
@ThreadingReality
@ThreadingReality Жыл бұрын
Funny true story, after your eulerian vid I wanted to code it in unity, and had issues converting the Java, so I signed up to chatgpt to help expand on some of your techniques and explain or change things. You should also check out gpt4 it's generation abilities are way better for code now
@EMAN360ELITE
@EMAN360ELITE 6 ай бұрын
Hey @TenMinutePhysics! I converted your 2D Javascript implementation of PIC-FLIP to C++, then ChatGPT 3.5 converted it from a 2D simulation to a 3D one on pretty much the first try! I just told it I was going to feed it several methods of a 2D fluid simulator one at a time (since the whole program was too big), and asked it to convert them to a 3D simulation (I'm paraphrasing). It forgot what it was doing about 4 methods in and I had to remind it, but the 3D version it created works great!
@tekperson
@tekperson Жыл бұрын
I found this channel recently, and it's become one of my favorites. I ran the first several problems from Project Euler through chatgpt3, and the results were mixed. More complicated requests give either mixed or poor results. That's very consistent with Ten Minute Physics results. I have used chatgpt3 to help prototype a technical presentation. The results are very wordy and often a little off base - but speed up initial development. Frankly, there needs to be more transparency about where the training material comes from and what restrictions the code it was trained on has. Normally licenses propagate with code, but somehow this short circuits that. This makes using chatgpt3 for business applications a bit iffy.
@MrButkam
@MrButkam Жыл бұрын
Keep up the good work ! Thank you for your valuable videos
@rodai4999
@rodai4999 Жыл бұрын
to do more extensive code, just ask chatGPT "complete the code snipped where you left off in last answer", you can do it multiple times, and manually merge the code to run! it works!
@LordCogordo
@LordCogordo Жыл бұрын
It has a limit of tokens, whenever he gets stuck just ask "keep writing" and he will
@bengineer_the
@bengineer_the Жыл бұрын
If you ask it: to continue from the line: "contents of last line" then it will produce the rest of what it thought of. :)
@plasid2
@plasid2 Жыл бұрын
Its possible make this using material nodes in UE5?
@nielsdaemen
@nielsdaemen 25 күн бұрын
You should try it again with the newest GPT4 version
@compphys
@compphys Жыл бұрын
Something that's not trivial and cannot be found on the net (easily, bouncing balls are all over the place) to copy/paste cannot be generated (correctly, that is). I tried to get from it a function that computes the Clebsch-Gordan coefficients, got a function that spat out -nan. It's definitively far from a silver bullet.
@WizardOfAILand
@WizardOfAILand 5 ай бұрын
LOVE THE VIDEOS!!!!!!! GREAT JOB!!!!! Could you do: Moving Least Squares Material Point Method ????
@ksitau
@ksitau Жыл бұрын
I think you need to write "continue" to get remaining code
@bakmanthetitan
@bakmanthetitan Жыл бұрын
Amazing video. Like the other commenter pointed out, there may be ways to get around the output limit. I would love to see a follow-up.
@GrinderFX
@GrinderFX Жыл бұрын
Actually there is nothing great because chatgpt got used fully wrong and it can solve the problem really good and not like shown in the video!!!
@444haluk
@444haluk Жыл бұрын
You shouldn't expect semantics from a syntax machine
@zebfross
@zebfross Жыл бұрын
ChatGPT is way more useful to me than Dall-e 2. Such impressive output!
@Ghostrider-ul7xn
@Ghostrider-ul7xn 8 ай бұрын
ChatGPT absolutely can write complex simulations, I'm a physicist and I've done it. You just need to tell it to break the task into small steps and write fully completed blocks of codes for each steps. In other words, tell it to modularize the code and write blocks of codes for each steps. Not only will it comply, its accuracy will improve significantly.
@ronnymonnig139
@ronnymonnig139 6 ай бұрын
Really? Can you provide us with some useful cases, as video content as well? Thanks.
@Sgrunterundt
@Sgrunterundt 5 ай бұрын
The video is a year old, before GPT-4 was available.
@johnpelitidis6297
@johnpelitidis6297 4 ай бұрын
This scares me... who will own and control this technology?
@samsara2024
@samsara2024 7 ай бұрын
I tried many easy things and it is not working for serious things.
@Djellowman
@Djellowman 2 ай бұрын
I feel like this video won't age well
@Compguy321
@Compguy321 5 ай бұрын
ChatGPT-4 is better now!
@takayamayoshikazu2782
@takayamayoshikazu2782 Жыл бұрын
If chatgpt has such low processing capability, I can't use it for my engineering work...
@MarcelNKemet
@MarcelNKemet Жыл бұрын
Just relax. ChatGPT is just a NRP program aka Natural Language Processor. It takes your command, encodes it and foward it to a Web Search API. It's just a lazy way to make a goggle search.
@BumboLooks
@BumboLooks 11 ай бұрын
THIS... Why does nobody realize this? Why is everyone treating it like a sentient program? Why is everyone so stupid?
@ummerfarooq5383
@ummerfarooq5383 Жыл бұрын
Can the paid version translate your code into faster languages?
@ShamJam85
@ShamJam85 Жыл бұрын
Chat GPT , as the name indicates, is meant for CHAT . Not for CFD code
@KlaudiusL
@KlaudiusL Жыл бұрын
"ChatGPT won't be a competitor for a while" ... nop .. will be a replacement
@nolram
@nolram Жыл бұрын
No. It cant innovate or create new methods as its merely a sentence completion algorithm; it doesn’t actually know anything about what its saying, it just says what is most likely.
@KlaudiusL
@KlaudiusL Жыл бұрын
@@nolram AI is not your last phone or your car, which are "finished product", they lack some functionality .. and never will has. AI is a dynamic system, evolving permanently. Is always "half way to the end". Don't be fooled. Maybe, TODAY, it hasn't such functionalities, but take for sure it'll has.
@nolram
@nolram Жыл бұрын
@@KlaudiusL AIs are not really dynamic. They are just equations, building connections of virtual neurons to associate patterns. They may mix, they may match, they may process in ways unknown to us, but they can never create something truly from scratch.
@KlaudiusL
@KlaudiusL Жыл бұрын
@@nolram Neither humans. And here we are.
17 - How to write an Eulerian fluid simulator with 200 lines of code.
12:05
Ten Minute Physics
Рет қаралды 290 М.
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 20 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 6 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 21 МЛН
Coding Adventure: Simulating Fluids
47:52
Sebastian Lague
Рет қаралды 1,7 МЛН
11 - Finding collisions among thousands of objects blazing fast
11:04
Ten Minute Physics
Рет қаралды 22 М.
ChatGPT does Physics - Sixty Symbols
16:42
Sixty Symbols
Рет қаралды 640 М.
18 - How to write a FLIP water / fluid simulation running in your browser
12:20
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 869 М.
I'm Coding an Entire Physics Engine from Scratch
9:19
Gonkee
Рет қаралды 1,6 МЛН
Realtime 2D Gravity Simulation
12:31
Brendan Galea
Рет қаралды 406 М.
The Clever Way to Count Tanks - Numberphile
16:45
Numberphile
Рет қаралды 817 М.
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 786 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 7 МЛН
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 20 МЛН