Sorry i'm not sure where to post this as there is no explicit fluid dynamics forum - i just did a search and noticed majority of posts fell into the "mechanical engineering" forum for some reason. Sorry about that.(adsbygoogle = window.adsbygoogle || []).push({});

Today my professor has told the class that by next week we have to code in C++ and visually simulate the change in density in 3D when a piston moves through a cylinder of gas ie. creates a shock as speed increases past the speed of sound.

Look i know thats a very vague intro, but what im trying to get at here is that I have no idea how to code in a graphics library..but more importantly how do i even implement a PDE into C++ and actually get something to show on the screen? i mean, like a fluid of some sort, piston moving through it, density changing as piston moves through it. This is such a crazy request by my professor, I envy all those students who are skilled in coding in openGL and know how to implement a PDE like the advection equation. All i have been taught in C++ is how to calculate the factorial of a number and output it to the console!

Please experts, guide me in the right direction! Where do I go to get help? When implementing PDEs into C++ what do I need to do?

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# HELP: Fluid Dynamics and Simulating with C++

Loading...

Similar Threads - HELP Fluid Dynamics | Date |
---|---|

Fluid Mechanics: Bernoulli & Energy Equations Problem- Help? | Mar 23, 2017 |

Help with torque calculation of underwater rotating disk? | Mar 31, 2015 |

Need help re: air pressure to fluid pressure | Mar 20, 2015 |

Help with entrance effects for fluid please | Dec 31, 2014 |

Help understanding BASIC fluid dynamics behind faraday waves | Dec 9, 2011 |

**Physics Forums - The Fusion of Science and Community**