|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Util.List.SurfSampler
spis.Util.List.LocalMaxwellSurfSampler
spis.Util.List.LocalMaxwellSurfSampler1
Class Name : LocalMaxwellSurfSampler1
Project ref : SPIS project
File name : LocalMaxwellSurfSampler1.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 7 mars 2004
Modification :
Description : Sampler for local Maxwell surface distribution.
It generates particles of variable weigth following two possible modes:
0- based on minimum and maximum allowed weight for particles
(these extremum weights can be given explicitely or derived
from typical fluxes, depending on the chosen constructor, among two).
1- based on the desired number of particle par cell (to be used when no
estimate of the generated flux can be done at the moment of Sampler
construction)
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Constructor Summary | |
LocalMaxwellSurfSampler1(Part particleType,
float typicalFlux,
float typicalTemperature,
ScalSurfField flux,
ScalSurfField temp)
Quick constructor (mode 0, similarly as the default constructor): the supplied typical flux and temperature allow an automatic setting of the minimum/maximum weigths (based on default average particle number per cell SpisDefaultSampling.avPartNbPerCell) |
|
LocalMaxwellSurfSampler1(Part particleType,
ScalSurfField flux,
ScalSurfField temp,
float densificationCoeff_)
mode 1 constructor: super-particle weight will be determined at sampling time based on the desired number of particle par cell (to be used when no estimate of the generated flux can be done at the moment of Sampler construction). |
|
LocalMaxwellSurfSampler1(Part particleType,
ScalSurfField flux,
ScalSurfField temp,
float minimumWeight,
float maximumWeight)
Default constructor (mode 0): minimum and maximum weights of the provided particles are explicit given to the constructor |
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.LocalMaxwellSurfSampler |
getFlux, getTemp, setFlux, setTemp |
Methods inherited from class spis.Util.List.SurfSampler |
getParticleType, setParticleType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocalMaxwellSurfSampler1(Part particleType, ScalSurfField flux, ScalSurfField temp, float minimumWeight, float maximumWeight)
particleType
- flux
- local flux [#/node/s] (can be null if later set, e.g. by a LocalMaxwellSurfDistrib)temp
- local temperature [K] (can be null if later set, e.g. by a LocalMaxwellSurfDistrib)minimumWeight
- minimum super-particle weightmaximumWeight
- maximum super-particle weightpublic LocalMaxwellSurfSampler1(Part particleType, float typicalFlux, float typicalTemperature, ScalSurfField flux, ScalSurfField temp)
particleType
- typicalFlux
- typical emitted flux [#/m2/s]typicalTemperature
- typical temperature of emitted particles [eV]flux
- local flux [#/node/s] (can be null if later set, e.g. by a LocalMaxwellSurfDistrib)temp
- local temperature [K] (can be null if later set, e.g. by a LocalMaxwellSurfDistrib)public LocalMaxwellSurfSampler1(Part particleType, ScalSurfField flux, ScalSurfField temp, float densificationCoeff_)
particleType
- flux
- local flux [#/node/s] (can be null if later set, e.g. by a LocalMaxwellSurfDistrib)temp
- local temperature [K] (can be null if later set, e.g. by a LocalMaxwellSurfDistrib)densificationCoeff_
- rescaling coefficient for desired superparticle number per cellMethod Detail |
public void sample(SpaceVectTable surfNormal, FloatScalTable areaT, float time, IntScalTable indexT, VeloVectTable veloT, FloatScalTable weightT)
sample
in class SurfSampler
surfNormal
- surface normals (input)areaT
- cell areas (input)time
- the particles generated are the particle that would cross the surfaces during that timeindexT
- index of each particle surface element (ouput)veloT
- sampled velocities (output)weightT
- weight of sampled particles (output)SurfSampler.sample(SpaceVectTable, FloatScalTable, float, IntScalTable, VeloVectTable, FloatScalTable)
public void sample(SpaceVectTable surfNormal, FloatScalTable area, float time, IntScalTable index, VeloVectTable velo, float weight)
sample
in class SurfSampler
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)SurfSampler.sample(SpaceVectTable, FloatScalTable, float, IntScalTable, VeloVectTable, float)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |