2#include "KLFunctions.hh"
24 rootFinder(N,ellx,freqx);
25 evaluate_eigenValues(ellx,lam1Dx,freqx);
30 double inline evalPhi(
double x,
int i)
const{
41 double nm = std::sin(2.0*omega)*(0.25*(l*l*omega - 1.0/omega)) - (0.5 * l * std::cos(2.0 * omega)) + (0.5 * ( 1 + l + l*l*omega*omega));
43 double norm = 1.0 / std::sqrt(L * nm);
45 phi = norm * (std::sin(x * omega) + (l * omega * std::cos(x * omega)) );
49 double inline getxi(
int i)
const{
54 int inline getN()
const{
58 double inline getFreq(
int i)
const{
63 double inline getLam1Dx(
int i)
const{
79 void inline user_random_field()
83 auto r = readData(
"RandomFieldCoefficient/coeffs.txt");
84 for (
int i=0; i<N; i++){
93 double L, ellx, sigKL;
94 std::vector<double> xi;
95 std::vector<double> freqx, lam1Dx;