Class BorderCellLocator

  extended by org.keridwen.modelling.mesh.inspector.analysers.MeshAnalyser
      extended by org.keridwen.modelling.mesh.inspector.analysers.BorderCellLocator
All Implemented Interfaces:
Comparable, MeshAnalyserInterface

public class BorderCellLocator
extends MeshAnalyser
implements MeshAnalyserInterface

This class implements a MeshAnalyser and scan the mesh to identify and localise "border cells" (i.e border Volumes), i.e cells containing a Surface which is itself contained on only one Volume.

Excepted in case of malformed mesh, this should identify Volumes on the boundaries of the Mesh domain only.

If a Volume is found inside the Mesh domain, this means an error of connectivity or Mesh consistency.

Julien Forest, Artenum SARL.

Field Summary
Fields inherited from class org.keridwen.modelling.mesh.inspector.analysers.MeshAnalyser
ANALYSER_TYPE, analysis, DATA_ARRAY_NAME, HISTROGRAM_ENABLE, inputParameters, mesh, name, outputParameters
Constructor Summary
BorderCellLocator(com.artenum.penelope.mesh.interfaces.Mesh mesh)
          Main constructor, the Mesh to by analysed should be passed in argument.
Method Summary
 Object analyseAndBuildVtkDataSet()
          return a vtk data set with the quality value mapped on it.
 GenericAnalysis analyseMesh()
          analyse the mesh and return an array of mesh elements.
 int compareTo(Object o)
 void printAnalysis()
          print the result of the analysis.
 GenericAnalysis probeCell(int meshId)
          Probe (i.e analyse) a cell specified by its Id.
Methods inherited from class org.keridwen.modelling.mesh.inspector.analysers.MeshAnalyser
computeDistributionFunction, getAnalysis, getInputParameters, getMesh, getName, getOutputParameters, setAnalysis, setInputParameters, setMesh, setName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keridwen.modelling.mesh.inspector.interfaces.MeshAnalyserInterface
getAnalysis, getOutputParameters, setAnalysis, setInputParameters, setMesh

Constructor Detail


public BorderCellLocator(com.artenum.penelope.mesh.interfaces.Mesh mesh)
Main constructor, the Mesh to by analysed should be passed in argument.

mesh - - Mesh instance to be analysed.
Method Detail


public GenericAnalysis probeCell(int meshId)
Description copied from interface: MeshAnalyserInterface
Probe (i.e analyse) a cell specified by its Id.

Specified by:
probeCell in interface MeshAnalyserInterface
meshId - of the cell.
the quality factor.


public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


public GenericAnalysis analyseMesh()
analyse the mesh and return an array of mesh elements.

Specified by:
analyseMesh in interface MeshAnalyserInterface
analyseMesh in class MeshAnalyser
This method should return the result of the analysis under an object implementing the GenericAnalysis interface.


public void printAnalysis()
Description copied from class: MeshAnalyser
print the result of the analysis. The analyseMesh method should be called before.

Specified by:
printAnalysis in interface MeshAnalyserInterface
printAnalysis in class MeshAnalyser


public Object analyseAndBuildVtkDataSet()
return a vtk data set with the quality value mapped on it.

Specified by:
analyseAndBuildVtkDataSet in interface MeshAnalyserInterface
analyseAndBuildVtkDataSet in class MeshAnalyser
a vtkDataSet of the analysed mesh with the quality factor.

Copyright © 2013 Artenum. All Rights Reserved.