|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Surf.SurfDistrib.SurfDistrib
spis.Surf.SurfDistrib.NonPICSurfDistrib
spis.Surf.SurfDistrib.MaxwellianThruster
Class Name : MaxwellianThruster
Project ref : SPIS project
File name : MaxwellianThruster.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : Jul 8, 2004
Modification :
Description : Basic example of thruster effluents model.
The plume is described as a Maxwellian, aligned with the surface normal,
of flux, temperature and Mach number defined locally through the local
parameters sourceCurrent, sourceTemp, sourceMach (sourceId is not used in
the current version but may be used in others).
This is a basis to be copied by users to build their own thruster model:
- define a new class, similar to this one (extending NonPICSurfDistrib, with
the same constructor interface, implementing abstract methods of NonPICSurfDistrib),
with a different name e.g. "MyThruster" (most of the work consists in
defining a sampler, similarly as MaxwellianThrusterSampler here (it must
be a derived class of SurfSample))
- choose it through the UI: define the global parameter sourceType as = "MyThruster"
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Field Summary | |
private ScalSurfField |
flux
local flux |
private ScalSurfField |
mach
local Mach number |
private Part |
partType
emitted particle type |
private float |
sourceFlag
sourceFlag defined in UI: 0=>off, 1 or x > 0 => on, x may be used as a densification coefficient (more super-particles by a factor x) |
private ScalSurfField |
temp
local temperature |
Fields inherited from class spis.Surf.SurfDistrib.NonPICSurfDistrib |
part, sampler |
Fields inherited from class spis.Surf.SurfDistrib.SurfDistrib |
from, sm, to |
Constructor Summary | |
MaxwellianThruster(GlobalParameter[] globalParams,
LocalParameter[] localParams,
java.lang.String option,
SurfMesh sm,
java.lang.Integer sourceId)
Constructor based on UI-defined parameters |
Method Summary | |
float |
assessTypicalVelo()
|
void |
getMoment(SurfField mom,
int order,
int charge,
int mass)
Only the moment of order 0 (number flux) is supported, but it should be enough for most usages. |
void |
map(SurfDistrib sd)
Mappinf onto a Thruster distribution not allowed |
Methods inherited from class spis.Surf.SurfDistrib.NonPICSurfDistrib |
assesMinTimeToCrossOneCell, getMoment, getPart, getSample, getSampler, sample, setPart, setSampler |
Methods inherited from class spis.Surf.SurfDistrib.SurfDistrib |
checkMomentConsistentWithOrder, getFrom, getMoment, getMoment, getMoment, getMoment, getSm, getTo, setFrom, setTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ScalSurfField flux
private ScalSurfField temp
private ScalSurfField mach
private Part partType
private float sourceFlag
Constructor Detail |
public MaxwellianThruster(GlobalParameter[] globalParams, LocalParameter[] localParams, java.lang.String option, SurfMesh sm, java.lang.Integer sourceId)
globalParams
- localParams
- option
- unused for nowsm
- Method Detail |
public void getMoment(SurfField mom, int order, int charge, int mass)
getMoment
in class NonPICSurfDistrib
SurfDistrib.getMoment(spis.Surf.SurfField.SurfField, int, int, int)
public void map(SurfDistrib sd)
map
in class SurfDistrib
SurfDistrib.map(spis.Surf.SurfDistrib.SurfDistrib)
public float assessTypicalVelo()
assessTypicalVelo
in class NonPICSurfDistrib
NonPICSurfDistrib.assessTypicalVelo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |