|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Util.List.VolSampler
spis.Util.List.GlobalMaxwellVolSampler
spis.Util.List.GlobalMaxwellVolSampler1
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 number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
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 |
private float maxWeight
private float minWeight
Constructor Detail |
public GlobalMaxwellVolSampler1(Part particleType, float density, float[] velocity, float temperature, float minimumWeight, float maximumWeight)
particleType
- density
- temperature
- velocity
- minimumWeight
- maximumWeight
- public GlobalMaxwellVolSampler1(Part particleType, float density, float[] velocity, float temperature, VolMesh vm, int avPartNbPerCell)
particleType
- density
- velocity
- temperature
- vm
- volume meshavPartNbPerCell
- average particle number per cellpublic GlobalMaxwellVolSampler1(Part particleType, float density, float[] velocity, float temperature, VolMesh vm)
particleType
- density
- velocity
- temperature
- vm
- volume meshMethod Detail |
public void sample(FloatScalTable volumeT, IntScalTable indexT, VeloVectTable veloT, FloatScalTable weightT)
sample
in class VolSampler
volumeT
- cell volumes (input)indexT
- index of each particle cell (ouput)veloT
- sampled velocities (output)weightT
- weight of sampled particles (output)public void sample(FloatScalTable volume, IntScalTable index, VeloVectTable velo, float weight)
sample
in class VolSampler
volume
- cell volumes (input)index
- index of each particle cell (ouput)velo
- sampled velocities (output)weight
- fixed particle weight (input)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |