Mimetic Operators Library Enhanced 4.0
Loading...
Searching...
No Matches
gradient.h
Go to the documentation of this file.
1/*
2* SPDX-License-Identifier: GPL-3.0-or-later
3* © 2008-2024 San Diego State University Research Foundation (SDSURF).
4* See LICENSE file or https://www.gnu.org/licenses/gpl-3.0.html for details.
5*/
6
7/*
8 * @file gradient.h
9 *
10 * @brief Mimetic Gradient Operators
11 *
12 * @date 2024/10/15
13 *
14 *
15 */
16
17#ifndef GRADIENT_H
18#define GRADIENT_H
19
20#include "utils.h"
21#include <cassert>
22
27class Gradient : public sp_mat {
28
29public:
30 using sp_mat::operator=;
31
39 Gradient(u16 k, u32 m, Real dx);
40
50 Gradient(u16 k, u32 m, u32 n, Real dx, Real dy);
51
63 Gradient(u16 k, u32 m, u32 n, u32 o, Real dx, Real dy, Real dz);
64
65
71 vec getP();
72
73private:
74 vec P;
75};
76
77#endif // GRADIENT_H
vec getP()
Returns the weights used in the Mimeitc Gradient Operators.
Definition gradient.cpp:301
Gradient(u16 k, u32 m, Real dx)
1-D Mimetic Gradient Constructor
Definition gradient.cpp:20
double Real
Definition utils.h:21