BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
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
13
namespace
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
cl_FEM_Calculator.hpp
cl_Matrix.hpp
belfem::Matrix< real >
belfem::Matrix::n_rows
size_t n_rows() const
Definition
cl_AR_Matrix.hpp:205
belfem::Vector< real >
belfem::fem::Calculator
Definition
cl_FEM_Calculator.hpp:600
belfem::fem::Calculator::matrix
Matrix< real > & matrix(const string &aLabel)
return a matrix object
Definition
cl_FEM_Calculator.hpp:1680
belfem::fem::Calculator::Nvec
const Vector< real > & Nvec(const uint aIndex) const
node interpolator, but as vector
Definition
cl_FEM_Calculator.hpp:2066
belfem::fem::maxwell
Definition
cl_EF_PENTA6TS.hpp:23
belfem::fem::maxwell::l2N
const Matrix< real > & l2N(Calculator *aCalc, const uint aIndex)
Definition
fn_maxwell_l2N.hpp:20
belfem::fem
Definition
cl_IFB_LINE3.hpp:21
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::uint
unsigned int uint
Definition
typedefs.hpp:30
typedefs.hpp
src
fem
maxwell
matrices
fn_maxwell_l2N.hpp
Generated by
1.18.0