Changeset 101:db1557a9da1f


Ignore:
Timestamp:
Jan 12, 2009, 5:24:04 PM (16 years ago)
Author:
fnevgeny
Branch:
default
Phase:
public
Message:

Calculate Alfven velocity correctly.

Location:
source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Application.js

    r99 r101  
    668668        {
    669669            return 2.94128e-11*Math.pow(this.e.getN(), 2/3);
     670        },
     671       
     672        getAlfvenVelocity : function()
     673        {
     674            var v_m1;
     675           
     676            v_m1 = 1/this.e.getAlfvenVelocity(this.B) +
     677                   1/this.i.getAlfvenVelocity(this.B);
     678       
     679            if (this.r.getQ() != 0) {
     680                v_m1 += 1/this.r.getAlfvenVelocity(this.B);
     681            }
     682           
     683            return 1/v_m1;
    670684        },
    671685       
  • source/entities.js

    r96 r101  
    8383        name      : "Alfven velocity",
    8484        dimension : "velocity",
    85         nspecies  : 1,
    86         section   : "fundamental",
    87         formula   : "%s1.getAlfvenVelocity(this.B)",
     85        nspecies  : 0,
     86        section   : "fundamental",
     87        formula   : "this.getAlfvenVelocity(this.B)",
    8888        wikiLink  : "Alfven_velocity"
    8989    },
Note: See TracChangeset for help on using the changeset viewer.