spis.Util.List
Class GlobalMaxwellSurfSampler1

java.lang.Object
  extended byspis.Util.List.SurfSampler
      extended byspis.Util.List.GlobalMaxwellSurfSampler
          extended byspis.Util.List.GlobalMaxwellSurfSampler1

public class GlobalMaxwellSurfSampler1
extends GlobalMaxwellSurfSampler

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

Description :

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.GlobalMaxwellSurfSampler
dens, temp, velo, vTh
 
Fields inherited from class spis.Util.List.SurfSampler
particleType
 
Constructor Summary
GlobalMaxwellSurfSampler1(Part particleType, float density, float[] velocity, float temperature, float minimumWeight, float maximumWeight)
          Default constructor
GlobalMaxwellSurfSampler1(Part particleType, float density, float[] velocity, float temperature, VolMesh vm)
          Minial constructor, the default average super-particle number per cell is used
GlobalMaxwellSurfSampler1(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(SpaceVectTable surfNormal, FloatScalTable area, float time, IntScalTable index, VeloVectTable velo, float weight)
          Returns a sample of particle velocities with constant weight, not yet implemented.
 void sample(SpaceVectTable surfNormal, FloatScalTable areaT, float time, IntScalTable indexT, VeloVectTable veloT, FloatScalTable weightT)
          Returns a sample of particle velocities and weights generated following the Maxwellian flux distribution integrated over the duration time.
 
Methods inherited from class spis.Util.List.GlobalMaxwellSurfSampler
generateMaxwellian
 
Methods inherited from class spis.Util.List.SurfSampler
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

GlobalMaxwellSurfSampler1

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

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

GlobalMaxwellSurfSampler1

public GlobalMaxwellSurfSampler1(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 - the volume mesh these particle will enter
avPartNbPerCell - average particle number per cell

GlobalMaxwellSurfSampler1

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

Parameters:
particleType -
density -
velocity -
temperature -
vm - the volume mesh these particle will enter
Method Detail

sample

public void sample(SpaceVectTable surfNormal,
                   FloatScalTable areaT,
                   float time,
                   IntScalTable indexT,
                   VeloVectTable veloT,
                   FloatScalTable weightT)
Returns a sample of particle velocities and weights generated following the Maxwellian flux distribution integrated over the duration time. The index returns the surface element the particle comes from.

Specified by:
sample in class SurfSampler
Parameters:
surfNormal - surface normals (input)
areaT - cell areas (input)
time - the particles generated are the particle that would cross the surfaces during that time
indexT - index of each particle surface element (ouput)
veloT - sampled velocities (output)
weightT - weight of sampled particles (output)
See Also:
SurfSampler.sample(SpaceVectTable, FloatScalTable, float, IntScalTable, VeloVectTable, FloatScalTable)

sample

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

Specified by:
sample in class SurfSampler
Parameters:
surfNormal - surface normals (input)
area - cell areas (input)
time - the particles generated are the particle that would cross the surfaces during that time (input)
index - index of each particle surface (ouput)
velo - sampled velocities (output)
weight - fixed particle weight (input)
See Also:
SurfSampler.sample(SpaceVectTable, FloatScalTable, float, IntScalTable, VeloVectTable, float)