spis.Util.List
Class GlobalMaxwellVolSampler1

java.lang.Object
  extended byspis.Util.List.VolSampler
      extended byspis.Util.List.GlobalMaxwellVolSampler
          extended byspis.Util.List.GlobalMaxwellVolSampler1

public class GlobalMaxwellVolSampler1
extends GlobalMaxwellVolSampler

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

Description : Maxwellian sampler with super-particle weights smaller
than an upper bound (as close as possible) and larger
than a lower bound.

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 maxWeight
          maximum super-particle weight
private  float minWeight
          minimum super-particle weight
 
Fields inherited from class spis.Util.List.GlobalMaxwellVolSampler
dens, temp, velo, vTh
 
Fields inherited from class spis.Util.List.VolSampler
particleType
 
Constructor Summary
GlobalMaxwellVolSampler1(Part particleType, float density, float[] velocity, float temperature, float minimumWeight, float maximumWeight)
          Default constructor
GlobalMaxwellVolSampler1(Part particleType, float density, float[] velocity, float temperature, VolMesh vm)
          Minimal constructor, the default average super-particle number per cell is used
GlobalMaxwellVolSampler1(Part particleType, float density, float[] velocity, float temperature, VolMesh vm, int avPartNbPerCell)
          Constructor with the desired average super-particle number per cell
 
Method Summary
 void sample(FloatScalTable volume, IntScalTable index, VeloVectTable velo, float weight)
          Returns a sample of particle velocities with constant weight, not yet implemented.
 void sample(FloatScalTable volumeT, IntScalTable indexT, VeloVectTable veloT, FloatScalTable weightT)
          Returns a sample of particle velocities and weights generated following the Maxwellian distribution, the number of physical particles (sum of super-particle weights) being computed as the volume of the volumeT Table * dens.
 
Methods inherited from class spis.Util.List.GlobalMaxwellVolSampler
generateMaxwellian
 
Methods inherited from class spis.Util.List.VolSampler
getParticleType, setParticleType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxWeight

private float maxWeight
maximum super-particle weight


minWeight

private float minWeight
minimum super-particle weight

Constructor Detail

GlobalMaxwellVolSampler1

public GlobalMaxwellVolSampler1(Part particleType,
                                float density,
                                float[] velocity,
                                float temperature,
                                float minimumWeight,
                                float maximumWeight)
Default constructor

Parameters:
particleType -
density -
temperature -
velocity -
minimumWeight -
maximumWeight -

GlobalMaxwellVolSampler1

public GlobalMaxwellVolSampler1(Part particleType,
                                float density,
                                float[] velocity,
                                float temperature,
                                VolMesh vm,
                                int avPartNbPerCell)
Constructor with the desired average super-particle number per cell

Parameters:
particleType -
density -
velocity -
temperature -
vm - volume mesh
avPartNbPerCell - average particle number per cell

GlobalMaxwellVolSampler1

public GlobalMaxwellVolSampler1(Part particleType,
                                float density,
                                float[] velocity,
                                float temperature,
                                VolMesh vm)
Minimal constructor, the default average super-particle number per cell is used

Parameters:
particleType -
density -
velocity -
temperature -
vm - volume mesh
Method Detail

sample

public void sample(FloatScalTable volumeT,
                   IntScalTable indexT,
                   VeloVectTable veloT,
                   FloatScalTable weightT)
Returns a sample of particle velocities and weights generated following the Maxwellian distribution, the number of physical particles (sum of super-particle weights) being computed as the volume of the volumeT Table * dens. The index returns the volume cell the particle belongs to.

Specified by:
sample in class VolSampler
Parameters:
volumeT - cell volumes (input)
indexT - index of each particle cell (ouput)
veloT - sampled velocities (output)
weightT - weight of sampled particles (output)

sample

public void sample(FloatScalTable volume,
                   IntScalTable index,
                   VeloVectTable velo,
                   float weight)
Returns a sample of particle velocities with constant weight, not yet implemented.

Specified by:
sample in class VolSampler
Parameters:
volume - cell volumes (input)
index - index of each particle cell (ouput)
velo - sampled velocities (output)
weight - fixed particle weight (input)