COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Classes | Macros | Typedefs | Functions
utest-volume-sf.cpp File Reference
#include <boost/mpl/vector.hpp>
#include <boost/mpl/for_each.hpp>
#include <boost/mpl/transform_view.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/fusion/adapted/mpl.hpp>
#include <boost/fusion/support/pair.hpp>
#include <boost/fusion/container/map.hpp>
#include <boost/fusion/container/map/convert.hpp>
#include <boost/fusion/sequence/intrinsic/at_key.hpp>
#include "common/Log.hpp"
#include "common/OptionList.hpp"
#include "common/Core.hpp"
#include "common/Environment.hpp"
#include "common/FindComponents.hpp"
#include "mesh/GeoShape.hpp"
#include "mesh/ElementType.hpp"
#include "mesh/ElementTypes.hpp"

Go to the source code of this file.

Classes

struct  FunctorForDim< Dim >
 
struct  FunctorForDim< 1 >
 
struct  FunctorForDim< 2 >
 
struct  FunctorForDim< 3 >
 
struct  VolumeSFFixture
 
struct  VolumeSFFixture::MakeSFNodesPair< SF >
 Functor to create a fusion pair between a shape function and its node matrix. More...
 
struct  VolumeSFFixture::VolumeMPLFunctor< FunctorT >
 Applies a functor if the element is a volume element. More...
 
struct  CheckJacobianDeterminant
 Checks if the jacobian_determinant function result is the same as det(jacobian) More...
 
struct  CheckJacobianInverse
 Checks if the inverse of the jacobian matrix equals jacobian_adjoint / jacobian_determinant. More...
 
struct  CheckGradientX
 Check if the gradient of X is one in the X direction and zero in the other directions. More...
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   "Common tests for shape functions that can be used to model the volume of a mesh"
 

Typedefs

typedef boost::mpl::vector< LagrangeP1::Line1D, LagrangeP1::Quad2D, LagrangeP1::Triag2D, LagrangeP1::Hexa3D, LagrangeP1::Tetra3D, LagrangeP2::Quad2D, LagrangeP2::Triag2D, LagrangeP3::Quad2D, LagrangeP3::Triag2DTestTypes
 
typedef boost::mpl::filter_view< TestTypes, IsCellTypeTestCellTypes
 
typedef boost::mpl::filter_view< TestTypes, IsFaceTypeTestFaceTypes
 
typedef boost::mpl::filter_view< TestTypes, IsEdgeTypeTestEdgeTypes
 

Functions

template<typename ETYPE , typename NodesT , typename MappedCoordsT >
ETYPE::CoordsT gradient (const NodesT &nodes, const MappedCoordsT &mapped_coordinates, const RealVector &function_values)
 
 BOOST_AUTO_TEST_CASE (TestJacobianDeterminant)
 
 BOOST_AUTO_TEST_CASE (TestJacobianInverse)
 
 BOOST_AUTO_TEST_CASE (TestGradientX)
 

Macro Definition Documentation

#define BOOST_TEST_DYN_LINK

Definition at line 7 of file utest-volume-sf.cpp.

#define BOOST_TEST_MODULE   "Common tests for shape functions that can be used to model the volume of a mesh"

Definition at line 8 of file utest-volume-sf.cpp.

Typedef Documentation

typedef boost::mpl::filter_view<TestTypes, IsCellType> TestCellTypes

Definition at line 51 of file utest-volume-sf.cpp.

typedef boost::mpl::filter_view<TestTypes, IsEdgeType> TestEdgeTypes

Definition at line 53 of file utest-volume-sf.cpp.

typedef boost::mpl::filter_view<TestTypes, IsFaceType> TestFaceTypes

Definition at line 52 of file utest-volume-sf.cpp.

Definition at line 49 of file utest-volume-sf.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( TestJacobianDeterminant  )

Definition at line 344 of file utest-volume-sf.cpp.

BOOST_AUTO_TEST_CASE ( TestJacobianInverse  )

Definition at line 354 of file utest-volume-sf.cpp.

BOOST_AUTO_TEST_CASE ( TestGradientX  )

Definition at line 362 of file utest-volume-sf.cpp.

ETYPE::CoordsT gradient ( const NodesT &  nodes,
const MappedCoordsT &  mapped_coordinates,
const RealVector function_values 
)

Calculates the gradient using the given shape function

Parameters
nodesThe node coordinates for the element
mapped_coordinatesLocation where the gradient is to be calculated
function_valuesNodal values of the function for which the gradient will be calculated

Definition at line 264 of file utest-volume-sf.cpp.

Send comments to:
COOLFluiD Web Admin