COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Classes | Macros | Typedefs | Functions
utest-mesh-lagrangep1-line2d.cpp File Reference
#include <boost/assign/list_of.hpp>
#include <boost/test/unit_test.hpp>
#include "common/Log.hpp"
#include "common/Core.hpp"
#include "common/FindComponents.hpp"
#include "math/Consts.hpp"
#include "mesh/Connectivity.hpp"
#include "mesh/Dictionary.hpp"
#include "mesh/Field.hpp"
#include "mesh/ElementData.hpp"
#include "mesh/Elements.hpp"
#include "mesh/Space.hpp"
#include "mesh/Integrators/Gauss.hpp"
#include "mesh/LagrangeP1/Line2D.hpp"
#include "Tools/Testing/Difference.hpp"
#include "Tools/MeshGeneration/MeshGeneration.hpp"

Go to the source code of this file.

Classes

struct  LagrangeP1Line2DFixture
 
struct  LagrangeP1Line2DFixture::ConstFunctor
 
struct  LagrangeP1Line2DFixture::NormalVectorNorm
 Returns the norm of the normal vector to the curve or surface element (equal to tangent in the case of Line2D) More...
 
struct  LagrangeP1Line2DFixture::ConstVectorField
 Returns the scalar product of a constant vector field and the local element normal. More...
 
struct  LagrangeP1Line2DFixture::RotatingCylinderPressure
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   "Test module for the Line2D shapefunction"
 

Typedefs

typedef Line2D ETYPE
 

Functions

template<typename ResultT , typename FunctorT >
void integrate_region (ResultT &result, FunctorT functor, const Table< Real > &coordinates, const Table< Uint > &connectivity)
 Integral over a region. More...
 
template<typename ResultT , typename FunctorT , typename NodesT >
void integrate_element (ResultT &result, FunctorT functor, const NodesT &nodes)
 Integral for an element. More...
 
 BOOST_AUTO_TEST_CASE (Area)
 
 BOOST_AUTO_TEST_CASE (ShapeFunction)
 
 BOOST_AUTO_TEST_CASE (MappedGradient)
 
 BOOST_AUTO_TEST_CASE (Jacobian)
 
 BOOST_AUTO_TEST_CASE (IntegrateConst)
 
 BOOST_AUTO_TEST_CASE (SurfaceIntegral)
 
 BOOST_AUTO_TEST_CASE (ArcIntegral)
 
 BOOST_AUTO_TEST_CASE (RotatingCylinder)
 Lift produced by a rotating cylinder. More...
 

Macro Definition Documentation

#define BOOST_TEST_DYN_LINK

Definition at line 7 of file utest-mesh-lagrangep1-line2d.cpp.

#define BOOST_TEST_MODULE   "Test module for the Line2D shapefunction"

Definition at line 8 of file utest-mesh-lagrangep1-line2d.cpp.

Typedef Documentation

typedef Line2D ETYPE

Definition at line 47 of file utest-mesh-lagrangep1-line2d.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( Area  )

Definition at line 189 of file utest-mesh-lagrangep1-line2d.cpp.

BOOST_AUTO_TEST_CASE ( ShapeFunction  )

Definition at line 197 of file utest-mesh-lagrangep1-line2d.cpp.

BOOST_AUTO_TEST_CASE ( MappedGradient  )

Definition at line 207 of file utest-mesh-lagrangep1-line2d.cpp.

BOOST_AUTO_TEST_CASE ( Jacobian  )

Definition at line 219 of file utest-mesh-lagrangep1-line2d.cpp.

BOOST_AUTO_TEST_CASE ( IntegrateConst  )

Definition at line 229 of file utest-mesh-lagrangep1-line2d.cpp.

BOOST_AUTO_TEST_CASE ( SurfaceIntegral  )

Surface integrals can be done in 2D by making use of the normal vector to a curve. The components of this vector are the elements of the jacobian. For scalar functions, we need to integrate the function multiplied with the norm of the normal vector, for vector fields we integrate the scalar product of the function and the normal vector

Definition at line 261 of file utest-mesh-lagrangep1-line2d.cpp.

BOOST_AUTO_TEST_CASE ( ArcIntegral  )

Definition at line 286 of file utest-mesh-lagrangep1-line2d.cpp.

BOOST_AUTO_TEST_CASE ( RotatingCylinder  )

Lift produced by a rotating cylinder.

Definition at line 300 of file utest-mesh-lagrangep1-line2d.cpp.

void integrate_element ( ResultT &  result,
FunctorT  functor,
const NodesT &  nodes 
)

Integral for an element.

Definition at line 175 of file utest-mesh-lagrangep1-line2d.cpp.

void integrate_region ( ResultT &  result,
FunctorT  functor,
const Table< Real > &  coordinates,
const Table< Uint > &  connectivity 
)

Integral over a region.

Definition at line 162 of file utest-mesh-lagrangep1-line2d.cpp.

Send comments to:
COOLFluiD Web Admin