spis.Util.Monitor
Class FieldMonitor

java.lang.Object
  extended byspis.Util.Monitor.FieldMonitor

public class FieldMonitor
extends java.lang.Object

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

Description : Monitors surface and volume fields: densities, potentials and currents.
They are stored with predefined time steps. The monitor method must be invoked more often than the time steps, and the storage is done only if needed.
Another version with averaging of these values between each storage can be envisaged.

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
protected  ThreeDUnstructSurfMesh bdSurfMesh
          the 3D untructured surface mesh, external boundary of the simulation box (not a physical surface)
private  float densitiesMapsMonitorStep
          time step for densities monitoring
private  float lastDensityMap
          last density monitoring step
private  float lastPlasmaPotMap
          last plasma potential monitoring step
private  float lastScCurMap
          last SC local current monitoring step
private  float lastScPotMap
          last SC local potential monitoring step
protected  MmfPlasma plasma
          plasma model (might be a generic plasma later, for now an MmfPlasma)
private  float plasmaPotMapMonitorStep
          time step for plasma potential monitoring
private  java.util.Vector results
          results of monitoring
protected  RCCabsSC sc
          spacecraft model (might be a generic SC later, for now an RCCabsSC)
private  float scCurrentMapMonitorStep
          time step for spacecraft local currents monitoring
private  float scPotMapMonitorStep
          time step for spacecraft local potential monitoring
protected  ThreeDUnstructSurfMesh scSurfMesh
          the 3D untructured spacecraft surface mesh, (a physical surface)
protected  ThreeDUnstructVolMesh volMesh
          the 3D untructured volume mesh, of the simulation box
 
Constructor Summary
FieldMonitor(MmfPlasma plasma, RCCabsSC sc, ThreeDUnstructVolMesh volMesh, ThreeDUnstructSurfMesh scSurfMesh, ThreeDUnstructSurfMesh bdSurfMesh, float scPotMapMonitorStep, float scCurrentMapMonitorStep, float plasmaPotMapMonitorStep, float densitiesMapsMonitorStep)
           
 
Method Summary
private  void addData(java.lang.Object data, java.lang.String name, float t)
          Stores data for postprocessing
 java.util.Vector getResults()
           
 void monitor(float t, ScalSurfField collectedCurrent, ScalSurfField emittedCurrent, ScalSurfField netCurrent)
          Stores extra data at time t for monitoring if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sc

protected RCCabsSC sc
spacecraft model (might be a generic SC later, for now an RCCabsSC)


plasma

protected MmfPlasma plasma
plasma model (might be a generic plasma later, for now an MmfPlasma)


volMesh

protected ThreeDUnstructVolMesh volMesh
the 3D untructured volume mesh, of the simulation box


bdSurfMesh

protected ThreeDUnstructSurfMesh bdSurfMesh
the 3D untructured surface mesh, external boundary of the simulation box (not a physical surface)


scSurfMesh

protected ThreeDUnstructSurfMesh scSurfMesh
the 3D untructured spacecraft surface mesh, (a physical surface)


scPotMapMonitorStep

private float scPotMapMonitorStep
time step for spacecraft local potential monitoring


scCurrentMapMonitorStep

private float scCurrentMapMonitorStep
time step for spacecraft local currents monitoring


plasmaPotMapMonitorStep

private float plasmaPotMapMonitorStep
time step for plasma potential monitoring


densitiesMapsMonitorStep

private float densitiesMapsMonitorStep
time step for densities monitoring


lastScPotMap

private float lastScPotMap
last SC local potential monitoring step


lastScCurMap

private float lastScCurMap
last SC local current monitoring step


lastPlasmaPotMap

private float lastPlasmaPotMap
last plasma potential monitoring step


lastDensityMap

private float lastDensityMap
last density monitoring step


results

private java.util.Vector results
results of monitoring

Constructor Detail

FieldMonitor

public FieldMonitor(MmfPlasma plasma,
                    RCCabsSC sc,
                    ThreeDUnstructVolMesh volMesh,
                    ThreeDUnstructSurfMesh scSurfMesh,
                    ThreeDUnstructSurfMesh bdSurfMesh,
                    float scPotMapMonitorStep,
                    float scCurrentMapMonitorStep,
                    float plasmaPotMapMonitorStep,
                    float densitiesMapsMonitorStep)
Method Detail

monitor

public void monitor(float t,
                    ScalSurfField collectedCurrent,
                    ScalSurfField emittedCurrent,
                    ScalSurfField netCurrent)
Stores extra data at time t for monitoring if needed. Currents are to be passed to this method because they are not stored in permanent objects (plasma, SC) passed to this monitor constructor (contrarily to densities and potentials)

Parameters:
t -
collectedCurrent -
emittedCurrent -
netCurrent -

addData

private void addData(java.lang.Object data,
                     java.lang.String name,
                     float t)
Stores data for postprocessing

Parameters:
data -
name -
t - time of creation of this data

getResults

public java.util.Vector getResults()
Returns:
Returns the results of the monitoring (fields stored at the defined times)