Changes between Version 13 and Version 14 of fortran


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

--

Legend:

Unmodified
Added
Removed
Modified
  • fortran

    v13 v14  
    177177
    178178== 7. Electron motion only in magnetic field ==
     179The 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
     180Part 1. Using only dependence of B0 or initial magnetic filed
    179181{{{
    180182#!fortran
    181 !The main idea in plasma physics is to understand the motion of the charge particles. For
    182 !that reason first we will make a solution of the electron motion but only in magnetic
    183 !filed. Solving this problem by using the equation of electron motion can be obtain the
    184 !phase trajectory. Electron filed E0=0
    185 !Part 1. Using only dependence of B0 or initial magnetic filed
    186183integer :: n=1000
    187184real(8) :: dt, t, vm, b, rl, om, x, y, vx, vy, B0
     
    225222
    226223== 8. Electron motion in magnetic filed.  ==
     224The 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
    227225{{{
    228226#!fortran
    229 !The introduction is like in program 7. The difference is to solve the problem how will be
    230 !the electron motion if the velocities vx and vy depends of the magnetic filed Bz which is a
    231 !function of the coordinate y. E0=0
    232 !Part 2
    233227integer :: n=1000
    234228real(8) :: dt, t, vm, om, x, y, vx, vy, B0,b
     
    297291}}}
    298292== 9. Electron motion in electric and magnetic filed ==
     293To 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.
    299294{{{
    300295#!fortran
    301 !To make a conclusion how is the electric motion looks like using plus electric filed. And to
    302 !get a picture of the motion in the plasma in this program we are using different functions
    303 !of dependencies for vx and vy. And the electric filed is E0=3. The particle begins to drift.
    304 
    305296integer :: n=1000
    306297real(8) :: dt, t, vm, om, x, y, vx, vy, B0,b
     
    356347}}}
    357348== 10. Electron motion only in magnetic field ==
     349The introduction is like in program 8, but the difference is that here we have
     350trigonometrical dependencies of the initial velocities. Part 3
    358351{{{
    359352#!fortran
    360 !The introduction is like in program 8, but the difference is that here we have
    361 !trigonometrical dependencies of the initial velocities. 
    362 !Part 3
    363353integer :: N = 1500
    364354real(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
     
    397387
    398388== 11. Determination the proton energy and power  ==
     389Also 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.
    399390{{{
    400391#!fortran
    401 !Also for one of the main characteristics in the plasma is the energy and the power of the
    402 !charge particles. In this program are obtained the energy and the power of the protons in
    403 !the plasma. Using the basics equations for it.
    404392integer :: n=1000
    405393real(8) :: dt, t, x, y, vx, vy, v, E, W
     
    445433}}}
    446434== 12. Runge-Kutta method for harmonic oscillations ==
     435To 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. 
     436Using method Runge-Kuta can be obtain the basic differential equation for oscillator. Part 1
     437
    447438{{{
    448439#!fortran
    449 !To solve a partial differential equations need to satisfy the condition y(x0)=y0 which is
    450 !called Cauchy task. The most effective and the commonly used method of the solution of
    451 !Cauchy task is Runge-Kuta method. It is based on a approximation of the function y, which is
    452 !obtained by expanding the function in Taylor series. 
    453 !Using method Runge-Kuta can be obtain the basic differential equation for oscillator.
    454 !Part 1
    455 
    456 
    457440external fct, out
    458441real aux(8,2)