Trilinos based (stochastic) FEM solvers
run_meanModels.m
Go to the documentation of this file.
1 %
2 %Brian Staber (brian.staber@gmail.com)
3 %
4 
5 clc
6 clearvars
7 close all
8 
9 X = [1.847305797816567 1.604001927458218 1.907043912388506 1.706486189075632 1.769017508886223
10  0.005376710535645 0.114625779806038 0.154036583534123 0.057388351625262 0.000008510008773
11  0.005139929801197 0.122739679192122 0.167208494913353 0.059077990032629 0.000008510039000
12  1.567795920644496 1.226504600774701 0.902150886924485 1.314292350043600 2.019537222717919
13  0.079518524907316 0.054865622201899 0.036767744476560 0.061332096908722 0.147713367550041
14  24.274381300141435 29.806819794191611 39.150056931099662 27.971878357799234 16.420347459340434
15  0.002730236643057 0.093254046036705 0.184311975895317 0.039848773492742 0.000003791513270];
16 
17 % X= [1.0;
18 % 1.0;
19 % 1.0;
20 % 3.479232101380515
21 % 1.029493689764523
22 % 5.042703469681112
23 % 0.000000000142884];
24 
25 optimParameters.station = 44;
26 optimParameters.np = 32;
27 optimParameters.tol = 1e-6;
28 optimParameters.nmc = 25;
29 
30 modelParameters.lc = [11.180339887498949, 4.472135954999580];
31 modelParameters.delta = repmat(0.1,1,4);
32 
33 output = cell(size(X,2),1);
34 
35 %fd = fopen(strcat('/home/s/staber/Trilinos_results/nrl/random_generator_for_pca_likelihood/station', ...
36 % num2str(optimParameters.station),'/output.txt'),'w');
37 
38 load('eij.mat');
39 angle_to_id = [5,6; 1,4; 2,3; 7,8];
40 Yexpi = cell(4,1);
41 for j = 1:4
42  ID = angle_to_id(j,:);
43  for k = 1:2
44  Exx = [exx{ID(k)}{1}, exx{ID(k)}{2}];
45  Eyy = [eyy{ID(k)}{1}, eyy{ID(k)}{2}];
46  Exy = [exy{ID(k)}{1}, exy{ID(k)}{2}];
47  Yexpi{j}(:,k) = log(sum(Exx.^2 + Eyy.^2 + 2*Exy.^2,1));
48  end
49 end
50 
51 for k = 1:size(X,2)
52  modelParameters.mu = 1e3*[X(1,k), X(2,k), X(3,k), X(4,k), X(5,k)];
53  modelParameters.beta = [X(6,k), X(7,k)];
54 
55  output{k} = costFunction(modelParameters,optimParameters,Yexpi);
56 % fprintf(fd,'%d \t %f \t %f \t %f \t %f\n',k,ln(k),lt(k),delta(k),output{k}.fval);
57  save(strcat('result_meanModels_lnltdelta14_station',num2str(optimParameters.station),'.mat'),'output','-v7.3');
58 end
59 %fclose(fd);
for j
Definition: costFunction.m:42
Brian Staber(brian.staber @gmail.com) % clc clearvars close all X
load('/home/s/staber/Trilinos_results/nrl/data/eij.mat')
output
angle_to_id
Definition: run_station15.m:17
Exy
Definition: run_station15.m:24
P sum()
for k
Definition: costFunction.m:51
Eyy
Definition: run_station15.m:23
modelParameters delta
modelParameters beta
Definition: run_station15.m:10
fprintf(fp, '< ParameterList >\n\n')
e
Definition: run.m:10
fclose(fp)
Yexpi
Definition: run_station15.m:18
Brian mu