src/distribution/ivanov.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-License-Identifier: BSD-3-Clause | ||
| 2 | |||
| 3 | #include "terraingen/distribution/ivanov.h" | ||
| 4 | |||
| 5 | #include "terraingen/distribution/production_surface.h" | ||
| 6 | |||
| 7 | namespace terraingen { | ||
| 8 | |||
| 9 | namespace { | ||
| 10 | |||
| 11 | constexpr detail::ExponentialChronology kIvanov{ | ||
| 12 | 2.68e-14, 6.93, 4.13e-4, kMaxMarsAgeGyr, "Martian surface age must be between 0 and 4.6 Gyr"}; | ||
| 13 | |||
| 14 | } // namespace | ||
| 15 | |||
| 16 | 541 | double IvanovMarsChronology(double ageGyr) { | |
| 17 | 541 | return kIvanov.Count(ageGyr); | |
| 18 | } | ||
| 19 | |||
| 20 | 9 | double IvanovMarsChronologyRate(double ageGyr) { | |
| 21 | 9 | return kIvanov.Rate(ageGyr); | |
| 22 | } | ||
| 23 | |||
| 24 | 15 | LogPolynomialSfd IvanovMarsProductionFunction() { | |
| 25 | 15 | return LogPolynomialSfd({-3.383677, -3.197453, 1.256814, 7.915374e-1, -4.860814e-1, | |
| 26 | -3.630098e-1, 1.015683e-1, 6.755923e-2, -1.180639e-2, -4.753462e-3, | ||
| 27 | 6.232845e-4, 5.805492e-5}, | ||
| 28 | 15 | SfdKind::ProductionRate, DiameterRange{15.0, 362000.0}, 1000.0, 1e6); | |
| 29 | } | ||
| 30 | |||
| 31 | } // namespace terraingen | ||
| 32 |