PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
quadElem.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 FE_QUADELEM_H
12#define FE_QUADELEM_H
13
14#include "baseElem.h" // base class BaseElem
15
16namespace fe {
17
64class QuadElem : public BaseElem {
65
66public:
71 explicit QuadElem(size_t order);
72
91 double elemSize(const std::vector<util::Point> &nodes) override;
92
93private:
100 std::vector<double> getShapes(const util::Point &p) override;
101
109 std::vector<std::vector<double>> getDerShapes(const util::Point &p) override;
110
119 double getJacobian(const util::Point &p,
120 const std::vector<util::Point> &nodes,
121 std::vector<std::vector<double>> *J) override;
122
126 void init() override;
127
128};
129
130} // namespace fe
131
132#endif // FE_QUADELEM_H
A base class which provides methods to map points to/from reference element and to compute quadrature...
Definition baseElem.h:84
A class for mapping and quadrature related operations for bi-linear quadrangle element.
Definition quadElem.h:64
double getJacobian(const util::Point &p, const std::vector< util::Point > &nodes, std::vector< std::vector< double > > *J) override
Computes the Jacobian of map .
Definition quadElem.cpp:65
void init() override
Compute the quadrature points for quadrangle element.
Definition quadElem.cpp:100
std::vector< double > getShapes(const util::Point &p) override
Returns the values of shape function at point p on reference element.
Definition quadElem.cpp:31
std::vector< std::vector< double > > getDerShapes(const util::Point &p) override
Returns the values of derivative of shape function at point p on reference element.
Definition quadElem.cpp:43
double elemSize(const std::vector< util::Point > &nodes) override
Returns the area of element.
Definition quadElem.cpp:21
Definition baseElem.h:17
A structure to represent 3d vectors.
Definition point.h:30