Hello Sir,
I am an undergraduate student working on a project simulating airflow over a wing using Unity, based on Bernoulli’s principle. Initially, I implemented my own particle system to visualize airflow over the airfoil. To demonstrate the relationship between pressure and velocity, I used more particles moving at lower speed to indicate higher pressure, and fewer particles moving faster to indicate lower pressure.
Currently, I am using your particle system, but I am unsure how to achieve the same visualization effect with it. Could you please provide guidance or suggestions on how to effectively represent Bernoulli’s principle in this particle system?
Hi Fasiha,
If you have a function for the velocity field that you want the particles to follow then you can create a custom flow primitive by creating a new class which inherits from FlowPrimitve. You can then define the velocity function by overriding the VelocityFunction in your new class. If you attach that new class to an object in your scene and make sure the particle systems are set to interact with the global fluid then you should see your custom velocity function driving the particles. Flow primitives act additively so you can create multiple flow primitives and all of their velocity functions will be added together for a given position. That way you can do things like the classic doublet for flow around a cylinder in potential flow theory.
Aerodynamic objects is not specifically a fluid dynamics tool so we haven't focused on tools for simulating flow around complex geometry, but if you that part solved from Bernoulli's principles then our tools can bring the results to life
Let me know how you get on or if you have anymore questions!
Conor