these are great suggestions.
- I’ve added the frame offset to the loader and will be in the next build.
the gravity/buoyancy topic is a bit more tricky, but we’ll have a think about it. main reason is that at the moment for the smoke solver the buoyancy is driven by density differentials vs in the combustion fire solver its based on heat convection. We were just discussing if it might be better to separate the two terms so you have individual control. You can also do that on your side by modifying the template files which create the elements.
in the step function of the sparse_smoke solver python template you’ll see this line:
buoyancy(self, density_channel=“density”, velocity_channel=“velocity”, buoyancy_dir=VectorFieldParameter(self.settings[“buoyancy_dir”]), ambient=ScalarFieldParameter(0.0), dt=dt_scale)
as you can see the ambient term is currently not exposed, but might be very helpful for your application. you can expose another parameter on the template and reference it there.
self.settings.add(SettingsFloatValue(name=“buoyancy_ambient”, display_name=“Buoyancy Ambient”, default=0.0))
add the param to the layout below where all the other params get added:
then in the step function reference it:
buoyancy(self, density_channel=“density”, velocity_channel=“velocity”, buoyancy_dir=VectorFieldParameter(self.settings[“buoyancy_dir”]), ambient=ScalarFieldParameter(self.settings[“buoyancy_ambient”]), dt=dt_scale)
the ambient value is used to compute the difference. so lets say you increase it above your average density values, things will go in the opposite direction of the buoyancy dir ( eg a dry ice effect). I got decent results when working with a decent dissipation rate that thins out areas and will eventually fall below the ambient threshold and start going back down/linger.
generally this produces a lot more shear in the flow itself producing more natural looking effects/fluid motion.
Let me know if this is helpful and I can expose this also in the next build.
the stats are a great idea and we’ll definitely add that to our list of things.
let me know if there is anything else we can help with.