PeriDEM 0.3.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 - 2026 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
178void testPatchTri();
179void testPatchQuad();
180void testPatchTet();
182
201double getExactIntegrationRefTri(size_t alpha, size_t beta);
202
216double getExactIntegrationRefQuad(size_t alpha, size_t beta);
217
227double getExactIntegrationRefTet(size_t alpha, size_t beta, size_t theta);
228
239double getNChooseR(size_t n, size_t r);
240
241} // namespace test
242
243#endif // TESTFELIB_H
Namespace to group the methods used in testing of the library.
Definition testFeLib.h:18
void testPatchTriDistorted()
Perform test on quadrature points on line elements (NOT IMPLEMENTED)
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.
void testPatchTet()
Perform test on quadrature points on line elements (NOT IMPLEMENTED)
void testPatchQuad()
Perform test on quadrature points on line elements (NOT IMPLEMENTED)
void testPatchTri()
Perform test on quadrature points on line elements (NOT IMPLEMENTED)
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.