7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for SF interpolation in matrix form"
10 #include <boost/assign/list_of.hpp>
11 #include <boost/test/unit_test.hpp>
35 const static Uint nbQdPts = 4;
44 V->set_row_size(NDOF);
48 dVdxi->set_row_size(NDOF);
49 dVdxi->resize(nbQdPts);
52 dVdeta->set_row_size(NDOF);
53 dVdeta->resize(nbQdPts);
56 ETYPE::SF::ValueT values;
57 ETYPE::SF::GradientT gradients;
58 ETYPE::SF::ValueT dSFdxi;
59 ETYPE::SF::ValueT dSFdeta;
65 for(
Uint iq=0;iq<nbQdPts;++iq) {
66 ref_coord[
XX] = xi_q[iq];
67 ref_coord[
YY] = eta_q[iq];
69 ETYPE::SF::compute_value(ref_coord,values);
72 ETYPE::SF::compute_gradient(ref_coord,gradients);
73 for(
Uint i = 0; i<NDOF; ++i) {
74 dSFdxi[i] = gradients(
XX,i);
75 dSFdeta[i] = gradients(
YY,i);
144 BOOST_AUTO_TEST_SUITE_END()
2D Lagrange P1 Triangular Element type This class provides the lagrangian shape function describing t...
BOOST_AUTO_TEST_CASE(MyInterpolation)
static const RealVector4 xi_q
Integration for P1 triangle, 4 quadrature points:
static const RealVector4 w
Basic Classes for Mesh applications used by COOLFluiD.
MatrixInterpolationFixture()
common setup for each test case
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealVector
Dynamic sized column vector.
namespace holding LagrangeP1 shape functions and elements
Top-level namespace for coolfluid.
Eigen::Matrix< Real, Triag2D_traits::dimension, 1 > CoordsT
unsigned int Uint
typedef for unsigned int
Eigen::Matrix< Real, 4, 1 > RealVector4
Fixed size 4x1 column vector.
~MatrixInterpolationFixture()
common tear-down for each test case
static const Uint nb_nodes
Most basic kernel library.
static const RealVector4 eta_q
boost::shared_ptr< T > allocate_component(const std::string &name)
Stand-alone function to allocate components of a given type.