-
Notifications
You must be signed in to change notification settings - Fork 0
/
force_test.php
executable file
·92 lines (68 loc) · 2.36 KB
/
force_test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/php
<?php
/**
* Creates CSV output file illustrating the difference between thermal age in buried and unburied
* samples from 2011 to 100 years b.p. in northern England.
*
*/
include 'lib/ttkpl.php';
$climate = new sine();
$climate->setGenericSine(
scalarFactory::makeCentigradeAbs(10),
scalarFactory::makeKelvinAnomaly(0.341),
scalarFactory::makeDays(0)
);
echo "\n$climate\n";
$climate = new sine();
$climate->setGenericSine(
scalarFactory::makeCentigradeAbs(10),
scalarFactory::makeKelvinAnomaly(22.341),
scalarFactory::makeDays(0)
);
echo "\n$climate\n";
exit (1);
$climate = new sine();
$climate->setGenericSine(
scalarFactory::makeCentigradeAbs(10),
scalarFactory::makeKelvinAnomaly(12),
scalarFactory::makeDays(0)
);
exit (1);
$pt = new palaeoTime(1000);
echo $pt->getYearsBp() . ":";
$pt->setYearsBp(999);
echo $pt->getYearsBp() . ":";
$pt->setYearsBp(888);
echo $pt->getYearsBp() . "\n";
exit (1);
$depurination = new kinetics (126940, 17745329175.856213, "DNA depurination (bone)");
$temps = new temperatures ();
$location = new latLon (51, -1);
$localisingCorrections = $temps->getPalaeoTemperatureCorrections ($location);
$soil = new thermalLayer(scalarFactory::makeMetres(3), scalarFactory::makeThermalDiffusivity (0.1), "Hypothetical dry, peaty soil.");
$grave = new burial();
$grave->addThermalLayer($soil);
$ptA = new palaeoTime (-61);
$ttA = new temporothermal ();
$ttA->setTempSource ($temps);
$ttA->setLocalisingCorrections ($localisingCorrections);
$ttB = new temporothermal ();
$ttB->setTempSource ($temps);
$ttB->setLocalisingCorrections ($localisingCorrections);
for ($zageBp = -60; $zageBp <= 100; $zageBp += 1) {
$age = new palaeoTime ($zageBp);
$ttA->setTimeRange ($age, $ptA);
$ttB->setTimeRange ($age, $ptA);
$taA = new thermalAge ();
$taA->setKinetics ($depurination);
$taA->addTemporothermal ($ttA);
$y = $taA->getThermalAge ();
echo "$zageBp," . $ttA->rangeYrs . "," . $y->getValue() . ",";
// Now bury the temporothermal (reverse the polarity of the deflector dish while we're at it) and see how things change.
$ttB->setBurial($grave);
$taB = new thermalAge ();
$taB->setKinetics ($depurination);
$taB->addTemporothermal ($ttB);
$y = $taB->getThermalAge ();
echo $y->getValue() . "\n";
}