Skip to content

Commit d30a40b

Browse files
author
Leo Celestin Paul Martin
committed
3 Runs initialized with the steady state with different sc
1 parent bdede42 commit d30a40b

File tree

2 files changed

+94
-11
lines changed

2 files changed

+94
-11
lines changed
19.7 KB
Binary file not shown.

modules/cryoGridLateral/workon_geomSetup.m

Lines changed: 94 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,8 +1456,73 @@
14561456
% geomSetup(32)=add;
14571457

14581458
%% Setup 33 : Setup 30 with 5 cm of immobile snow height AND thicker pf
1459-
add=geomSetup(30);
1460-
add.descr='Setup 30 with thicker pf and 5 cm immobile snow height';
1459+
% add=geomSetup(30);
1460+
% add.descr='Setup 30 with thicker pf and 5 cm immobile snow height';
1461+
% add.immobile_snow_height = 0.05 .*(add.immobile_snow_height./add.immobile_snow_height);
1462+
%
1463+
% % Thermal init
1464+
% addpath ..\cryoGridSoil
1465+
%
1466+
% % Create variable
1467+
% thermalInit(40).ActiveLayer=[];
1468+
% thermalInit(40).layer_properties=[];
1469+
% thermalInit(40).Tinitial=[];
1470+
%
1471+
% % Active layers
1472+
% ActiveLayer=[NaN NaN NaN linspace(0.9,0.7,37)]; % Input active layers
1473+
% ispf=~isnan(ActiveLayer); % Define who is permafrost
1474+
%
1475+
% % Stratigraphy
1476+
% Strati_mire =[ 0.0 0.80 0.05 0.15 1 0.80 ;...
1477+
% 0.5 0.80 0.05 0.15 1 0.80 ;...
1478+
% 3.0 0.50 0.50 0.00 2 0.50 ;...
1479+
% 10.0 0.03 0.97 0.00 1 0.03 ];
1480+
% Strati_palsa_initial=Strati_mire; % Start from the mire strati
1481+
% Strati_palsa_initial(1,2)=0.55; % Set the upper layer at FC
1482+
% palsaHeight=add.initial_altitude - min(add.initial_altitude);
1483+
%
1484+
% for i=1:40
1485+
% if ispf(i)==0
1486+
% thermalInit(i).layer_properties=Strati_mire;
1487+
% else
1488+
% thermalInit(i).layer_properties=stratiXice(Strati_palsa_initial, palsaHeight(i), ActiveLayer(i)); % Modify the ice, mineral and organic content
1489+
% end
1490+
% end
1491+
%
1492+
% % Initial T profiles
1493+
% T_z =[-5 0 0.1 0.5 1 2 10 30 500 1000]';
1494+
% T_mire =[10 5 2 1.5 2 2 2 2 4 10]';
1495+
% T_palsa=[10 5 2 0 -1 -1 0 2 4 10]'; % <------------------- Here change T(z) initial
1496+
% ActiveLayer(isnan(ActiveLayer))=0.5;
1497+
% assert(min(ActiveLayer)>0.1 && max(ActiveLayer)<1,'Check initial active layers and initial T profile')
1498+
% for i=1:40
1499+
% T_z(4)=ActiveLayer(i);
1500+
% if ispf(i)==0
1501+
% thermalInit(i).Tinitial=[T_z T_mire];
1502+
% else
1503+
% thermalInit(i).Tinitial=[T_z T_palsa];
1504+
% end
1505+
% end
1506+
%
1507+
% ActiveLayer=num2cell(ActiveLayer);
1508+
% [thermalInit.ActiveLayer]=ActiveLayer{:};
1509+
%
1510+
% add.thermalInit=thermalInit;
1511+
%
1512+
% % clear related var
1513+
% clear ActiveLayer i ispf palsaHeight Strati_mire Strati_palsa_initial T_mire T_palsa T_z thermalInit
1514+
% geomSetup(33)=add;
1515+
1516+
%% Setup 34 : Setup 33 with 0 cm of immobile snow height
1517+
% add=geomSetup(33);
1518+
% add.descr='Setup 33 with 0 cm immobile snow height';
1519+
% add.immobile_snow_height = 0 .*(add.immobile_snow_height./add.immobile_snow_height);
1520+
% geomSetup(34)=add;
1521+
1522+
%% Setup 35 : Setup 32 SS T profile and with 5 cm of immobile snow height
1523+
add=geomSetup(32);
1524+
add.run='pending';
1525+
add.descr='Setup 32 SS T profile and with 5 cm of immobile snow height';
14611526
add.immobile_snow_height = 0.05 .*(add.immobile_snow_height./add.immobile_snow_height);
14621527

14631528
% Thermal init
@@ -1490,9 +1555,18 @@
14901555
end
14911556

14921557
% Initial T profiles
1493-
T_z =[-5 0 0.1 0.5 1 2 10 30 500 1000]';
1494-
T_mire =[10 5 2 1.5 2 2 2 2 4 10]';
1495-
T_palsa=[10 5 2 0 -1 -1 0 2 4 10]'; % <------------------- Here change T(z) initial
1558+
load profileT.mat
1559+
% Bibouille -------------
1560+
T_z1 =[-5 0 0.1 0.5 1 2 10 30 500 1000]';
1561+
T_mire1 =[10 5 2 2 2 2 2 2 4 10]';
1562+
% T_palsa=[10 5 2 0 -1 -1 0 2 4 10]';
1563+
T_z2 =[-5 0 (profileT.z(1:end-1))' 1000]';
1564+
T_mire2 =interp1(T_z1,T_mire1,T_z2);
1565+
T_palsa2=[profileT.T(1) profileT.T(1) (profileT.T(1:end-1))' 10]';
1566+
T_z=T_z2;
1567+
T_mire=T_mire2;
1568+
T_palsa=T_palsa2;
1569+
% Bidouille -------------
14961570
ActiveLayer(isnan(ActiveLayer))=0.5;
14971571
assert(min(ActiveLayer)>0.1 && max(ActiveLayer)<1,'Check initial active layers and initial T profile')
14981572
for i=1:40
@@ -1511,13 +1585,22 @@
15111585

15121586
% clear related var
15131587
clear ActiveLayer i ispf palsaHeight Strati_mire Strati_palsa_initial T_mire T_palsa T_z thermalInit
1514-
geomSetup(33)=add;
1588+
geomSetup(35)=add;
15151589

1516-
%% Setup 34 : Setup 33 with 0 cm of immobile snow height
1517-
add=geomSetup(33);
1518-
add.descr='Setup 33 with 0 cm immobile snow height';
1519-
add.immobile_snow_height = 0 .*(add.immobile_snow_height./add.immobile_snow_height);
1520-
geomSetup(34)=add;
1590+
%% Setup 36 : Setup 35 with 10 cm immobile snow height
1591+
add=geomSetup(35);
1592+
add.run='pending';
1593+
add.descr='Setup 35 with 10 cm immobile snow height';
1594+
add.immobile_snow_height = 0.1 .*(add.immobile_snow_height./add.immobile_snow_height);
1595+
geomSetup(36)=add;
1596+
1597+
1598+
%% Setup 37 :Setup 35 with 20 cm immobile snow height
1599+
add=geomSetup(35);
1600+
add.run='pending';
1601+
add.descr='Setup 35 with 20 cm immobile snow height';
1602+
add.immobile_snow_height = 0.2 .*(add.immobile_snow_height./add.immobile_snow_height);
1603+
geomSetup(37)=add;
15211604

15221605
%% Save
15231606
% load the existing document and append it rather than recalculating old

0 commit comments

Comments
 (0)