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

  Рет қаралды 16,174

Ten Minute Physics

Ten Minute Physics

Күн бұрын

Пікірлер: 40
@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 10 ай бұрын
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.
@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!
@MrButkam
@MrButkam Жыл бұрын
Keep up the good work ! Thank you for your valuable videos
@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. :)
@LordCogordo
@LordCogordo Жыл бұрын
It has a limit of tokens, whenever he gets stuck just ask "keep writing" and he will
@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 9 ай бұрын
LOVE THE VIDEOS!!!!!!! GREAT JOB!!!!! Could you do: Moving Least Squares Material Point Method ????
@Ghostrider-ul7xn
@Ghostrider-ul7xn Жыл бұрын
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.
@RonM_1971
@RonM_1971 11 ай бұрын
Really? Can you provide us with some useful cases, as video content as well? Thanks.
@Sgrunterundt
@Sgrunterundt 10 ай бұрын
The video is a year old, before GPT-4 was available.
@plasid2
@plasid2 Жыл бұрын
Its possible make this using material nodes in UE5?
@nielsdaemen
@nielsdaemen 5 ай бұрын
You should try it again with the newest GPT4 version
@ksitau
@ksitau Жыл бұрын
I think you need to write "continue" to get remaining code
@444haluk
@444haluk Жыл бұрын
You shouldn't expect semantics from a syntax machine
@johnpelitidis6297
@johnpelitidis6297 9 ай бұрын
This scares me... who will own and control this technology?
@zebfross
@zebfross Жыл бұрын
ChatGPT is way more useful to me than Dall-e 2. Such impressive output!
@takayamayoshikazu2782
@takayamayoshikazu2782 Жыл бұрын
If chatgpt has such low processing capability, I can't use it for my engineering work...
@samsaraAI2025
@samsaraAI2025 11 ай бұрын
I tried many easy things and it is not working for serious things.
@Djellowman
@Djellowman 7 ай бұрын
I feel like this video won't age well
@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!!!
@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 Жыл бұрын
THIS... Why does nobody realize this? Why is everyone treating it like a sentient program? Why is everyone so stupid?
@Compguy321
@Compguy321 10 ай бұрын
ChatGPT-4 is better now!
@ummerfarooq5383
@ummerfarooq5383 Жыл бұрын
Can the paid version translate your code into faster languages?
@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.
@ShamJam85
@ShamJam85 Жыл бұрын
Chat GPT , as the name indicates, is meant for CHAT . Not for CFD code
22  - How to write a rigid body simulator
16:35
Ten Minute Physics
Рет қаралды 6 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
ChatGPT does Physics - Sixty Symbols
16:42
Sixty Symbols
Рет қаралды 642 М.
ChatGPT vs. World's Hardest Exam
14:02
Tibees
Рет қаралды 270 М.
17 - How to write an Eulerian fluid simulator with 200 lines of code.
12:05
Ten Minute Physics
Рет қаралды 311 М.
18 - How to write a FLIP water / fluid simulation running in your browser
12:20
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 398 М.
10 - Simple and unbreakable simulation of soft bodies
13:53
Ten Minute Physics
Рет қаралды 19 М.
Realtime 2D Gravity Simulation
12:31
Brendan Galea
Рет қаралды 420 М.