Simulating a Rotary Engine (yes, it braps)
Вставка
- Опубліковано 8 гру 2022
- Keep exploring at brilliant.org/AngeTheGreat/. Get started for free, and hurry-the first 200 people get 20% off an annual premium subscription.
Follow me on Instagram!
/ ange.the.great
Download Engine Simulator for free!
github.com/Engine-Simulator/e...
Support Engine Simulator 2.0 on Patreon!
/ atg_engine_simulator
Get Engine Simulator (free edition)!
engine-sim.parts/
MotorTrend article!
www.motortrend.com/features/e...
Engine Simulator Codebase
github.com/ange-yaghi/engine-sim
Physics Simulator Video
• Building a Physics Eng...
Join the Official Engine Simulator Discord Server!
/ discord
Join my channel community Discord!
/ discord
A small number of people suggested I try out this spinning dorito engine so I did! #rotary #simulation #programming
#simulation #gamedev #programming
Check out my GitHub profile!
github.com/ange-yaghi
If you like my work and would like to support me, consider donating!
ko-fi.com/angethegreat
FTC Disclaimer: This video was sponsored by Brilliant.
Thanks for watching! - Розваги
You asked for dorito, I gave you dorito.
Education is good for you! Keep exploring at brilliant.org/AngeTheGreat/. Get started for free, and hurry-the first 200 people get 20% off an annual premium subscription.
amazing!
huh, was gonna shit on brilliant for having expensive af annual plans only that are disguised as monthly but now they've seemed to introduced real monthly deals
still fucking expensive though
Had never been happier
Awesome thank you. But I still want to see if you can manage a Deltec :P
this is amazing, but i have one question. with the size of a rotary, arnt they 1.3L engines? im only asking because i see the 18CL being or something.
The future of racing games' sound design is here! Someone hire this guy for a AAA project!
I know. Imagine this in a Forza Horizon title 🤯
I'm pretty sure a lot of game companies have contacted him and that's the reason the project went partially closed source lol
Way too computationally intensive to be run in real time
Hiring would be bad overall for the industry.
Some car game license his software for their next game would be best. So that every new car game made has the change for the best sounding engines.
@@benperkins2929 some genius would be able to optimize it to run on low end CPU for the challenge of it.
A company would just tell you to buy a better rig.
15:10
the rpm stutter, holy shit it's too good.
I never though I would get shills from a simulation of a an engine.
Its really good.
Not like games that use fake "wav"s, they never made me chill in my spine, because its too fake and no dynamic response.
Waiting for any game that could probably make use of this simulator
@@UshankaMaster Gran turismo and forza come to mind, they've never had the best sounding engines.
Also automation and rigs of rods
I feel like I'm witnessing the audio version of the millennium graphics leap in 3D racing.
This dude's engine simulator is mind boggling and could take racing simulation to a whole 'nother level!
@@viperfan7 you've never heard FM3 & FM4's sounds then, have you? Some of the best sounds in the series right there
i clicked for the math and braps, i stayed for the thicc rotary that started fartin
A man with taste
that shit FAARDED
She gotta poopr on er
That new vehicle physics and load simulation is top notch. It sounds so unbelievably real. Great job. I'm blown away.
Thanks!
@@AngeTheGreat I'd love to see some power numbers
The gods gave us everything we asked for
YESSIR!!!!!!!!
God did 🙌🏿
AMEN!
Can Bluetooth this while driving- easiest four rotor install. 🙏
facts
The true, ideal housing is an epitrochoid, actually pretty easy to calculate. There's math for the inner and outer envelopes (Wankel and Liquid Piston respectively) too, I have a Desmos setup for all of them.
The housing is calculated using the exact function (with the rotor there for visualization purposes). For the rotor, I thought it would be cool to show how the shape is optimized but I'm sure there's a closed-form solution for it.
@@DJ_Level_3 nice! I'll check it out
looks hella smooth
@@DJ_Level_3 Yes, yatub loves sin sore ship.
@@DJ_Level_3 Amazing, that's a very pleasing design to look at. Has that type of rotary engine ever been made? You say it's the ideal geometry, has it been tried?
My dad would have absolutely loved to see these videos. He was a gearhead who spent years working R&D at some of the big houses, Edelbrock, NOS, and others. He engineered some revolutionary new designs for the metering blocks in carburetors, and being able to iterate on designs with today's technology would have blown his mind. Thanks for sharing these!
15:40 WOW i didnt realise how much it was missing till you added it in. That is absolutly amazing how that contributes so much to a realistic sound.
Add the gearbox whine to this, and then it'll be perfect. That transmission stuttering is amazing btw, at first i thought it was a bit too much but it fits perfectly (for a race engine at least).
It depends on the car of course, I used an exaggerated example like a racecar to demonstrate what it can do. Thanks for watching!
787B? 😀
My Rx8 reacts almost exactly like that with firm suspension and large but thin tires
Well... there's also a reinforced gearbox, ultra light counterweight/flywheel combo and stage 3 clutch sooo...
Might play a part too lmao
@@FuSiionCraft yeah flywheel is a big contributor to tackle stutter. having too lightweight flywheels can actually be contraproductive even kill the engine
@@AngeTheGreat bmw m3 gtr have high transmission noise
Just got a Toblerone ad on the video. The triangle gods are watching over.
While as a dorito engine enthusiast I'm excited to see and hear the Wankel engine finally being simulated correctly, I actually screamed and did the DiCaprio pointing meme at the moment you explained how the rotor and housing design were optimized using an algorithm akin to a CNC machine. That's an extremely smart solution to model the reulaeux rotors and the epitrochoid housing, and no doubt Mazda engineers also used similar techniques in their research to build the 16X range extender. Mazda also worked on different cavity designs for the rotors to optimize combustion and it turns out that by having no cavity at all meant the highest compression ratio of 16:1 can be achieved.
I know you've heard this so many times but you're so cool and smart for investing into this project! Can't wait to finally mod this and test out hypothetical designs including Rolls-Royce's diesel rotary prototype in my spare time. I'm betting someone will eventually show this to Rob Dahm too.
This Rolls-Royce diesel concept sounds fascinating. Never heard of it before.
@@cyrilio It’s certainly the most fascinating application of Wankel’s patented design. Simply put, two large rotors act as mechanical compressors and forcing exhaust gases from two small rotors to spin the large rotors, further compressing the intake air, before fuel (in this case diesel) gets injected onto the superheated air. You could say the entire operation is a hybrid of a compound turbo setup and a two-stroke diesel, except the fuel is injected directly into the small turbo, while the mechanical blower helps exhaust gases to be flushed out, all in one small package for a diesel. Engineering Explained has a great explanation of this concept.
already happend. robs fan base is very close and personally, there is no way our god will miss anything
dude the adjustments to the chassis and drivetrain flexibility in the vehicle simulation make an AMAZING difference in the end product! The engine simulator by itself is an absolute work of art, but it sounds mostly like an engine sitting on a dyno. Now it sounds like you're in the car! Bravo!
That drivetrain flex makes all the best noises happen!
So happy you got a sponsorship ! Your channel is really growing now !
The power of finding a niche, from cereal box game to engine simulator. I'm really loving the series and the details you take in account. As someone who knows only little about engines, I didn't expect to hear any difference during the last demo, but I actually did hear it clearly. Very cool details.
Fantastic work. As a long time powertrain engineer with a college education in combustion I appreciate the approach you have taken. For any of the "real engineers" that have complaints about the level of accuracy or such THEY could use some more education around the concepts of optimization and fit for purpose.
I also love the way this generates so much interest from other UA-camrs who I will generously say sometimes make it their own by tweaking some of the parameters in a way that may go a bit beyond what the laws of physics would generally allow. I sadly don't get these privileges at work, but if they are learning from it while interesting countless followers in physics, I am good with it.
9:20 You truly are fortunate to have such a... special research division
the fully simulated sound at the end is ridiculously good, you could tell me it was recorded in a real car and id believe you
omg that flex simulation is AMAZING. you sir are a genius.
oh my god, after so many people attempted to make a "rotary" engine with this sim, and you go and build the damn thing proper in the simulator hahaha
The intake and exaust ports overlap. Solve this and you'll have a more accurate sound. Also not to mention most rotary engines have side intake ports. Furthermore use two ignition sources and have a two step flame front propagation for more accurate sound.
more evidence of a trash design lol
He's excluding the side ports to simplify, since its still largely 2 dimensional. The flame front also seems to be faster than reality, so dunno how much adding a second spark would do anything.
@@bazinga1831 more like someone that has no idea how to drive and maintain one of these engines. You gotta drive it like a 2 stroke. Feed it pre-mix and let it sing. They are reliable engines, you just gotta let them clear their throat every time you drive it. A 50:1 2 stroke mix keeps the apex seals happy
@@roadrocket7770 yup
@@roadrocket7770 they do have some problems after a while though. The Renesis series in the RX-8 burns oil, so I have to act like a BMW owner and keep some extra stored in the trunk, and even if you take good care of it the apex seals don't last forever and replacing those is annoying, especially since you most likely have to diy it because local mechanics usually don't know how, and you don't want to pay enough to make them learn.
I just got done watching a few of the other videos on this simulator and i have to say im fucking blown away by it. I want to preface everything im about to say with the little tidbit that I have a degree in computer security, with 7 years of programming under my belt.
This simulator combines so many different skills incredibly well, its a marvel this is a one person project. Rigid body physics simulation, fluid mechanics simulation, sound processing, data visualization, the engines being created in your own scripting language, as well as your real life knowledge of engines as the cherry on top. This is an absolutely stunning intersection of skills and the version shown is beyond what I expected when clicking on this video. Love it!
I wasn't expecting this to come so soon!
Thank you for your efforts and for listenning to our requests. You are truly the great.
IT BRAPS, IT REALLY BRAPS, IT DOES THE BRAP, BRAP DORITO
Not only are you a genius setting the next groundstone for engine sound simulation, you are also gifted in explaining stuff quite easy. IMHO the only video for everything you need to know about Wankel engines.
I'm here marking my position in history for the future of digital engine simulation. Cars in video games will sound so much more realistic thanks to this.
car games already have realistic sounds via recording the sound of the actual cars
@@pikkyuukyuun4741there’s a problem though: recorded sounds only capture sound from a specific car engine at a specific acceleration from a specific direction in a specific area into a specific microphone.
By instead synthesizing engine noises, we can procedurally create more specific levels of realism.
Wow the flex really brought the whole experience to life. Seems a bit underdamped but what a transformative feature. I love this project so much!
It's a work in progress of course :)
Another thought, I hope game developers are taking notes. If not, they should hire you to do their sound coding. This sounds better than just about any game I've ever played.
Even better, he can just start his own company and license out his sound generation engine to game companies.
@@jacobm2625 That sounds like a great idea. There are so many parts of games now that are outsourced tools.
Reads title:
Simulating a Rotary Engine
*Meh...*
(yes, it braps)
*HELL YEAH*
So cool seeing the different rotor configs results simulated. Thanks!
The torque/load simulation is unbelievably great! Keep up the great work my friend!!
You are the reason why I got back to programming (doing Linux Admin contract right now for living). And I am so happy that I saw your first video.
Of course, I am not going to mimic your work (I am more interested in embedded and automotive) but... Thanks, it is nice to write code once again :)
clicked this video thinking i would be amazed by the rotary sounds, but what i'm most amazed at is the vehicle simulation. just turned this from computer simulation to almost indistinguishable from real life.
one request, PLEASE PLEASE PLEASE add straight cut gears. i love straight cut gears.
Simulating an engine with its sounds has been on my list of long-term coding goals for a while, it's awesome to see you did it in such a polished way! This is very inspiring to see, thanks for sharing
I'm surprised and so happy that you actually did the rotary simulation, this whole physics engine and engine simulator is so so freaking cool.
I had no idea you are a computer engineer! That's exactly the career I'm looking to pursue.
he's not an average computer engineer
It's hard to miss, since it's the only content he posts. I think it should be "software engineer" though, or programmer. Working with the programs more than the physical electronics. But I do enjoy it myself, learning C++ has been great, once you're caught up with the basics, you can easily keep expanding your knowledge forever.
@@aneeshprasobhan he's not your average every day computer engineer, he is...
advanced computer engineer.
Yeah, trust me he is not your average software engineer.
I'm a software engineer myself, even have the "lead" title in front of it, but the thing that he does as a hobby is way beyond my pay grade professionally.
If you noticed the way he was able to explain complex topics in simple terms that regular viewers can understand, that is a sign of an exceptional engineer.
I don't doubt that you can do it, I'm just saying it takes a lot of work, way beyond what normal software engineer does.
@@rizkiyoist Really? How can you be a lead developer and this is above your pay grade? I do this kind stuff in my free time (simulations, not this exactly), and I can't find ANY job, not even junior dev.
this is a certified dorito moment
As a long time rotary enthusiast and someone who dove into the math to model one of these, this is spot on dude. Either you have also been a long time fan, or you really did your research!
I've been following this project of yours for some time and I think the versatility and maturity you have achieved is astonishing! The clear benefit is that the procedural nature of the sound makes it feel very organic, it doesn't suffer the loop & blend issues of prerecorded samples. Imagining that these sound effects are simulated in real-time with approximations, while they sometimes even challenge recorded engine sounds of AAA gaming titles... Chapeau, good Sir! Maybe this might go full circle one day and provide the base for future, recorded gaming sound samples!
You are who we all aspire to be. Keep it up!
I love it. You're amazing Ange! Can't wait for the public release.
I'm actually so happy you got a sponsor for the vid! You definitely deserve more recognition!
These are massively entertaining, and I really thank you for the amount of hard work you put in to these!
I guess, the next step would be to simulate jet engines :) Or just turbines in general.
If I understand them correctly, most jet engines should be pretty boring to sim, since they are mostly in a steady state of gas pressures, and are mechanically just the one rotor (with lots of different fans coming off it)
the next racing games will be amazing, thank you very much for the study and tests you've been doing
This is by far one of my favorite projects I’ve seen on UA-cam
Of course there's already someone out there making a physically based engine noise generator (and more). Here I thought I'd have something unique to my name when I'm done with my degree. Awesome work!
love seeing the amount of progress and I can't wait to be able to use it sometime in the future!
You know it’s good when it gives you goosebumps. And this one (with flex simulation) surely does. Wow, again.
Subscribed for the engine simulations. Please don't stop these!
Can you imagine a racing game (or even open world sandbox!) that simulated the engines of all vehicles this way, modelling dynamic deformation of the vehicles with collisions and wear? Being able to hop in a simulated 40 yr old pickup and hear the difference in wear? Even the industrial applications for such a technology are incredible - AI running on powerfull hardware would be able to reliably predict the precise failure times of various components by simulating years of runtime in fractions of a second. This really is the future.
for both the housing and the rotor there are exact mathematical curve functions, describing their shape. Implementing those would probably have been easier than your simulation method
I didn't know about the closed form solution, thanks for sharing!
How do i get the formulas?
You are a legend for doing this kind of work
i can't believe how far you took this project. awesome job, seriously.
This is incredible, and gives me so many questions/ideas. Have you considered simulating different exhaust setups? Alternatively, being able to incorporate the sound of lifters, simulating misfires, intake, etcetera would be really exciting. Great stuff.
That RPM flutter at the end. I could feel it through my desk xD
I think some basic audio filters to simulate the environment could make this sound so much better. Maybe a little echo or muffling from imaginary buildings, grass, or the road would make a big difference.
My god, the engine stuttering is just godly
One of the biggest thing at play is fluid movement too, the biggest being the fuel
But simulating it would be *extremely* difficult, not only the fuel level changing, but also the geometry of the tank itself, etc...
But it's already perfect as it is, your work is amazing man !
That sounds remarkable. Im amazed at how well this simulation is working.
One of the major problems with rotary engines is differential heating of the sides of the rotary engines. It would be interesting to simulate a rotary engine that uses one rotor for compression and feeds that into another rotor for combustion on both sides (necessitating twice the ports) and possibly a rotor for exhaust scavenging.
This is genuinely everything we have asked for. Thank you
the new vehicle audio simulation sounds AMAZING! great work!
This is very awesome, one thing I’d love to see in the future is not only diesel engines (which I think you’ve covered before) but the knock of many commercial engines, I’d love to see how octane and cetane is simulated
The depression in the rotor is actually there to define a decent combustion chamber as you can see without a depression the combustion chamber shape at full compression is very weird and difficult to get a spark plug to, and is also long and flat which means you end up with a lot of non-combusted fuel. By having a pocket in the rotor, the fuel air mix tends to be concentrated in towards one spot, which is where you would locate your spark plugs. This is a really excellent series, congratulations - keep it up! If you study the maths for the peri/epitrochoid, you can generate forms with more than two lobes (the wankel uses a 2 lobe form which gives that peanut shaped housing). Be interesting to see if you could get a triple or quad lobed housing to work!
That drivetrain flex is super sweet!
Not often am i glad people are sponsored. But here we are. Finally someone well deserved of one. Your content is amazing
I love how the audio is so accurate for what's happening
Wow! I expected to see something interesting, but I didn't expect to get an explanation for how a rotary engine actually works. Awesome!
This is incredible!
You should do reverb / echo in a tunnel next, with the Ferrari F2004.
I've been waiting for a simulation of the Wankel engine and this is magnificent! It sounds just like the Le Mans winning Mazda 787B and braps like it too! I would imagine how difficult it was to get the geometry of this engine design correct, but I can say it was a massive success. And this is just the KKM Wankel design. I wonder if the DKM Wankel engine can be simulated and also other pistonless rotary engines like the LiquidPiston and Quasiturbine. Only time will tell and keep up the great work 👍
My favorite engine ever is the 4-rotor R26b engine found in the 787b, so this is a neat find. Good job.
Amazing stuff!
I would really like to see this simulation handle turbochargers
Very cool! I'd love to see an opposed piston engine as well, like the new Achates engines.
There’s lots of them on UA-cam. The simulator already supported it
@@Roomsaver They are still modeled with valves, which aren't present in the real design
Huge work programming all this 💪🏽💪🏽
Engine sound is *brutal*
When clutching is involved it feels like you're literally on the race track dashing through the wind. Incredible!
I know this must have been said a thousand times by now, but we need a game with this engine at its core.
In Assetto Corsa you can simulate driving this car and shifting sounds even better, but of course the sound was sampled from real life. Old fashioned method and in no way smart like this simulation. So you have games with awesome sound already, that was not a thing. But to simulate reality details like this is really a new level. I share your exitement.
Those sharp tips ...
Scraping the chambers ...
😬
This video is so underrated. The sound of it running the gears is... 🙌🙌🙌
I just stumbled across your channel now... If this was around some good years ago I would have spent my all day playing with it.. 😅. All the best for your project!
What an absolute freakin' legend.
Would like to have 2-stroke support in Engine Sim as well.
Only just found this channel. Love it. I'd like to see a back to back of some famous straight 6 engines and why they sound so different.
The rb25, 1jz and the TVR engine would be fantastic. All are "common" engines to hear here in the UK and sound so different.
The more modern BMW 6 engines would be a lovely comparison.
So happy you got a Sponsorship!!
I wonder if this could be used for something like the strange soviet pentagon rotary engine
using this would you also be able to simulate a "liquid piston engine" or would that require remakeing the whole engine?
Its impressive to see what you've been able to do with this in such a short span of time, hope to keep seeing more from you and this project.
Also, maybe this is way outside the scope of what the engine sim could do, or at least what's intended to do; but maybe just to toss out few ideals for either yourself or the community to try out. How possible would it be to simulate something like a jet or turbine engine; axial, centrifugal, or pulse jet all seem like interesting kinds of engines that could be tested.
Maybe even, steam engines?
Man, you were dead on referring to the Mazda from Gran Turismo. I didn't know the significance of that car when I discovered it in the game. I just knew it got along really well with me in races. It was only after playing the game that I eventually looked up the real car, and its history. Great video! I even watched the ad.
What are you using to make these animations or visualizations through code? I always wondered how creators made visuals to demonstrate code executions.
He made his own program.
@@ethanmonat yes and he's true chad
A dorito engine! :)
Loved the ending with "flexible vehicle simulation" just like overrun, that is something missing from engine simulations, the variation in load and rpm when shifting and when going over bumps on a track.
I have been waiting patiently for this
Mah boi, this rotary simulation is what all true dorito fans strive for!
that's pretty cool!! I gotta put this in a beamng car, and we can race :P
I'm ready!
I know it sounds silly talking about a simulation of a thing that exists in real life, but it does give me goose bumps hearing it.
People like you are the ones who will revolutionise (pun intended) sound design in games to be much more realistic and accurate without relying heavily on recording real engines
What is your education sir? Are you computer science student or what, just wonder? In addition what do we know to make simulations except c++, I have many ideas, but I guess I need a mini roadmap
Go watch cherno ...
@Strange Insaan Is it?
I'm here before Rob Dahm found this video..
the 787B also had a variable intake manifold!
But the next challenge for you should be a 2 rotor with peripheral ports, bridge ports, street ports and factory ports. Just to see if the simulator can simulate what essentially prolongs intake timing like a cam, but without the cam lol
yes
every time you update is amazing