使用 SPH 粒子模拟火灾

发布于 2024-10-06 03:19:18 字数 313 浏览 0 评论 0原文

我想使用 SPH 粒子模拟火焰。我了解 SPH 背后的概念,但还不了解如何将火建模为流体。

  • 我是否必须向粒子添加一些温度属性才能从中导出颜色?
  • 我是否必须考虑周围的空气颗粒才能产生浮力效果?
  • 粒子从哪里获取热量?我是否必须在某些空间上添加一个热发射器来产生温暖的粒子,以便温度随着时间的推移扩散到其他粒子?
  • 有一些教程可以描述我的问题吗?

I want to simulate fire using SPH particles. I understand the concept behind SPH but don't understand yet how to model the fire as a fluid.

  • Do I have to add some temperature property to my particles from which I can derive there color?
  • Do I have to take the surrounding air particles in account to create some buoyancy effect?
  • Where do the particles get their heat from? Do I have to add a heat emitter over some space which creates warm particles so that the temperature then diffuses to the other particles over time?
  • Are there some tutorials which describe my problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乖乖公主 2024-10-13 03:19:18
  • 是的,你必须有一个温度属性。如果不涉及温度,那确实不是火灾。一旦有了温度,就很容易获得亮度和颜色。 (您可能不必担心辐射传热,至少第一次不需要担心。)
  • 如果你正确处理压力和重力,浮力就会自然产生(咳咳)。
  • 您可以从固定的加热元件和惰性气体开始,然后当您准备好时,您可以将燃烧作为微分方程引入:能量产生速率是温度、燃料压力和氧气压力的函数。
  • Yes, you'll have to have a temperature property. It really isn't fire if temperature isn't involved. And once you have temperature it's easy to get luminosity and color. (You probably don't have to worry about radiative heat transfer, at least not for a first effort.)
  • If you handle pressure and gravity right, buoyancy will arise (ahem) naturally.
  • You can start with a fixed heating element and an inert gas, then when you're ready you can introduce combustion as a differential equation: the rate of energy generation is a function of temperature, fuel pressure and oxygen pressure.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文