OpenBEM
Open-source framework for electromagnetic simulation with the boundary element method.
Loading...
Searching...
No Matches
incidence.hpp
Go to the documentation of this file.
1// OpenBEM - Copyright (C) 2026 Shashwat Sharma
2
3// This file is part of OpenBEM.
4
5// OpenBEM is free software: you can redistribute it and/or modify it under the terms of the
6// GNU General Public License as published by the Free Software Foundation, either version 3
7// of the License, or (at your option) any later version.
8
9// You should have received a copy of the GNU General Public License along with OpenBEM.
10// If not, see <https://www.gnu.org/licenses/>.
11
12
18#ifndef BEM_RWG_OPS_INCIDENCE_H
19#define BEM_RWG_OPS_INCIDENCE_H
20
21#include "types.hpp"
24
25
26namespace bem::rwg
27{
28
47class DivRwgOp: public OperatorBase<1, 3>
48{
49public:
50
59 const Complex k,
60 const Triangle<3>& obs_tri,
61 const Triangle<3>& src_tri
62 ) override
63 {
65
67 return result;
68
69 result = src_tri.edge_polarities();
70 return result;
71 };
72
73};
74
79}
80
81#endif
Geometry operations class.
Class for computing the discrete divergence matrix for RWG functions.
Definition incidence.hpp:48
EigMatMN< Complex, 1, 3 > compute(const Complex k, const Triangle< 3 > &obs_tri, const Triangle< 3 > &src_tri) override
Computes an incidence matrix that can be used to take the divergence of RWG functions.
Definition incidence.hpp:58
Base class for RWG-based BEM operators.
Definition base.hpp:41
Eigen::Matrix< T, M, N > EigMatMN
Fixed-size matrix with M rows and N columns containing type T.
Definition types.hpp:70
std::complex< Float > Complex
Complex floating point number.
Definition types.hpp:51
Eigen::Matrix< T, N, 1 > EigColVecN
Fixed-size column vector of size N containing type T.
Definition types.hpp:86
Namespace for RWG-based BEM functionality.