HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face and cell polynomials as unknowns
Loading...
Searching...
No Matches
MHDTests.hpp
Go to the documentation of this file.
1// Class to provide various test cases for the Stokes problem
2//
3//
4// Author: Liam Yemm (liam.yemm@monash.edu)
5//
6
7#include <mesh.hpp>
8// #include <Math.hpp>
9#include "basis.hpp"
10
11using Math::PI;
12
13#ifndef _MHD_TESTS_HPP
14#define _MHD_TESTS_HPP
15
16
17namespace HArDCore3D
18{
19
26 {
27 public:
30 size_t u_id,
31 size_t b_id,
32 size_t p_id,
33 double visc,
34 double diff
35 );
36
38
40
42
44
46
48
53
55
57
60
61 private:
62 size_t m_u_id;
63 size_t m_b_id;
64 size_t m_p_id;
65 double m_visc;
66 double m_diff;
67
69 void validate();
70 };
71}
72
74
75#endif
Definition MHDTests.hpp:26
std::function< T(const VectorRd &)> FType
type for function of point. T is the return type of the function
Definition basis.hpp:55
@ Matrix
Definition basis.hpp:67
FType< VectorRd > grad_pressure()
Definition MHDTests.cpp:70
FType< VectorRd > magnetic_source()
Definition MHDTests.cpp:33
FType< VectorRd > u_dot_grad_u()
Definition MHDTests.cpp:318
FType< VectorRd > velocity_source()
Definition MHDTests.cpp:19
FType< VectorRd > magnetic()
Definition MHDTests.cpp:205
FType< VectorRd > u_dot_grad_b()
Definition MHDTests.cpp:354
FType< VectorRd > velocity()
Definition MHDTests.cpp:97
FType< VectorRd > b_dot_grad_u()
Definition MHDTests.cpp:382
FType< MatrixRd > grad_velocity()
Definition MHDTests.cpp:130
FType< VectorRd > b_dot_grad_b()
Definition MHDTests.cpp:410
FType< double > pressure()
Definition MHDTests.cpp:43
FType< MatrixRd > grad_magnetic()
Definition MHDTests.cpp:241
FType< VectorRd > laplace_velocity()
Definition MHDTests.cpp:438
FType< VectorRd > laplace_magnetic()
Definition MHDTests.cpp:502
Definition ddr-magnetostatics.hpp:41
const double PI
Free math functions and global variables ///.
Definition math.hpp:9