Back to index

salome-med  6.5.0
Classes | Functions | Variables
INTERP_TEST Namespace Reference

Classes

protocol  INTERPKERNELTEST_EXPORT
 Test suite testing some of the low level methods of TransformedTriangle. More...
class  HexaTests
 Class performing intersection tests on meshes with hexahedral elements. More...
class  InterpolationPlanarTestSuite
 Base class for planar mesh intersection test suites. More...
class  InterpolationTestSuite
 Base class for mesh intersection test suites. More...
class  MeshTestToolkit
 Class providing services for mesh intersection tests. More...
class  MultiElement2DTests
 Class testing algorithm by intersecting meshes of several polygonal elements - up to a few thousand. More...
class  MultiElementTetraTests
 Class testing algorithm by intersecting meshes of several elements (all tetrahedra) - up to a few thousand. More...
class  PerfTestToolkit
 Specialization of MeshTestToolkit for the purposes of performance testing. More...
class  DoubleEqual
class  SingleElementTetraTests
 Class testing algorithm by intersecting simple meshes having only one element each. More...
struct  __MESH_DUMMY

Functions

std::string getResourceFile (const std::string &filename)
static SplitterTetra
< __MESH_DUMMY > * 
buildSplitterTetra ()
void fill_UnitTetraIntersectionBary (UnitTetraIntersectionBary &bary, double nodes[][3])

Variables

static const double ADMISSIBLE_ERROR = 1.e-14
const double _Epsilon = 1.e-12
const double _Precision = 1.e-12
const double _losange1 [8] = { 1,0, 0,1, -1,0, 0,-1 }
const double _losange2 [8] = { 2,0, 1,1, 0,0, 1,-1 }
const double _losange3 [8] = {2.5,0.5,1.5,1.5,0.5,0.5,1.5,-0.5 }
const double _square1 [8] = { -1,-1, -1,1, 1,1, 1,-1}
const double _square2 [8] = {1,-0.25,0,-0.25,0,0.25,1,0.25 }
const double _losange4 [8] = { 3,0, 2,1, 1,0, 2,-1 }
const double _losange5 [8] = { 1.5,0, 0,1.5,-1.5,0, 0,-1.5 }
const double _losange6 [12] = { 2,0, 1,1, 0.5,0.5,0,0, 0.5,-0.5, 1,-1 }
const double _losange7 [10] = { 1,0, 0,1, -1,0, 0,-1, 0.5,-0.5 }
const double _square3 [10] = { -1,-1, -1,1, 0.5,1, 1,1, 1,-1, }
const double _square4 [8] = {-0.5,-1,-0.5,1,1.5,1,1.5,-1 }
const double _square5 [10] = { -1,-1, -1,1, 0,1, 1,1, 1,-1 }
const double _losange8 [8] = { 0,1, 1,-1, 0,-1.5,-0.5,-1 }
const double _losange9 [8] = {0.5,0, 0,1, -1.5,0, 0,-1 }
const double _hexagon1 [12] = { -2,0, -1,-1, 1,-1, 2,0, 1,1, -1,1 }
const double _hexagon2 [12] = {-1.5,0.5,-1,-1, 1,-1, 2,1, 1,1, -1,1 }
const double _hexagon3 [12] = { -2,2, -1,1, 1,1, 2,2, 1,3, -1,3 }
const double _square6 [8] = { -1,1, -1,3, 0.5,3,0.5,1 }
const double _losange10 [8] = { 0,-1, 1,-2, 0,-3, -1,-2 }
const double _triangle1 [6] = {0.5,0, 1,1, 0,1 }
const double _triangle2 [6] = { 0,0.5, 0,-0.5,1.5,0 }
const double _triangle3 [9] = {-1,2,0, 1,2,0, 0,2,1 }
const double _triangle4 [9] = {1./2,2,0, 1, 2, 1, 1, 2, 0.5 }
const double _parallel1 [8] = {-1,0, -0.5,1, 0.5,1, 0,0}
const double _parallel2 [8] = {-0.5,1, 0,0, 1.,0, 0.5,1 }
const double _parallel3 [8] = {-0.5,-1, 0,0, 1,0, 0.5,-1}
const double _triangle5 [6] = { 0,0, 0,0.5, 0.5,0.5 }
const double _triangle6 [6] = { 1./3,1./3, 1./3,2./3, 2./3,2./3 }
const double _triangle7 [6] = {0.5,2, 1,1, 0,1 }
const double _triangle8 [6] = {22.4601,35.2129, 13.9921,34.693, 18.2853,26.2812 }
const double _triangle9 [6] = {13.9921,34.693, 22.4601,35.2129, 18.2785,42.3869 }
const double _triangle10 [6] = {84.8575,98.2042, 80,100, 82.2601,95.7202}
const double _triangle11 [6] = {80,100, 76.6659,91.9804, 85.3912,92.5061 }

Function Documentation

Definition at line 38 of file UnitTetra3D2DIntersectionTest.cxx.

  {
    const int conn[4] = { 0,1,2,3 };

    const double targetCoords[] = { -20., 0.,10.,
                                    -20.,10.,10.,
                                    -12., 0.,10.,
                                    -20., 0.,18. };

    const double* tetraCoords[]={ targetCoords, targetCoords+3, targetCoords+6, targetCoords+9 };

    __MESH_DUMMY dummyMesh;
    SplitterTetra<__MESH_DUMMY>* targetTetra = new SplitterTetra<__MESH_DUMMY>( dummyMesh, tetraCoords, conn );
    return targetTetra;
  }

Definition at line 37 of file UnitTetraIntersectionBaryTest.cxx.

  {
    int faceConn[4][3] = { { 0, 1, 2 },// inverse order
                           { 0, 3, 1 },
                           { 1, 3, 2 },
                           { 3, 0, 2 } };
//     int faceConn[4][3] = { { 0, 2, 1 },
//                            { 0, 1, 3 },
//                            { 1, 2, 3 },
//                            { 3, 2, 0 } };
    bary.init(true);
    for ( int i = 0; i < 4; ++i ) {
      int* faceNodes = faceConn[ i ];
      TransformedTriangle tri(nodes[faceNodes[0]], nodes[faceNodes[1]], nodes[faceNodes[2]]);
      tri.calculateIntersectionVolume();
      bary.addSide( tri );
    }
  }

Here is the call graph for this function:

INTERPKERNELTEST_EXPORT std::string INTERP_TEST::getResourceFile ( const std::string &  filename)

Definition at line 26 of file TestInterpKernelUtils.cxx.

  {
    std::string resourceFile = "";
    
    if ( getenv("top_srcdir") ) {
      // we are in 'make check' step
      resourceFile = getenv("top_srcdir");
      resourceFile += "/resources/";
    }
    else if ( getenv("MED_ROOT_DIR") ) {
      // use MED_ROOT_DIR env.var
      resourceFile = getenv("MED_ROOT_DIR");
      resourceFile += "/share/salome/resources/med/";
    }
    resourceFile += filename;
    return resourceFile;
  }

Here is the caller graph for this function:


Variable Documentation

const double INTERP_TEST::_Epsilon = 1.e-12

Definition at line 31 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_hexagon1[12] = { -2,0, -1,-1, 1,-1, 2,0, 1,1, -1,1 }

Definition at line 47 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_hexagon2[12] = {-1.5,0.5,-1,-1, 1,-1, 2,1, 1,1, -1,1 }

Definition at line 48 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_hexagon3[12] = { -2,2, -1,1, 1,1, 2,2, 1,3, -1,3 }

Definition at line 49 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange1[8] = { 1,0, 0,1, -1,0, 0,-1 }

Definition at line 33 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange10[8] = { 0,-1, 1,-2, 0,-3, -1,-2 }

Definition at line 51 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange2[8] = { 2,0, 1,1, 0,0, 1,-1 }

Definition at line 34 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange3[8] = {2.5,0.5,1.5,1.5,0.5,0.5,1.5,-0.5 }

Definition at line 35 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange4[8] = { 3,0, 2,1, 1,0, 2,-1 }

Definition at line 38 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange5[8] = { 1.5,0, 0,1.5,-1.5,0, 0,-1.5 }

Definition at line 39 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange6[12] = { 2,0, 1,1, 0.5,0.5,0,0, 0.5,-0.5, 1,-1 }

Definition at line 40 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange7[10] = { 1,0, 0,1, -1,0, 0,-1, 0.5,-0.5 }

Definition at line 41 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange8[8] = { 0,1, 1,-1, 0,-1.5,-0.5,-1 }

Definition at line 45 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_losange9[8] = {0.5,0, 0,1, -1.5,0, 0,-1 }

Definition at line 46 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_parallel1[8] = {-1,0, -0.5,1, 0.5,1, 0,0}

Definition at line 56 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_parallel2[8] = {-0.5,1, 0,0, 1.,0, 0.5,1 }

Definition at line 57 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_parallel3[8] = {-0.5,-1, 0,0, 1,0, 0.5,-1}

Definition at line 58 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_Precision = 1.e-12

Definition at line 32 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_square1[8] = { -1,-1, -1,1, 1,1, 1,-1}

Definition at line 36 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_square2[8] = {1,-0.25,0,-0.25,0,0.25,1,0.25 }

Definition at line 37 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_square3[10] = { -1,-1, -1,1, 0.5,1, 1,1, 1,-1, }

Definition at line 42 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_square4[8] = {-0.5,-1,-0.5,1,1.5,1,1.5,-1 }

Definition at line 43 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_square5[10] = { -1,-1, -1,1, 0,1, 1,1, 1,-1 }

Definition at line 44 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_square6[8] = { -1,1, -1,3, 0.5,3,0.5,1 }

Definition at line 50 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle1[6] = {0.5,0, 1,1, 0,1 }

Definition at line 52 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle10[6] = {84.8575,98.2042, 80,100, 82.2601,95.7202}

Definition at line 64 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle11[6] = {80,100, 76.6659,91.9804, 85.3912,92.5061 }

Definition at line 65 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle2[6] = { 0,0.5, 0,-0.5,1.5,0 }

Definition at line 53 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle3[9] = {-1,2,0, 1,2,0, 0,2,1 }

Definition at line 54 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle4[9] = {1./2,2,0, 1, 2, 1, 1, 2, 0.5 }

Definition at line 55 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle5[6] = { 0,0, 0,0.5, 0.5,0.5 }

Definition at line 59 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle6[6] = { 1./3,1./3, 1./3,2./3, 2./3,2./3 }

Definition at line 60 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle7[6] = {0.5,2, 1,1, 0,1 }

Definition at line 61 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle8[6] = {22.4601,35.2129, 13.9921,34.693, 18.2853,26.2812 }

Definition at line 62 of file SingleElementPlanarTests.cxx.

const double INTERP_TEST::_triangle9[6] = {13.9921,34.693, 22.4601,35.2129, 18.2785,42.3869 }

Definition at line 63 of file SingleElementPlanarTests.cxx.

static const double INTERP_TEST::ADMISSIBLE_ERROR = 1.e-14 [static]

Definition at line 36 of file QuadraticPlanarInterpTest.cxx.