32 std::string
filename = path +
"dirichletbcs.txt";
46 std::cout <<
"Couldn't open the file containing the boundary conditions.\n";
64 std::string
filename = path +
"expenergy.txt";
71 for (
unsigned int j=0;
j<8; ++
j){
79 std::cout <<
"Couldn't open the file containing the experimental energies.\n";
87 std::string
filename = path +
"xyz.txt";
104 std::cout <<
"Couldn't open the file containing the locations of the experimental points.\n";
111 double gexx,geyy,gexy;
112 for (
unsigned int id=0;
id<8; ++id){
113 std::string path_exx = path +
"exx_id" + std::to_string(
id+1) +
".txt";
114 std::string path_eyy = path +
"eyy_id" + std::to_string(
id+1) +
".txt";
115 std::string path_exy = path +
"exy_id" + std::to_string(
id+1) +
".txt";
116 std::ifstream file_exx,file_eyy,file_exy;
117 file_exx.open(path_exx); file_eyy.open(path_eyy); file_exy.open(path_exy);
119 if (file_exx.is_open() && file_eyy.is_open() && file_exy.is_open()){
122 file_exx >> gexx; file_eyy >> geyy; file_exy >> gexy;
123 exx(
j+
t*npoints,
id) = gexx;
eyy(
j+
t*npoints,
id) = geyy;
exy(
j+
t*npoints,
id) = gexy;
129 std::cout <<
"Couldn't open one or some of the eij files.\n";
void import_exp_points(std::string &path)
load('/home/s/staber/Trilinos_results/nrl/data/eij.mat')
Epetra_SerialDenseMatrix eyy
void import_exp_def(std::string &path)
Epetra_SerialDenseMatrix exy
readnrldata(bool load, std::string &path)
Epetra_SerialDenseVector boundaryconditions
void import_expenergy(std::string &path)
Epetra_SerialDenseVector angles
Epetra_SerialDenseMatrix energy
Epetra_SerialDenseMatrix points
void import_boundaryconditions(std::string &path)
Epetra_SerialDenseMatrix exx