Namespaces | Functions
MarmotTesting.h File Reference
#include "Marmot/MarmotConstants.h"
#include "Marmot/MarmotMaterialHypoElastic.h"
#include "autodiff/forward/dual/dual.hpp"
#include "unsupported/Eigen/CXX11/Tensor"
#include <Eigen/Core>
#include <Fastor/Fastor.h>
#include <iostream>
Include dependency graph for MarmotTesting.h:

Go to the source code of this file.

Namespaces

 Marmot
 This file includes functions needed for calculations with stress and strain tensors written in voigt notation.
 
 Marmot::Testing
 

Functions

bool Marmot::Testing::checkIfEqual (const double a, const double b, const double tol=1e-15)
 
bool Marmot::Testing::checkIfEqual (const autodiff::dual a, const autodiff::dual b, const double tol=1e-15)
 
bool Marmot::Testing::checkIfEqual (const std::complex< double > a, const std::complex< double > b, const double tol=1e-15)
 
std::string Marmot::Testing::getString (const double a)
 
std::string Marmot::Testing::getString (const autodiff::dual a)
 
template<typename T >
bool Marmot::Testing::checkIfEqual (const Eigen::Matrix< T, -1, -1 > &a, const Eigen::Matrix< T, -1, -1 > &b, const double tol=1e-15)
 
template<typename T , long int... Rest>
bool Marmot::Testing::checkIfEqual (const Eigen::TensorFixedSize< T, Eigen::Sizes< Rest... > > &a, const Eigen::TensorFixedSize< T, Eigen::Sizes< Rest... > > &b, const double tol=1e-15)
 
template<typename T , size_t... Rest>
bool Marmot::Testing::checkIfEqual (const Fastor::Tensor< T, Rest... > &a, const Fastor::Tensor< T, Rest... > &b, const double tol=1e-15)
 
void Marmot::Testing::throwExceptionOnFailure (const bool condition, const std::string &message="")
 
void Marmot::Testing::executeTestsAndCollectExceptions (const std::vector< std::function< void() > > &testFunctions)
 
template<int N>
Eigen::Matrix< double, N, 2 > Marmot::Testing::fibonacciLatticeHemisphere ()
 
bool Marmot::Testing::spinTurbokreisel (const std::unique_ptr< MarmotMaterialHypoElastic > &material, double *stress, double *dStress_dStrain, const double *dStrain, const double *timeOld, const double dT, double &pNewDT, const double stressTol=1e-15, const double stiffnessTol=1e-15)