org.keridwen.modelling.mesh.inspector.analysers
Class BorderCellLocator

java.lang.Object
  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.

Author:
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

BorderCellLocator

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

Parameters:
mesh - - Mesh instance to be analysed.
Method Detail

probeCell

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
Parameters:
meshId - of the cell.
Returns:
the quality factor.

compareTo

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

analyseMesh

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

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

printAnalysis

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
Overrides:
printAnalysis in class MeshAnalyser

analyseAndBuildVtkDataSet

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

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


Copyright © 2013 Artenum. All Rights Reserved.