spis.Surf.SurfDistrib
Class GlobalMaxwellSurfDistrib

java.lang.Object
  extended byspis.Surf.SurfDistrib.SurfDistrib
      extended byspis.Surf.SurfDistrib.NonPICSurfDistrib
          extended byspis.Surf.SurfDistrib.GlobalSurfDistrib
              extended byspis.Surf.SurfDistrib.GlobalMaxwellSurfDistrib

public class GlobalMaxwellSurfDistrib
extends GlobalSurfDistrib

Class Name : GlobalMaxwellSurfDistrib
Project ref : SPIS project
File name : GlobalMaxwellSurfDistrib.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : Mar 4, 2004
Modification :

Description : global Maxellian distribution
The volume distribution function is a uniform Maxwell distribution with moment dens, velo and temp (not a Boltzmann-Maxwell distribution, no dependence in the local potential is included through a Boltzmann factor)

Versions and anomalies correction :

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


Version:
0.1
Author:
JF Roussel

Field Summary
private  float dens
          density
private  float temp
          temperature
private  float[] velo
          velocity
 
Fields inherited from class spis.Surf.SurfDistrib.NonPICSurfDistrib
part, sampler
 
Fields inherited from class spis.Surf.SurfDistrib.SurfDistrib
from, sm, to
 
Constructor Summary
GlobalMaxwellSurfDistrib(SurfMesh sm, float density, float[] velocity, float temperature, Part particleType)
          Quick constructor (no sampler provided, it is built from plasma data)
GlobalMaxwellSurfDistrib(SurfMesh sm, float density, float[] velocity, float temperature, SurfSampler sampler)
          Default constructor
 
Method Summary
 float assessTypicalVelo()
           
 void getMoment(SurfField mom, int order, int charge, int mass)
          Warning: the computation of the moments of a global Maxwell distribution are momentarily approximate because they involve error functions (erf(x)) not readily available in java.
 void map(SurfDistrib sd)
          Mapping of a generic surface distribution into a global maxwellian distribution is seldom relevant => not implemented (throws a SpisRuntimeException)
 
Methods inherited from class spis.Surf.SurfDistrib.NonPICSurfDistrib
assesMinTimeToCrossOneCell, getMoment, getPart, getSample, getSampler, sample, setPart, setSampler
 
Methods inherited from class spis.Surf.SurfDistrib.SurfDistrib
checkMomentConsistentWithOrder, getFrom, getMoment, getMoment, getMoment, getMoment, getSm, getTo, setFrom, setTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dens

private float dens
density


velo

private float[] velo
velocity


temp

private float temp
temperature

Constructor Detail

GlobalMaxwellSurfDistrib

public GlobalMaxwellSurfDistrib(SurfMesh sm,
                                float density,
                                float[] velocity,
                                float temperature,
                                SurfSampler sampler)
Default constructor

Parameters:
sm - surface mesh
density - reference density for this global Maxwell distribution
velocity - reference velocity (average/macroscopic)
temperature - reference temperature
sampler - particle sampler (random generator)

GlobalMaxwellSurfDistrib

public GlobalMaxwellSurfDistrib(SurfMesh sm,
                                float density,
                                float[] velocity,
                                float temperature,
                                Part particleType)
Quick constructor (no sampler provided, it is built from plasma data)

Parameters:
sm - surface mesh
density - reference density for this global Maxwell distribution
velocity - reference velocity (average/macroscopic)
temperature - reference temperature
particleType - the ptype of particles to generate
Method Detail

getMoment

public void getMoment(SurfField mom,
                      int order,
                      int charge,
                      int mass)
Warning: the computation of the moments of a global Maxwell distribution are momentarily approximate because they involve error functions (erf(x)) not readily available in java. They are however exact for zero global velocity, or velocity normal to surfaces

Specified by:
getMoment in class NonPICSurfDistrib
See Also:
SurfDistrib.getMoment(spis.Surf.SurfField.SurfField, int, int, int)

map

public void map(SurfDistrib sd)
Mapping of a generic surface distribution into a global maxwellian distribution is seldom relevant => not implemented (throws a SpisRuntimeException)

Specified by:
map in class SurfDistrib
See Also:
SurfDistrib.map(spis.Surf.SurfDistrib.SurfDistrib)

assessTypicalVelo

public float assessTypicalVelo()
Specified by:
assessTypicalVelo in class NonPICSurfDistrib
Returns:
the typical velocity of particles emitted by this surface distribution