# Changes between Version 13 and Version 14 of fortran

Ignore:
Timestamp:
Oct 18, 2016, 9:28:34 PM (4 years ago)
Comment:

--

Unmodified
Added
Removed
Modified
• ## fortran

 v13 == 7. Electron motion only in magnetic field == The main idea in plasma physics is to understand the motion of the charge particles. For that reason first we will make a solution of the electron motion but only in magnetic filed. Solving this problem by using the equation of electron motion can be obtain the phase trajectory. Electron filed E0=0 Part 1. Using only dependence of B0 or initial magnetic filed {{{ #!fortran !The main idea in plasma physics is to understand the motion of the charge particles. For !that reason first we will make a solution of the electron motion but only in magnetic !filed. Solving this problem by using the equation of electron motion can be obtain the !phase trajectory. Electron filed E0=0 !Part 1. Using only dependence of B0 or initial magnetic filed integer :: n=1000 real(8) :: dt, t, vm, b, rl, om, x, y, vx, vy, B0 == 8. Electron motion in magnetic filed.  == The introduction is like in program 7. The difference is to solve the problem how will be the electron motion if the velocities vx and vy depends of the magnetic filed Bz which is a function of the coordinate y. E0=0. Part 2 {{{ #!fortran !The introduction is like in program 7. The difference is to solve the problem how will be !the electron motion if the velocities vx and vy depends of the magnetic filed Bz which is a !function of the coordinate y. E0=0 !Part 2 integer :: n=1000 real(8) :: dt, t, vm, om, x, y, vx, vy, B0,b }}} == 9. Electron motion in electric and magnetic filed == To make a conclusion how is the electric motion looks like using plus electric filed. And to get a picture of the motion in the plasma in this program we are using different functions of dependencies for vx and vy. And the electric filed is E0=3. The particle begins to drift. {{{ #!fortran !To make a conclusion how is the electric motion looks like using plus electric filed. And to !get a picture of the motion in the plasma in this program we are using different functions !of dependencies for vx and vy. And the electric filed is E0=3. The particle begins to drift. integer :: n=1000 real(8) :: dt, t, vm, om, x, y, vx, vy, B0,b }}} == 10. Electron motion only in magnetic field == The introduction is like in program 8, but the difference is that here we have trigonometrical dependencies of the initial velocities. Part 3 {{{ #!fortran !The introduction is like in program 8, but the difference is that here we have !trigonometrical dependencies of the initial velocities. !Part 3 integer :: N = 1500 real(8) :: x = 2.5, y = 0.5, B0 = 500.0, We = 4.0054e-08, b = 2.0, pi = 3.14159, m = 9.1e-28, e = -4.8e-10, c = 2.99e10 == 11. Determination the proton energy and power  == Also for one of the main characteristics in the plasma is the energy and the power of the charge particles. In this program are obtained the energy and the power of the protons in the plasma. Using the basics equations for it. {{{ #!fortran !Also for one of the main characteristics in the plasma is the energy and the power of the !charge particles. In this program are obtained the energy and the power of the protons in !the plasma. Using the basics equations for it. integer :: n=1000 real(8) :: dt, t, x, y, vx, vy, v, E, W }}} == 12. Runge-Kutta method for harmonic oscillations == To solve a partial differential equations need to satisfy the condition y(x0)=y0 which is called Cauchy task. The most effective and the commonly used method of the solution of Cauchy task is Runge-Kuta method. It is based on a approximation of the function y, which is obtained by expanding the function in Taylor series. Using method Runge-Kuta can be obtain the basic differential equation for oscillator. Part 1 {{{ #!fortran !To solve a partial differential equations need to satisfy the condition y(x0)=y0 which is !called Cauchy task. The most effective and the commonly used method of the solution of !Cauchy task is Runge-Kuta method. It is based on a approximation of the function y, which is !obtained by expanding the function in Taylor series. !Using method Runge-Kuta can be obtain the basic differential equation for oscillator. !Part 1 external fct, out real aux(8,2)