1 | %Test Name: SquareSheetShelfSteaEnthalpyHO3dDakotaSampNeff
|
---|
2 | md=triangle(model(),'../Exp/Square.exp',150000.);
|
---|
3 | md=setmask(md,'../Exp/SquareShelf.exp','');
|
---|
4 | md=parameterize(md,'../Par/SquareSheetShelf.par');
|
---|
5 | md=extrude(md,3,2.);
|
---|
6 | md=setflowequation(md,'HO','all');
|
---|
7 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
8 | md.timestepping.time_step=0.;
|
---|
9 | md.thermal.isenthalpy=1;
|
---|
10 | md.thermal.isdynamicbasalspc=1;
|
---|
11 | md.initialization.waterfraction=zeros(md.mesh.numberofvertices,1);
|
---|
12 | md.initialization.watercolumn=zeros(md.mesh.numberofvertices,1);
|
---|
13 |
|
---|
14 | md.friction.coupling=3;
|
---|
15 | md.friction.effective_pressure=md.materials.rho_ice*md.constants.g*md.geometry.thickness+md.materials.rho_water*md.constants.g*md.geometry.base;
|
---|
16 |
|
---|
17 | %dakota version
|
---|
18 | version=IssmConfig('_DAKOTA_VERSION_'); version=version(1:3); version=str2num(version);
|
---|
19 |
|
---|
20 | %variables
|
---|
21 | md.qmu.variables.neff=normal_uncertain('scaled_FrictionEffectivePressure',1,.05);
|
---|
22 | md.qmu.variables.geoflux=normal_uncertain('scaled_BasalforcingsGeothermalflux',1,.05);
|
---|
23 |
|
---|
24 | %responses
|
---|
25 | md.qmu.responses.MaxVel=response_function('MaxVel',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
26 | md.qmu.responses.MassFlux1=response_function('indexed_MassFlux_1',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
27 | md.qmu.responses.MassFlux2=response_function('indexed_MassFlux_2',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
28 | md.qmu.responses.MassFlux3=response_function('indexed_MassFlux_3',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
29 | md.qmu.responses.MassFlux4=response_function('indexed_MassFlux_4',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
30 | md.qmu.responses.MassFlux5=response_function('indexed_MassFlux_5',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
31 | md.qmu.responses.MassFlux6=response_function('indexed_MassFlux_6',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
32 | md.qmu.responses.MassFlux7=response_function('indexed_MassFlux_7',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
|
---|
33 |
|
---|
34 | %mass flux profiles
|
---|
35 | md.qmu.mass_flux_profiles={'../Exp/MassFlux1.exp','../Exp/MassFlux2.exp','../Exp/MassFlux3.exp','../Exp/MassFlux4.exp','../Exp/MassFlux5.exp','../Exp/MassFlux6.exp','../Exp/Square.exp'};
|
---|
36 | md.qmu.mass_flux_profile_directory=pwd;
|
---|
37 |
|
---|
38 | md.qmu.method =dakota_method('nond_samp');
|
---|
39 | md.qmu.method(end)=dmeth_params_set(md.qmu.method(end),...
|
---|
40 | 'seed',1234,...
|
---|
41 | 'samples',20,...
|
---|
42 | 'sample_type','random');
|
---|
43 |
|
---|
44 | %% a variety of parameters
|
---|
45 | md.qmu.params.direct=true;
|
---|
46 | md.qmu.params.analysis_components='';
|
---|
47 | md.qmu.params.tabular_graphics_data=true;
|
---|
48 |
|
---|
49 | if version>=6,
|
---|
50 | md.qmu.params.analysis_driver='matlab';
|
---|
51 | md.qmu.params.evaluation_scheduling='master';
|
---|
52 | md.qmu.params.processors_per_evaluation=2;
|
---|
53 | else
|
---|
54 | md.qmu.params.analysis_driver='stressbalance';
|
---|
55 | md.qmu.params.evaluation_concurrency=1;
|
---|
56 | end
|
---|
57 |
|
---|
58 | %partitioning
|
---|
59 | md.qmu.numberofpartitions=10;
|
---|
60 | md=partitioner(md,'package','chaco','npart',md.qmu.numberofpartitions,'weighting','on');
|
---|
61 | md.qmu.vpartition=md.qmu.vpartition-1;
|
---|
62 | md.qmu.isdakota=1;
|
---|
63 |
|
---|
64 | md.stressbalance.reltol=10^-5; %tighten for qmu analyses
|
---|
65 |
|
---|
66 | md=solve(md,'Steadystate','overwrite','y');
|
---|
67 |
|
---|
68 | %Fields and tolerances to track changes
|
---|
69 | md.qmu.results=md.results.dakota;
|
---|
70 |
|
---|
71 | %we put all the mean and stdev data in the montecarlo field, which we will use to test for success.
|
---|
72 | md.results.dakota.montecarlo=[];
|
---|
73 | for i=1:8,
|
---|
74 | md.results.dakota.montecarlo=[md.results.dakota.montecarlo md.results.dakota.dresp_out(i).mean];
|
---|
75 | end
|
---|
76 | for i=1:8,
|
---|
77 | md.results.dakota.montecarlo=[md.results.dakota.montecarlo md.results.dakota.dresp_out(i).stddev];
|
---|
78 | end
|
---|
79 | field_names ={'montecarlo'};
|
---|
80 | field_tolerances={2e-10};
|
---|
81 | field_values={...
|
---|
82 | md.results.dakota.montecarlo,...
|
---|
83 | };
|
---|
84 |
|
---|