spis.Surf.SurfDistrib
Class MaxwellianThruster
java.lang.Object
spis.Surf.SurfDistrib.SurfDistrib
spis.Surf.SurfDistrib.NonPICSurfDistrib
spis.Surf.SurfDistrib.MaxwellianThruster
- public class MaxwellianThruster
- extends NonPICSurfDistrib
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 |
- Version:
- 0.1
- Author:
- JF Roussel
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxwellianThruster
public MaxwellianThruster(GlobalParameter[] globalParams,
LocalParameter[] localParams,
java.lang.String option,
SurfMesh sm,
java.lang.Integer sourceId)
- Constructor based on UI-defined parameters
- Parameters:
globalParams
- localParams
- option
- unused for nowsm
-
getMoment
public 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.
- Specified by:
getMoment
in class NonPICSurfDistrib
- See Also:
SurfDistrib.getMoment(spis.Surf.SurfField.SurfField, int, int, int)
map
public void map(SurfDistrib sd)
- Mappinf onto a Thruster distribution not allowed
- Specified by:
map
in class SurfDistrib
- See Also:
SurfDistrib.map(spis.Surf.SurfDistrib.SurfDistrib)
assessTypicalVelo
public float assessTypicalVelo()
- Specified by:
assessTypicalVelo
in class NonPICSurfDistrib
- Returns:
- the typical velocity of particles emitted by this surface distribution
(used by assesMinTimeToCrossOneCell)
- See Also:
NonPICSurfDistrib.assessTypicalVelo()