Register to reply

HELP: Fluid Dynamics and Simulating with C++

by bboydocument
Tags: dynamics, fluid, simulating
Share this thread:
bboydocument
#1
Apr14-10, 04:21 AM
P: 2
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.

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?
Phys.Org News Partner Science news on Phys.org
Wildfires and other burns play bigger role in climate change, professor finds
SR Labs research to expose BadUSB next week in Vegas
New study advances 'DNA revolution,' tells butterflies' evolutionary history
minger
#2
Apr14-10, 11:56 AM
Sci Advisor
P: 1,498
I could tell you a lot of CFD and the coding of it, but as far as post-processing and graphics libraries, I leave that to the experts....mostly plot3D actually.

If you're talking about the 1D advection problem, then that's rather simple. The code isn't too hard, and you can post-process in Excel.


Register to reply

Related Discussions
Fluid dynamics Advanced Physics Homework 0
Fluid Dynamics Engineering, Comp Sci, & Technology Homework 1
Fluid Dynamics General Physics 0
FLUID DYNAMICS AND BEHAVIOUR OF REAL FLUID help Engineering, Comp Sci, & Technology Homework 0
Fluid dynamics Introductory Physics Homework 6