spis.Surf.SurfDistrib
Class GlobalMaxwellSurfDistrib
java.lang.Object
spis.Surf.SurfDistrib.SurfDistrib
spis.Surf.SurfDistrib.NonPICSurfDistrib
spis.Surf.SurfDistrib.GlobalSurfDistrib
spis.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 number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
- Version:
- 0.1
- Author:
- JF Roussel
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlobalMaxwellSurfDistrib
public GlobalMaxwellSurfDistrib(SurfMesh sm,
float density,
float[] velocity,
float temperature,
SurfSampler sampler)
- Default constructor
- Parameters:
sm
- surface meshdensity
- reference density for this global Maxwell distributionvelocity
- reference velocity (average/macroscopic)temperature
- reference temperaturesampler
- 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 meshdensity
- reference density for this global Maxwell distributionvelocity
- reference velocity (average/macroscopic)temperature
- reference temperatureparticleType
- the ptype of particles to generate
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