20 #ifndef __test__test_helpers__ 21 #define __test__test_helpers__ 26 #include "libmesh/point.h" 27 #include "libmesh/face_quad4.h" 103 Real shear_x = 0,
Real shear_y = 0);
105 #endif // __test__test_helpers__ void approximate_inertial_jacobian_with_finite_difference(MAST::StructuralElementBase &elem, const RealVectorX &initial_elem_solution, RealMatrixX &jacobian)
Approximates the inertial jacobian using a 6th order accurate central finite difference scheme...
Real get_shoelace_area(RealMatrixX X)
Calcualtes the area of a 2D polygon using the shoelace formula.
void approximate_volume_external_jacobian_with_finite_difference(MAST::StructuralElementBase &elem, MAST::PhysicsDisciplineBase &discipline, const RealVectorX &initial_elem_solution, RealMatrixX &jacobian)
Approximates the volume external jacobian using a 4th order accurate central finite difference scheme...
void transform_element(libMesh::MeshBase &mesh, const RealMatrixX X0, Real shift_x, Real shift_y, Real shift_z, Real scale_x, Real scale_y, Real rotation_x, Real rotation_y, Real rotation_z, Real shear_x=0, Real shear_y=0)
Transform an element by applying any combination of: shifts, scales, rotations, and shears...
std::vector< double > eigen_matrix_to_std_vector(RealMatrixX M)
Converts an Eigen Matrix object to a std::vector.
void approximate_internal_jacobian_with_finite_difference(MAST::StructuralElementBase &elem, const RealVectorX &initial_elem_solution, RealMatrixX &jacobian)
Approximates the internal Jacobian of an element using a 6th order accurate central finite difference...
Matrix< Real, Dynamic, Dynamic > RealMatrixX
void approximate_side_external_jacobian_with_finite_difference(MAST::StructuralElementBase &elem, MAST::PhysicsDisciplineBase &discipline, const RealVectorX &initial_elem_solution, RealMatrixX &jacobian)
Approximates the side external jacobian using a 4th order accurate central finite difference scheme...
Matrix< Real, Dynamic, 1 > RealVectorX
void approximate_thermal_jacobian_with_finite_difference(MAST::StructuralElementBase &elem, const RealVectorX &initial_elem_solution, RealMatrixX &jacobian, MAST::BoundaryConditionBase &thermal_bc)
Approximates the thermal jacobian using a 6th order accurate central finite difference scheme...