spis.Util.Part
Class Part

java.lang.Object
  extended byspis.Util.Part.Part

public class Part
extends java.lang.Object

Class Name : Part (particle)
Project ref : SPIS project
File name : Part.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :

Description : Particle.
Physical parameters describing a particle.
This is used as a simple structure (data only), hence data are
dfined as public.

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

Constructor Summary
Part(java.lang.String pName, float pMass, float pCharge)
           
 
Method Summary
 float getCharge()
          returns particle charge [elementary charge units] = [ecu]
 float getChargeC()
          returns particle charge [C]
 float getMass()
          returns particle mass [amu]
 float getMassKg()
          returns particle mass [kg]
 float getMultFactorCKg(int chargeFlag, int massFlag)
          returns the multiplicative factor needed to transform particle number [#] into charge [C] (multFactor(1,0)) or mass [kg] (mulFactor(0,1))
 java.lang.String getName()
          returns particle Name
 float getThermalVelo(float temp)
          returns thermal velocity ((kT/m)^1/2) [m/s]
 float multFactor(int chargeFlag, int massFlag)
          returns the multiplicative factor needed to transform particle number [#] into charge [elem charge units]=[ecu] (multFactor(1,0)) or mass [amu] (mulFactor(0,1))
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Part

public Part(java.lang.String pName,
            float pMass,
            float pCharge)
Method Detail

multFactor

public float multFactor(int chargeFlag,
                        int massFlag)
returns the multiplicative factor needed to transform particle number [#] into charge [elem charge units]=[ecu] (multFactor(1,0)) or mass [amu] (mulFactor(0,1))

Returns:

getMultFactorCKg

public float getMultFactorCKg(int chargeFlag,
                              int massFlag)
returns the multiplicative factor needed to transform particle number [#] into charge [C] (multFactor(1,0)) or mass [kg] (mulFactor(0,1))

Returns:

getThermalVelo

public float getThermalVelo(float temp)
returns thermal velocity ((kT/m)^1/2) [m/s]

Parameters:
temp - temperature [eV]
Returns:

getMass

public float getMass()
returns particle mass [amu]


getMassKg

public float getMassKg()
returns particle mass [kg]


getChargeC

public float getChargeC()
returns particle charge [C]


getCharge

public float getCharge()
returns particle charge [elementary charge units] = [ecu]


getName

public java.lang.String getName()
returns particle Name