Here I am giving the M. Sc. (Physics) problems using Fortran 90 (With Fortran 77, it is almost the SAME, little change of KEYWORDS is there).
I will also discuss what is happening inside the code, for that I will use comments in the program.
[Started on Feb, 9, 2015]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exercise 1: 1.1) Motion of freely falling body using Euler method.
1.2) motion of spherical falling body in viscous medium, with linear velocity dependent drag using Euler method.
1.3) Buoyancy effect along with viscous drag using Euler method.
1.4) With quadratic velocity dependent drag (with air drag) using Euler method .
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(Program 1.1)
-----------------------------------------------------------------------------------------------------------------------
! Motion of freely falling body. [for fortran 77 use # for commenting the line]
-----------------------------------------------------------------------------------------------------------------------
Program: FreeFall.f90, FreeFall.pdf and its output,
How to run on "command line" .
For this you need a compiler, specifically Fortran compiler. May be gfortran or ifort is available on your
system.
So, use the following command.
1. ifort FreeFall.f90 or gfortran FreeFall.90
A file called a.out is generated.
2. then
./a.out
Now enter the required input as asked by the program.
OR
you can use ifort FreeFall.f90 -o FreeFall.x
then
./FreeFall.x
and then enter the input.
(Program 1.2)
With linear velocity dependent drag. When the object in moving in viscous medium say any liquid."VISCOUS DRAG: stokes law"
Fall_2.f90, Fall_2.pdf and its output.
(Program 1.3)
With Buoyancy effect along with viscous drag.
Fall_3.f90, Fall_3.pdf and its output.
(Program 1.4)
With quadratic velocity dependent drag. "AIR DRAG", check the formula for air drag.
Fall_4.f90, Fall_4.pdf and its output.
ABOUT PLOTTING the GRAPH of above outputs. USE gnuplot.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exercise 2: Study of the path of a projectile with and without air drag, using Feynman-Newton method or Half step method.
Exercise 3: Motion of artificial satellite.