PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
testFeLib.h
Go to the documentation of this file.
1/*
2 * -------------------------------------------
3 * Copyright (c) 2021 - 2024 Prashant K. Jha
4 * -------------------------------------------
5 * PeriDEM https://github.com/prashjha/PeriDEM
6 *
7 * Distributed under the Boost Software License, Version 1.0. (See accompanying
8 * file LICENSE)
9 */
10
11#ifndef TESTFELIB_H
12#define TESTFELIB_H
13
14#include <string>
15#include <vector>
16
18namespace test {
19
65void testLineElem(size_t n, std::string filepath);
66
110void testTriElem(size_t n, std::string filepath);
111
155void testQuadElem(size_t n, std::string filepath);
156
163void testTetElem(size_t n, std::string filepath);
164
176void testTriElemTime(size_t n, size_t N);
177
196double getExactIntegrationRefTri(size_t alpha, size_t beta);
197
211double getExactIntegrationRefQuad(size_t alpha, size_t beta);
212
222double getExactIntegrationRefTet(size_t alpha, size_t beta, size_t theta);
223
234double getNChooseR(size_t n, size_t r);
235
236} // namespace test
237
238#endif // TESTFELIB_H
Namespace to group the methods used in testing of the library.
Definition testFeLib.h:18
void testTriElemTime(size_t n, size_t N)
Computes the time needed when quad data for elements are stored and when they are computed as and whe...
double getExactIntegrationRefTri(size_t alpha, size_t beta)
Computes integration of polynomial exactly over reference triangle.
double getNChooseR(size_t n, size_t r)
Computes "n choose r".
double getExactIntegrationRefQuad(size_t alpha, size_t beta)
Computes integration of polynomial exactly over reference quadrangle.
void testLineElem(size_t n, std::string filepath)
Perform test on quadrature points on line elements (NOT IMPLEMENTED)
void testTetElem(size_t n, std::string filepath)
Perform test on quadrature points on tetrahedral elements.
void testQuadElem(size_t n, std::string filepath)
Perform test on quadrature points on quadrangle elements.
double getExactIntegrationRefTet(size_t alpha, size_t beta, size_t theta)
Computes integration of polynomial exactly over reference tetrahedral.
void testTriElem(size_t n, std::string filepath)
Perform test on quadrature points on triangle elements.