MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
test_helpers.h File Reference
#include "base/mast_data_types.h"
#include "elasticity/structural_element_base.h"
#include "base/physics_discipline_base.h"
#include "libmesh/point.h"
#include "libmesh/face_quad4.h"
Include dependency graph for test_helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 TEST
 

Functions

void TEST::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. More...
 
void TEST::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 scheme. More...
 
void TEST::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. More...
 
void TEST::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. More...
 
void TEST::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. More...
 
std::vector< double > TEST::eigen_matrix_to_std_vector (RealMatrixX M)
 Converts an Eigen Matrix object to a std::vector. More...
 
Real TEST::get_shoelace_area (RealMatrixX X)
 Calcualtes the area of a 2D polygon using the shoelace formula. More...
 
void TEST::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. More...