d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Free Falling Of A Spherical Body In A Viscous Flow > In C++
Add Reply New Topic New Poll
Member
Posts: 13,657
Joined: Feb 10 2007
Gold: 1,886.00
Mar 31 2015 05:49am
Anyone who knows the topic properly? Can offer fg for help of course :D


Porogramme need to have a possibility of determining the:
-density and viscosity of fluid
-diameter and density of ball
-step size (h)
-number of steps (integration time)

Buit firstly have to be done for free falling ball in a vacuum. I know i have to use the Runge Kutta 4th order solution method. Started and got this at teh moment:

Falling in vacuum:
m*(dV/dt) = m*g
V = V(initial) + g * t
Z = Z(initial) + V(initial) *t + (g*t^2)/2

where g works as our acceleration. so after differentiation:

dV/dt = d^2 Z/dt^2

then i have to add forces that affacets the body during motion:
bouyant force according to Archimedes principle,
force due to body acceleration,
forces due to viscous drag and shape drag


Can send you whole materials if theres anyone who can solve that problem and write in c++ or at least gimme some thoughts, Never made anything like that and that's the problem xP
Member
Posts: 13,657
Joined: Feb 10 2007
Gold: 1,886.00
Mar 31 2015 05:51am
Can offer 2000 fg if somebody will make this whole problem properly :D
Member
Posts: 13,657
Joined: Feb 10 2007
Gold: 1,886.00
Apr 7 2015 02:56am
bump
Member
Posts: 7,324
Joined: Dec 22 2002
Gold: 1,261.00
Apr 7 2015 03:53pm
First get all the formulas you need. Figure out the physics of it and how to solve the problem on paper before you start writing any code.

Once you know all of that, doing something like this in C++ is pretty trivial. A small console app that takes all the variables as inputs and then does the math according to your formulas and prints output.
Member
Posts: 13,657
Joined: Feb 10 2007
Gold: 1,886.00
Apr 7 2015 04:05pm
Thank you for the answer. Will try to finish math/physics tommorow and post results.
Member
Posts: 7,721
Joined: Oct 11 2008
Gold: 304.00
Apr 8 2015 12:02am


and use this equation for drag force
http://en.wikipedia.org/wiki/Drag_%28physics%29

no idea what you mean by body acceleration

"bouyant force according to Archimedes principle"
assume fully submerged to start, buoyant force is constant. otherwise, a lot more difficult

This post was edited by saber_x3 on Apr 8 2015 12:12am
Go Back To Homework Help Topic List
Add Reply New Topic New Poll