12#ifndef BELFEM_CL_IF_LINE4_HPP
13#define BELFEM_CL_IF_LINE4_HPP
53 aXiHat( 0, 0 ) = -1.000000;
54 aXiHat( 0, 1 ) = 1.000000;
55 aXiHat( 0, 2 ) = -1.0 / 3.0;
56 aXiHat( 0, 3 ) = 1.0 / 3.0;
66 const Vector <real> & aXi,
67 Matrix <real> & aN )
const
72 const real xi = aXi( 0 );
75 aN( 0, 0 ) = ( 3.0 * xi + 1.0 ) * ( 3.0 * xi - 1.0 ) * ( 1.0 - xi );
76 aN( 0, 1 ) = ( 3.0 * xi + 1.0 ) * ( 3.0 * xi - 1.0 ) * ( 1.0 + xi );
77 aN( 0, 2 ) = 9.0 * ( xi + 1.0 ) * ( 3.0 * xi - 1.0 ) * ( xi - 1.0 );
78 aN( 0, 3 ) = 9.0 * ( xi + 1.0 ) * ( 3.0 * xi + 1.0 ) * ( 1.0 - xi );
89 const Vector <real> & aXi,
90 Matrix <real> & adNdXi )
const
92 const real xi = aXi( 0 );
93 const real xi2 = xi * xi;
97 adNdXi( 0, 0 ) = -27.0 * xi2 + 18.0 * xi + 1.0;
98 adNdXi( 0, 1 ) = 27.0 * xi2 + 18.0 * xi - 1.0;
99 adNdXi( 0, 2 ) = 9.0 * ( 9.0 * xi2 - 2.0 * xi - 3.0 );
100 adNdXi( 0, 3 ) = 9.0 * ( -9.0 * xi2 - 2.0 * xi + 3.0 );
111 const Vector <real> & aXi,
112 Matrix <real> & ad2NdXi2 )
const
114 const real xi = aXi( 0 );
118 ad2NdXi2( 0, 0 ) = 1.0 - 3.0 * xi;
119 ad2NdXi2( 0, 1 ) = 1.0 + 3.0 * xi;
120 ad2NdXi2( 0, 2 ) = 9.0 * xi - 1.0;
121 ad2NdXi2( 0, 3 ) = -9.0 * xi - 1.0;
123 ad2NdXi2 *= 9.0 / 8.0;
void set_size(const size_t aNumRows, const size_t aNumCols)
Definition cl_AR_Matrix.hpp:186
shape function templated class G : Geometry T : Type D : Dimension B : Number of Basis
Definition cl_IF_InterpolationFunctionTemplate.hpp:25
void param_coords(Matrix< real > &aXiHat) const override
returns a matrix containing the parameter coordinates of the nodes < number of dimensions x number of...
Definition cl_IF_InterpolationFunctionTemplate.hpp:49
InterpolationOrder interpolation_order() const override
returns the interpolation order
Definition cl_IF_InterpolationFunctionTemplate.hpp:145
void d2NdXi2(const Vector< real > &aXi, Matrix< real > &ad2NdXi2) const override
calculates the second derivative of the shape function in parameter space
Definition cl_IF_InterpolationFunctionTemplate.hpp:110
void dNdXi(const Vector< real > &aXi, Matrix< real > &adNdXi) const override
calculates the first derivative of the shape function in parameter space
Definition cl_IF_InterpolationFunctionTemplate.hpp:89
void N(const Vector< real > &aXi, Matrix< real > &aN) const override
evaluates the shape function at a given point
Definition cl_IF_InterpolationFunctionTemplate.hpp:68
Definition cl_IFB_LINE3.hpp:21
USER GUIDES:
Definition cl_Capacitor.cpp:16
@ LAGRANGE
Definition Mesh_Enums.hpp:100
ElementType element_type(const std::string &aStr)
Definition Mesh_Enums.hpp:370
ElementType
Element types.
Definition Mesh_Enums.hpp:27
@ LINE4
Definition Mesh_Enums.hpp:51
InterpolationOrder
Definition Mesh_Enums.hpp:85
@ CUBIC
Definition Mesh_Enums.hpp:90
double real
Definition typedefs.hpp:36
@ LINE
Definition Mesh_Enums.hpp:72