|
1456 | 1456 | % geomSetup(32)=add; |
1457 | 1457 |
|
1458 | 1458 | %% 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'; |
1461 | 1526 | add.immobile_snow_height = 0.05 .*(add.immobile_snow_height./add.immobile_snow_height); |
1462 | 1527 |
|
1463 | 1528 | % Thermal init |
|
1490 | 1555 | end |
1491 | 1556 |
|
1492 | 1557 | % 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 ------------- |
1496 | 1570 | ActiveLayer(isnan(ActiveLayer))=0.5; |
1497 | 1571 | assert(min(ActiveLayer)>0.1 && max(ActiveLayer)<1,'Check initial active layers and initial T profile') |
1498 | 1572 | for i=1:40 |
|
1511 | 1585 |
|
1512 | 1586 | % clear related var |
1513 | 1587 | 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; |
1515 | 1589 |
|
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; |
1521 | 1604 |
|
1522 | 1605 | %% Save |
1523 | 1606 | % load the existing document and append it rather than recalculating old |
|
0 commit comments