spis.Util.List
Class PointList

java.lang.Object
  extended byspis.Util.List.PointList
Direct Known Subclasses:
PartList

public class PointList
extends java.lang.Object

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

Description : List of points.
Includes points positions and index of the cell containing each point (necesarry to keep track of the cell for unstructured meshes, this may not be used for structured meshes).
The start and end indices can be used to only consider part of the particles of which data are stored in tables (temporarily or not).

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  int dim
          Useful list dimension: points/particles from 0 to dim-1 can be considered.
protected  int endId
          start index (index of the first particle to consider)
protected  IntScalTable indexT
          index of the cell containing the point (or of the surface a particle has arrived on, for derived class PartList)
protected  SpaceVectTable posT
          position of the point
protected  int startId
          start index (index of the first particle to consider)
protected  VolMesh vm
          pointer to the volume mesh the index refers to
 
Constructor Summary
PointList(PointList pl)
          copy constructor (variable arrays are copied, whereas for meshes and particle type pointers only are copied)
PointList(VolMesh volMesh)
          Constructor of an empty list
PointList(VolMesh volMesh, int dimension)
          Constructor of a list of a given dimension
PointList(VolMesh volMesh, IntScalTable indexTable, SpaceVectTable posTable)
          Default constructor with full data
 
Method Summary
 void declareDim(int dimension)
          declares the list dimension = dim (just stores it, does not allocate anything)
 int getDim()
           
 int getEndId()
           
 IntScalTable getIndexTable()
           
 SpaceVectTable getPosTable()
           
 int getStartId()
           
 VolMesh getVm()
           
 void init()
          initialisations
 void setDim(int dimension)
          sets the list dimension to dim: resizes the tables if needed, not preserving data (except if no resizing is needed).
 void setDimPreserve(int dimension)
          sets the list dimension to dim: resizes the tables if needed, not preserving data (except if no resizing is needed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

posT

protected SpaceVectTable posT
position of the point


indexT

protected IntScalTable indexT
index of the cell containing the point (or of the surface a particle has arrived on, for derived class PartList)


vm

protected VolMesh vm
pointer to the volume mesh the index refers to


dim

protected int dim
Useful list dimension: points/particles from 0 to dim-1 can be considered. This interval may yet be reduced by startId and endId (both in [0, dim-1]). dim should be equal to all xxxT.getDim() of all tables xxxT (posT....


startId

protected int startId
start index (index of the first particle to consider)


endId

protected int endId
start index (index of the first particle to consider)

Constructor Detail

PointList

public PointList(VolMesh volMesh)
Constructor of an empty list


PointList

public PointList(VolMesh volMesh,
                 int dimension)
Constructor of a list of a given dimension


PointList

public PointList(VolMesh volMesh,
                 IntScalTable indexTable,
                 SpaceVectTable posTable)
Default constructor with full data


PointList

public PointList(PointList pl)
copy constructor (variable arrays are copied, whereas for meshes and particle type pointers only are copied)

Method Detail

init

public void init()
initialisations


declareDim

public void declareDim(int dimension)
declares the list dimension = dim (just stores it, does not allocate anything)


setDim

public void setDim(int dimension)
sets the list dimension to dim: resizes the tables if needed, not preserving data (except if no resizing is needed).


setDimPreserve

public void setDimPreserve(int dimension)
sets the list dimension to dim: resizes the tables if needed, not preserving data (except if no resizing is needed).


getPosTable

public SpaceVectTable getPosTable()

getIndexTable

public IntScalTable getIndexTable()

getVm

public VolMesh getVm()

getDim

public int getDim()

getStartId

public int getStartId()

getEndId

public int getEndId()