DUNE
Distributed and Unified Numerics Environment
dune-composites (2.5.1)
dune
composites
Setup
RandomFields
integrator.hh
1
#include <math.h>
2
3
#ifndef INTEGRATOR_HH
4
#define INTEGRATOR_HH
5
6
namespace
Dune{
7
namespace
Composites{
8
9
template
<
typename
DEF>
10
double
integrator(
double
xval, DEF myDefect){
11
double
y = 0.0;
12
13
for
(
int
i = 0; i < myDefect.getN(); i++){
14
y += std::sqrt(myDefect.getLam1Dx(i)) * myDefect.evalPhi(xval,i) * myDefect.getxi(i);
15
}
16
17
return
tan(y);
18
}
19
20
}
21
}
22
23
#endif
|
Legal Statements / Impressum
| Hosted by
TU Dresden
&
Uni Heidelberg
| generated with Hugo v0.111.3 (Sep 5, 22:35, 2025)