BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_maxwell_l2N.hpp
Go to the documentation of this file.
1//
2// Created by christian on 10/24/24.
3//
4
5#ifndef FN_MAXWELL_L2N_HPP
6#define FN_MAXWELL_L2N_HPP
7
8#include "typedefs.hpp"
9#include "cl_Matrix.hpp"
10
11#include "cl_FEM_Calculator.hpp"
12
13namespace belfem
14{
15 namespace fem
16 {
17 namespace maxwell
18 {
19 inline const Matrix< real > &
20 l2N( Calculator * aCalc, const uint aIndex )
21 {
22 const Vector< real > & n = aCalc->Nvec( aIndex ) ;
23 Matrix< real > & N = aCalc->matrix("L2N");
24
25 uint nnodes = n.length();
26 uint ndim = N.n_rows() ;
27 for( uint j=0; j<ndim; ++j )
28 {
29 uint c = j ;
30 for( uint i=0; i<nnodes; ++i )
31 {
32 N( j, c ) = n( i );
33 c+=ndim;
34 }
35 }
36
37 return N;
38 }
39 }
40 }
41}
42#endif //FN_MAXWELL_L2N_HPP
size_t n_rows() const
Definition cl_AR_Matrix.hpp:205
Definition cl_FEM_Calculator.hpp:600
Matrix< real > & matrix(const string &aLabel)
return a matrix object
Definition cl_FEM_Calculator.hpp:1680
const Vector< real > & Nvec(const uint aIndex) const
node interpolator, but as vector
Definition cl_FEM_Calculator.hpp:2066
Definition cl_EF_PENTA6TS.hpp:23
const Matrix< real > & l2N(Calculator *aCalc, const uint aIndex)
Definition fn_maxwell_l2N.hpp:20
Definition cl_IFB_LINE3.hpp:21
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30