spis.Util.List
Class GlobalMaxwellVolSampler

java.lang.Object
  extended byspis.Util.List.VolSampler
      extended byspis.Util.List.GlobalMaxwellVolSampler
Direct Known Subclasses:
GlobalMaxwellVolSampler1

public abstract class GlobalMaxwellVolSampler
extends VolSampler

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

Description : Performs random sampling following a global Maxwellian law,
of which momenta are passed in the constructor (they are identical all over the volume mesh).

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
protected  float dens
          density [m-3]
protected  float temp
          temperature [eV]
protected  float[] velo
          average velocity [m/s]
protected  float vTh
          thermal velocity ((kB*T/m)^1/2 indeed)
 
Fields inherited from class spis.Util.List.VolSampler
particleType
 
Constructor Summary
GlobalMaxwellVolSampler(Part particleType_, float density, float[] velocity, float temperature)
          Default constructor
 
Method Summary
 void generateMaxwellian(VeloVectTable veloT, int n)
          generates a Maxwellian velocity sample of size n with the velocity and temperature momenta of this Sampler (used by derived classes)
 
Methods inherited from class spis.Util.List.VolSampler
getParticleType, sample, sample, setParticleType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dens

protected float dens
density [m-3]


velo

protected float[] velo
average velocity [m/s]


temp

protected float temp
temperature [eV]


vTh

protected float vTh
thermal velocity ((kB*T/m)^1/2 indeed)

Constructor Detail

GlobalMaxwellVolSampler

public GlobalMaxwellVolSampler(Part particleType_,
                               float density,
                               float[] velocity,
                               float temperature)
Default constructor

Parameters:
density - [#/m3]
temperature - [eV]
velocity - [m/s]
Method Detail

generateMaxwellian

public void generateMaxwellian(VeloVectTable veloT,
                               int n)
generates a Maxwellian velocity sample of size n with the velocity and temperature momenta of this Sampler (used by derived classes)