Mimetic Operators Library Enhanced 4.0
Loading...
Searching...
No Matches
divergence.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 divergence.h
9 *
10 * @brief Mimetic Divergence Operators
11 *
12 * @date 2024/10/15
13 *
14 */
15
16#ifndef DIVERGENCE_H
17#define DIVERGENCE_H
18
19#include "utils.h"
20#include <cassert>
21
26class Divergence : public sp_mat {
27
28public:
29 using sp_mat::operator=;
30
38 Divergence(u16 k, u32 m, Real dx);
39
49 Divergence(u16 k, u32 m, u32 n, Real dx, Real dy);
50
62 Divergence(u16 k, u32 m, u32 n, u32 o, Real dx, Real dy, Real dz);
63
69 vec getQ();
70
71private:
72 vec Q;
73};
74
75#endif // DIVERGENCE_H
vec getQ()
Returns the weights used in the Mimeitc Divergence Operators.
Divergence(u16 k, u32 m, Real dx)
1-D Mimetic Divergence Constructor
double Real
Definition utils.h:21