Live data from Hacker News

Internal Combustion Engine

ciechanow.ski

351–360 of 415 posts

Re: Internal Combustion Engine

#351

Earlier quoted context omitted.

> Those things can be as complex as an ICU engine. From a complexity perspective an ICU isn’t nearly as complex as even something as simple is a script scraping a webpages for links and queuing them up for further crawling. I’m not sure if “complex” is the word you are going for but even the TCP state machine has significantly more complexity than an ICU and that’s just a fragment of what it takes to transmit some da…

Quantifying complexity really depends on the level of abstraction though. Scraping a static webpage is simple when examined at the level of abstraction involving Python and ready made packages. An ICE is similarly simple when examined from the perspective of basic mechanics, as in the article under discussion. As you note, scraping that static webpage is no longer simple when you include as part of your assessment th…

The complexity in the engine isn't in the mechanical concepts that make it tick, it's in the implementation details. Stepping back quite some time in technology, but staying with engines:

The platonic carburetor is a dead simple device: a Venturi, a jet, and a butterfly valve. Real life carburetors are fiendishly complex: multiple jets, an accelerator pump, a choke. And god help you if you have multiple carbs on a single engine and need to sync them.

Everything that goes into making an engine work is similar: cooling it correctly and evenly, allowing for operation while parts expand and contract at different rates as the engine reaches operating temperature, lubricating everything, preventing vibrations that'll make the car feel unrefined or maybe tear the engine apart, valve timing (fixed in most engines at some compromise between performance and drivability), ignition timing (variable in most engines), sealing things that need to be sealed across a huge range of operating temperatures and in the presence of differing rates of thermal expansion (head gaskets, among others) oh, and making it work for a quarter million miles or more with fairly minimal maintenance. And manufacturing them at enormous scale, and holding the tolerances that make all of the above possible across the lifespan of the production line.

And all of that is before we even discuss pollution controls.

Re: Internal Combustion Engine

#352
post #271

Earlier quoted context omitted.

I'm assuming he used something like SolidWorks to CAD up the parts, but then it looks like he custom made all the animation stepping widgets and camera rotation logic and various shaders for the different effects in pure JS[0]? Surely he didn't write this JS by hand (i.e. it was generated from blender3d or solidworks files or something?). I would like an article on how he made the interactive animations in the articl…

> Surely he didn't write this JS by hand It seems parts of it are auto-generated like all those co-ordinates. But then some parts appear as if they are hand-coded. I also noticed that other program texts are getting assigned to variables (example "line_vert_src"). Could someone please describe what's going on? That explosion animation is absolutely mind-blowing. Goes to show what can be achieved if someone focuses th…

> I also noticed that other program texts are getting assigned to variables (example "line_vert_src"). Could someone please describe what's going on?

These are fragments of code in "OpenGL ES Shading Language", passed to WebGL. See for instance [0] for a tutorial.

[0] https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/T...

Re: Internal Combustion Engine

#353

Earlier quoted context omitted.

Nope ; Motorsport is always drivers' skills coupled with engineering ingenuity. It's always about "what can I come up with, which gives me an edge, and still somehow is within the rules?" I don't know anything about Nascar, but the history of Formula 1 is full of such little tricks as well. It's just easier to regulate "other sports" than it is to regulate sports that come coupled with a lot of technological involvem…

Excellent comment. I watched the Audi/Lancier video in full. Wow. Amazing stuff. Thanks for all the info!

[deleted]

Re: Internal Combustion Engine

#354
post #337

I’m a lowly mechanical engineering lecturer. I use Jupyter notebooks to teach fluid mechanics[0]. I make videos of fluid flows with Blender and embed them with the notes along with some basic Python code examples so that students are aware of how basic code can make an Engineer’s life easier (even if Matlab is the standard platform). I also embed simple 3D models with pyGEL3D[1]. It’s fine but very limited. I’m alway…

Why do you have to learn JS? If you just want to make a web app and add some interactive 3D models on it, there're some Python libraries can help with that, like: https://github.com/streamlit/streamlit https://github.com/wang0618/PyWebIO https://github.com/plotly/dash

Re: Internal Combustion Engine

#355
post #337

I’m a lowly mechanical engineering lecturer. I use Jupyter notebooks to teach fluid mechanics[0]. I make videos of fluid flows with Blender and embed them with the notes along with some basic Python code examples so that students are aware of how basic code can make an Engineer’s life easier (even if Matlab is the standard platform). I also embed simple 3D models with pyGEL3D[1]. It’s fine but very limited. I’m alway…

There's an array of javascript libraries to choose from, but maybe you would find Observable (reactive javascript notebooks) to be a good substitute for Jupyter.

Observable is geared toward the use of d3.js (essentially a library for drawing charts and graphs) which can be a bit intimidating, but you can use other libraries as well. For 3D, regl seems to be a good option. It's a library which makes using WebGL a bit more convenient. Here's an example of an Observable notebook that uses regl: https://observablehq.com/@rreusser/contour-plots-with-d3-reg...

Check out R. Reusser's other notebooks too. My guess is that choosing a set of JS libraries/tools to learn is the hard part, here, once you've committed to javascript.

http://regl.party/

Re: Internal Combustion Engine

#356
post #340

Earlier quoted context omitted.

> makes me a little ashamed to use the word "engineer" in my title of "software engineer". There is no real comparison of the quality of the result. I think that's because the barrier to entry is too low and anybody is being called a "software engineer" these days. But think about a system which makes proper use of synchronization primitives, like an OS kernel or a robotic control, or a CPU design like the other guy…

When I took "Software Engineering" in University, the prof was very careful to explain in great detail, and frequently, that the field was not mature enough to really be called engineering. Then he would talk at length about things like software for airplanes and spacecraft. It is impossible to call yourself an engineer while looking someone in the eye after taking his class. I am a software developer. Maybe an analy…

[deleted]

Re: Internal Combustion Engine

#358
post #337

I’m a lowly mechanical engineering lecturer. I use Jupyter notebooks to teach fluid mechanics[0]. I make videos of fluid flows with Blender and embed them with the notes along with some basic Python code examples so that students are aware of how basic code can make an Engineer’s life easier (even if Matlab is the standard platform). I also embed simple 3D models with pyGEL3D[1]. It’s fine but very limited. I’m alway…

There's an array of javascript libraries to choose from, but maybe you would find Observable (reactive javascript notebooks) to be a good substitute for Jupyter. Observable is geared toward the use of d3.js (essentially a library for drawing charts and graphs) which can be a bit intimidating, but you can use other libraries as well. For 3D, regl seems to be a good option. It's a library which makes using WebGL a bit…

Thanks, I’ll take a look.

I use Jupyter because it’s something that the students are finding used more and more when they go on industrial placement. Matlab is extremely popular in engineering but Python is growing.

My notebooks are deliberately simple so it’s not I ntimidating for students who are frequently terrified by code. The point is to show them that some basic readable code can help them solve problems and avoid going too deep into the weeds.

Re: Internal Combustion Engine

#359
post #354
post #337

I’m a lowly mechanical engineering lecturer. I use Jupyter notebooks to teach fluid mechanics[0]. I make videos of fluid flows with Blender and embed them with the notes along with some basic Python code examples so that students are aware of how basic code can make an Engineer’s life easier (even if Matlab is the standard platform). I also embed simple 3D models with pyGEL3D[1]. It’s fine but very limited. I’m alway…

Why do you have to learn JS? If you just want to make a web app and add some interactive 3D models on it, there're some Python libraries can help with that, like: https://github.com/streamlit/streamlit https://github.com/wang0618/PyWebIO https://github.com/plotly/dash

Why learn JS? I guess it’s because I think it’ll be a useful skill that will allow me to do more in the future, not just find a better way to embed 3D models in a notebook.

It might be useful to build tools for research projects, interactive elements for assessment etc.

The bulk of my coding is work Matlab and an increasing amount of Python. JS would allow me to to more web based stuff.

Re: Internal Combustion Engine

#360
post #337

I’m a lowly mechanical engineering lecturer. I use Jupyter notebooks to teach fluid mechanics[0]. I make videos of fluid flows with Blender and embed them with the notes along with some basic Python code examples so that students are aware of how basic code can make an Engineer’s life easier (even if Matlab is the standard platform). I also embed simple 3D models with pyGEL3D[1]. It’s fine but very limited. I’m alway…

For the graphics: - https://webglfundamentals.org/ - https://threejs.org/ For general JS: - https://developer.mozilla.org/en-US/docs/Web/javascript#tuto... There's other stuff like build tools, cross-browser, and other stuff, but that's likely to be confusing and not super necessary to begin with. The above should be enough to get you running with what it sounds like you want to do. I appreciate you sharing those lin…

Much appreciated. I’ll be adding to the fluid mechanics notebook this summer.

What areas are you interested in?

Post reply on HN