From 4054cc073ae0569e53ee4d3f3f866eb760f5e568 Mon Sep 17 00:00:00 2001 From: RoryBarnes Date: Tue, 2 Jan 2024 13:14:41 -0800 Subject: [PATCH 1/2] Changed DiffLimWaterEscape test so that output time and stop time are the same. --- .../test_DiffLimWaterEscape.py | 268 ++++++++++ .../test_LS16_AtmEsc_WaterLossModel.py | 465 ------------------ tests/AtmescStellar/DiffLimWaterEscape/vpl.in | 2 +- 3 files changed, 269 insertions(+), 466 deletions(-) create mode 100644 tests/AtmescStellar/DiffLimWaterEscape/test_DiffLimWaterEscape.py delete mode 100644 tests/AtmescStellar/DiffLimWaterEscape/test_LS16_AtmEsc_WaterLossModel.py diff --git a/tests/AtmescStellar/DiffLimWaterEscape/test_DiffLimWaterEscape.py b/tests/AtmescStellar/DiffLimWaterEscape/test_DiffLimWaterEscape.py new file mode 100644 index 000000000..3d835f2c5 --- /dev/null +++ b/tests/AtmescStellar/DiffLimWaterEscape/test_DiffLimWaterEscape.py @@ -0,0 +1,268 @@ +from benchmark import Benchmark, benchmark +import astropy.units as u +import pytest + +@benchmark( + { + "log.initial.system.Age": {"value": 3.155760e+13, "unit": u.sec}, + "log.initial.system.Time": {"value": 0.000000, "unit": u.sec}, + "log.initial.system.TotAngMom": {"value": 1.151432e+42, "unit": (u.kg * u.m ** 2) / u.sec}, + "log.initial.system.TotEnergy": {"value": -1.877843e+39, "unit": u.Joule}, + "log.initial.system.PotEnergy": {"value": -1.919599e+39, "unit": u.Joule}, + "log.initial.system.KinEnergy": {"value": 4.178988e+37, "unit": u.Joule}, + "log.initial.system.DeltaTime": {"value": 0.000000, "unit": u.sec}, + "log.initial.star.Mass": {"value": 1.789574e+29, "unit": u.kg}, + "log.initial.star.Radius": {"value": 6.681051e+08, "unit": u.m}, + "log.initial.star.RadGyra": {"value": 0.444800}, + "log.initial.star.RotAngMom": {"value": 1.149304e+42, "unit": (u.kg * u.m ** 2) / u.sec}, + "log.initial.star.RotVel": {"value": 4.858597e+04, "unit": u.m / u.sec}, + "log.initial.star.BodyType": {"value": 0.000000}, + "log.initial.star.RotRate": {"value": 7.272205e-05, "unit": 1 / u.sec}, + "log.initial.star.RotPer": {"value": 8.640000e+04, "unit": u.sec}, + "log.initial.star.Density": {"value": 143.260634, "unit": u.kg / u.m ** 3}, + "log.initial.star.HZLimitDryRunaway": {"value": 3.305062e+10, "unit": u.m}, + "log.initial.star.HZLimRecVenus": {"value": 2.977014e+10, "unit": u.m}, + "log.initial.star.HZLimRunaway": {"value": 3.916594e+10, "unit": u.m}, + "log.initial.star.HZLimMoistGreenhouse": {"value": 3.939084e+10, "unit": u.m}, + "log.initial.star.HZLimMaxGreenhouse": {"value": 7.572440e+10, "unit": u.m}, + "log.initial.star.HZLimEarlyMars": {"value": 8.258537e+10, "unit": u.m}, + "log.initial.star.Instellation": {"value": -1.000000, "unit": u.kg / u.sec ** 3}, + "log.initial.star.CriticalSemiMajorAxis": {"value": -1.000000, "unit": u.m}, + "log.initial.star.LXUVTot": {"value": 5.924722e-05, "unit": u.LSUN}, + "log.initial.star.LostEnergy": {"value": 5.562685e-309, "unit": u.Joule}, + "log.initial.star.LostAngMom": {"value": 5.562685e-309, "unit": (u.kg * u.m ** 2) / u.sec}, + "log.initial.star.Luminosity": {"value": 0.059247, "unit": u.LSUN}, + "log.initial.star.LXUVStellar": {"value": 2.278648e+22, "unit": u.W}, + "log.initial.star.Temperature": {"value": 2907.334487, "unit": u.K}, + "log.initial.star.LXUVFrac": {"value": 0.001000}, + "log.initial.star.RossbyNumber": {"value": 0.014106}, + "log.initial.star.DRotPerDtStellar": {"value": 2.355449e-09}, + "log.initial.b.Mass": {"value": 8.223700e+24, "unit": u.kg}, + "log.initial.b.Radius": {"value": 7.124338e+06, "unit": u.m}, + "log.initial.b.RadGyra": {"value": 0.500000}, + "log.initial.b.BodyType": {"value": 0.000000}, + "log.initial.b.Density": {"value": 5429.316562, "unit": u.kg / u.m ** 3}, + "log.initial.b.HZLimitDryRunaway": {"value": 3.305089e+10, "unit": u.m}, + "log.initial.b.HZLimRecVenus": {"value": 2.977014e+10, "unit": u.m}, + "log.initial.b.HZLimRunaway": {"value": 3.916594e+10, "unit": u.m}, + "log.initial.b.HZLimMoistGreenhouse": {"value": 3.939084e+10, "unit": u.m}, + "log.initial.b.HZLimMaxGreenhouse": {"value": 7.572440e+10, "unit": u.m}, + "log.initial.b.HZLimEarlyMars": {"value": 8.258537e+10, "unit": u.m}, + "log.initial.b.Instellation": {"value": 6.076083e+05, "unit": u.kg / u.sec ** 3}, + "log.initial.b.MeanMotion": {"value": 4.813397e-05, "unit": 1 / u.sec}, + "log.initial.b.OrbPeriod": {"value": 1.305354e+05, "unit": u.sec}, + "log.initial.b.SemiMajorAxis": {"value": 1.727522e+09, "unit": u.m}, + "log.initial.b.LXUVTot": {"value": -1.000000, "unit": u.kg / u.sec ** 3}, + "log.initial.b.SurfWaterMass": {"value": 10.000000, "unit": u.TO}, + "log.initial.b.EnvelopeMass": {"value": 0.000000, "unit": u.kg}, + "log.initial.b.OxygenMass": {"value": 0.000000, "unit": u.bar}, + "log.initial.b.RGLimit": {"value": 3.770574e+10, "unit": u.m}, + "log.initial.b.XO": {"value": 0.333333}, + "log.initial.b.EtaO": {"value": 0.902643}, + "log.initial.b.PlanetRadius": {"value": 7.124338e+06, "unit": u.m}, + "log.initial.b.OxygenMantleMass": {"value": 0.000000, "unit": u.kg}, + "log.initial.b.RadXUV": {"value": -1.000000, "unit": u.m}, + "log.initial.b.RadSolid": {"value": -1.000000, "unit": u.m}, + "log.initial.b.PresXUV": {"value": 5.000000}, + "log.initial.b.ScaleHeight": {"value": -1.000000, "unit": u.m}, + "log.initial.b.ThermTemp": {"value": 400.000000, "unit": u.K}, + "log.initial.b.AtmGasConst": {"value": 4124.000000}, + "log.initial.b.PresSurf": {"value": -1.000000, "unit": u.Pa}, + "log.initial.b.DEnvMassDt": {"value": 0.000000, "unit": u.kg / u.sec}, + "log.initial.b.FXUV": {"value": 607.608327, "unit": u.W / u.m ** 2}, + "log.initial.b.AtmXAbsEffH2O": {"value": 0.010000}, + "log.initial.b.RocheRadius": {"value": 4.290313e+07, "unit": u.m}, + "log.initial.b.BondiRadius": {"value": 3.107839e+08, "unit": u.m}, + "log.initial.b.HEscapeRegime": {"value": 8.000000}, + "log.initial.b.RRCriticalFlux": {"value": 41.454587, "unit": u.W / u.m ** 2}, + "log.initial.b.CrossoverMass": {"value": 2.575027e-25, "unit": u.kg}, + "log.initial.b.WaterEscapeRegime": {"value": 3.000000}, + "log.initial.b.FXUVCRITDRAG": {"value": 7.247839, "unit": u.W / u.m ** 2}, + "log.initial.b.HREFFLUX": {"value": 1.178796e+19, "unit": 1 / u.m ** 2 / u.sec}, + "log.initial.b.XO2": {"value": 0.000000}, + "log.initial.b.XH2O": {"value": 1.000000}, + "log.initial.b.HDiffFlux": {"value": 1.395966e+17, "unit": 1 / u.m ** 2 / u.sec}, + "log.initial.b.HRefODragMod": {"value": 0.121638}, + "log.initial.b.KTide": {"value": 0.753205}, + "log.initial.b.RGDuration": {"value": 0.00000e+00, "unit": u.yr}, + "log.initial.e.Mass": {"value": 4.138725e+24, "unit": u.kg}, + "log.initial.e.Radius": {"value": 5.880608e+06, "unit": u.m}, + "log.initial.e.RadGyra": {"value": 0.500000}, + "log.initial.e.BodyType": {"value": 0.000000}, + "log.initial.e.Density": {"value": 4858.600773, "unit": u.kg / u.m ** 3}, + "log.initial.e.HZLimitDryRunaway": {"value": 3.305129e+10, "unit": u.m}, + "log.initial.e.HZLimRecVenus": {"value": 2.977014e+10, "unit": u.m}, + "log.initial.e.HZLimRunaway": {"value": 3.916594e+10, "unit": u.m}, + "log.initial.e.HZLimMoistGreenhouse": {"value": 3.939084e+10, "unit": u.m}, + "log.initial.e.HZLimMaxGreenhouse": {"value": 7.572440e+10, "unit": u.m}, + "log.initial.e.HZLimEarlyMars": {"value": 8.258537e+10, "unit": u.m}, + "log.initial.e.Instellation": {"value": 9.448996e+04, "unit": u.kg / u.sec ** 3}, + "log.initial.e.MeanMotion": {"value": 1.191967e-05, "unit": 1 / u.sec}, + "log.initial.e.OrbPeriod": {"value": 5.271275e+05, "unit": u.sec}, + "log.initial.e.SemiMajorAxis": {"value": 4.380718e+09, "unit": u.m}, + "log.initial.e.LXUVTot": {"value": -1.000000, "unit": u.kg / u.sec ** 3}, + "log.initial.e.SurfWaterMass": {"value": 10.000000, "unit": u.TO}, + "log.initial.e.EnvelopeMass": {"value": 0.000000, "unit": u.kg}, + "log.initial.e.OxygenMass": {"value": 0.000000, "unit": u.bar}, + "log.initial.e.RGLimit": {"value": 3.832506e+10, "unit": u.m}, + "log.initial.e.XO": {"value": 0.333333}, + "log.initial.e.EtaO": {"value": 0.776474}, + "log.initial.e.PlanetRadius": {"value": 5.880608e+06, "unit": u.m}, + "log.initial.e.OxygenMantleMass": {"value": 0.000000, "unit": u.kg}, + "log.initial.e.RadXUV": {"value": -1.000000, "unit": u.m}, + "log.initial.e.RadSolid": {"value": -1.000000, "unit": u.m}, + "log.initial.e.PresXUV": {"value": 5.000000}, + "log.initial.e.ScaleHeight": {"value": -1.000000, "unit": u.m}, + "log.initial.e.ThermTemp": {"value": 400.000000, "unit": u.K}, + "log.initial.e.AtmGasConst": {"value": 4124.000000}, + "log.initial.e.PresSurf": {"value": -1.000000, "unit": u.Pa}, + "log.initial.e.DEnvMassDt": {"value": 0.000000, "unit": u.kg / u.sec}, + "log.initial.e.FXUV": {"value": 94.489956, "unit": u.W / u.m ** 2}, + "log.initial.e.AtmXAbsEffH2O": {"value": 0.011065}, + "log.initial.e.RocheRadius": {"value": 8.653872e+07, "unit": u.m}, + "log.initial.e.BondiRadius": {"value": 9.821934e+07, "unit": u.m}, + "log.initial.e.HEscapeRegime": {"value": 8.000000}, + "log.initial.e.RRCriticalFlux": {"value": 26.551159, "unit": u.W / u.m ** 2}, + "log.initial.e.CrossoverMass": {"value": 1.130931e-25, "unit": u.kg}, + "log.initial.e.WaterEscapeRegime": {"value": 3.000000}, + "log.initial.e.FXUVCRITDRAG": {"value": 2.949984, "unit": u.W / u.m ** 2}, + "log.initial.e.HREFFLUX": {"value": 3.326851e+18, "unit": 1 / u.m ** 2 / u.sec}, + "log.initial.e.XO2": {"value": 0.000000}, + "log.initial.e.XH2O": {"value": 1.000000}, + "log.initial.e.HDiffFlux": {"value": 1.031142e+17, "unit": 1 / u.m ** 2 / u.sec}, + "log.initial.e.HRefODragMod": {"value": 0.138662}, + "log.initial.e.KTide": {"value": 0.898227}, + "log.initial.e.RGDuration": {"value": 0.00000e+00, "unit": u.yr}, + "log.final.system.Age": {"value": 3.001128e+16, "unit": u.sec, "rtol": 1e-4}, + "log.final.system.Time": {"value": 2.997972e+16, "unit": u.sec, "rtol": 1e-4}, + "log.final.system.TotAngMom": {"value": 1.140605e+42, "unit": (u.kg * u.m ** 2) / u.sec, "rtol": 1e-4}, + "log.final.system.TotEnergy": {"value": -1.890023e+39, "unit": u.Joule, "rtol": 1e-4}, + "log.final.system.PotEnergy": {"value": -1.631379e+40, "unit": u.Joule, "rtol": 1e-4}, + "log.final.system.KinEnergy": {"value": 9.851807e+35, "unit": u.Joule, "rtol": 1e-4}, + "log.final.system.DeltaTime": {"value": 2.721322e+11, "unit": u.sec, "rtol": 1e-4}, + "log.final.star.Mass": {"value": 1.789574e+29, "unit": u.kg, "rtol": 1e-4}, + "log.final.star.Radius": {"value": 7.861410e+07, "unit": u.m, "rtol": 1e-4}, + "log.final.star.RadGyra": {"value": 0.465100, "rtol": 1e-4}, + "log.final.star.RotAngMom": {"value": 2.171174e+40, "unit": (u.kg * u.m ** 2) / u.sec, "rtol": 1e-4}, + "log.final.star.RotVel": {"value": 7134.305972, "unit": u.m / u.sec, "rtol": 1e-4}, + "log.final.star.BodyType": {"value": 0.000000, "rtol": 1e-4}, + "log.final.star.RotRate": {"value": 9.075097e-05, "unit": 1 / u.sec, "rtol": 1e-4}, + "log.final.star.RotPer": {"value": 6.923546e+04, "unit": u.sec, "rtol": 1e-4}, + "log.final.star.Density": {"value": 8.793460e+04, "unit": u.kg / u.m ** 3, "rtol": 1e-4}, + "log.final.star.HZLimitDryRunaway": {"value": 3.236261e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.star.HZLimRecVenus": {"value": 2.926995e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.star.HZLimRunaway": {"value": 3.845735e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.star.HZLimMoistGreenhouse": {"value": 3.872906e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.star.HZLimMaxGreenhouse": {"value": 7.519102e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.star.HZLimEarlyMars": {"value": 8.200580e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.star.Instellation": {"value": -1.000000, "unit": u.kg / u.sec ** 3, "rtol": 1e-4}, + "log.final.star.CriticalSemiMajorAxis": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, + "log.final.star.LXUVTot": {"value": 5.680619e-07, "unit": u.LSUN, "rtol": 1e-4}, + "log.final.star.LostEnergy": {"value": 1.442281e+40, "unit": u.Joule, "rtol": 1e-4}, + "log.final.star.LostAngMom": {"value": 1.116766e+42, "unit": (u.kg * u.m ** 2) / u.sec, "rtol": 1e-4}, + "log.final.star.Luminosity": {"value": 0.000568, "unit": u.LSUN, "rtol": 1e-4}, + "log.final.star.LXUVStellar": {"value": 2.184766e+20, "unit": u.W, "rtol": 1e-4}, + "log.final.star.Temperature": {"value": 2649.348933, "unit": u.K, "rtol": 1e-4}, + "log.final.star.LXUVFrac": {"value": 0.001000, "rtol": 1e-4}, + "log.final.star.RossbyNumber": {"value": 0.009905, "rtol": 1e-4}, + "log.final.star.DRotPerDtStellar": {"value": 1.447229e-12, "rtol": 1e-4}, + "log.final.b.Mass": {"value": 8.223700e+24, "unit": u.kg, "rtol": 1e-4}, + "log.final.b.Radius": {"value": 7.124338e+06, "unit": u.m, "rtol": 1e-4}, + "log.final.b.RadGyra": {"value": 0.500000, "rtol": 1e-4}, + "log.final.b.BodyType": {"value": 0.000000, "rtol": 1e-4}, + "log.final.b.Density": {"value": 5429.316562, "unit": u.kg / u.m ** 3, "rtol": 1e-4}, + "log.final.b.HZLimitDryRunaway": {"value": 3.236287e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.HZLimRecVenus": {"value": 2.926995e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.HZLimRunaway": {"value": 3.845735e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.HZLimMoistGreenhouse": {"value": 3.872906e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.HZLimMaxGreenhouse": {"value": 7.519102e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.HZLimEarlyMars": {"value": 8.200580e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.Instellation": {"value": 5825.743992, "unit": u.kg / u.sec ** 3, "rtol": 1e-4}, + "log.final.b.MeanMotion": {"value": 4.813397e-05, "unit": 1 / u.sec, "rtol": 1e-4}, + "log.final.b.OrbPeriod": {"value": 1.305354e+05, "unit": u.sec, "rtol": 1e-4}, + "log.final.b.SemiMajorAxis": {"value": 1.727522e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.LXUVTot": {"value": -1.000000, "unit": u.kg / u.sec ** 3, "rtol": 1e-4}, + "log.final.b.SurfWaterMass": {"value": 0.000000, "unit": u.TO, "rtol": 1e-4}, + "log.final.b.EnvelopeMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, + "log.final.b.OxygenMass": {"value": 1146.053603, "unit": u.bar, "rtol": 1e-4}, + "log.final.b.RGLimit": {"value": 3.704010e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.b.XO": {"value": 1.000000, "rtol": 1e-4}, + "log.final.b.EtaO": {"value": 0.000000, "rtol": 1e-4}, + "log.final.b.PlanetRadius": {"value": 7.124338e+06, "unit": u.m, "rtol": 1e-4}, + "log.final.b.OxygenMantleMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, + "log.final.b.RadXUV": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, + "log.final.b.RadSolid": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, + "log.final.b.PresXUV": {"value": 5.000000, "rtol": 1e-4}, + "log.final.b.ScaleHeight": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, + "log.final.b.ThermTemp": {"value": 400.000000, "unit": u.K, "rtol": 1e-4}, + "log.final.b.AtmGasConst": {"value": 4124.000000, "rtol": 1e-4}, + "log.final.b.PresSurf": {"value": -1.000000, "unit": u.Pa, "rtol": 1e-4}, + "log.final.b.DEnvMassDt": {"value": 0.000000, "unit": u.kg / u.sec, "rtol": 1e-4}, + "log.final.b.FXUV": {"value": 5.825744, "unit": u.W / u.m ** 2, "rtol": 1e-4}, + "log.final.b.AtmXAbsEffH2O": {"value": 0.041374, "rtol": 1e-4}, + "log.final.b.RocheRadius": {"value": 4.290313e+07, "unit": u.m, "rtol": 1e-4}, + "log.final.b.BondiRadius": {"value": 9.942293e+08, "unit": u.m, "rtol": 1e-4}, + "log.final.b.HEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, + "log.final.b.RRCriticalFlux": {"value": 41.454587, "unit": u.W / u.m ** 2, "rtol": 1e-4}, + "log.final.b.CrossoverMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, + "log.final.b.WaterEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, + "log.final.b.FXUVCRITDRAG": {"value": 0.000000, "unit": u.W / u.m ** 2, "rtol": 1e-4}, + "log.final.b.HREFFLUX": {"value": 4.676160e+17, "unit": 1 / u.m ** 2 / u.sec, "rtol": 1e-4}, + "log.final.b.XO2": {"value": 1.000000, "rtol": 1e-4}, + "log.final.b.XH2O": {"value": 0.000000, "rtol": 1e-4}, + "log.final.b.HDiffFlux": {"value": 0.000000, "unit": 1 / u.m ** 2 / u.sec, "rtol": 1e-4}, + "log.final.b.HRefODragMod": {"value": 0.000000, "rtol": 1e-4}, + "log.final.b.KTide": {"value": 0.753205, "rtol": 1e-4}, + "log.final.b.RGDuration": {"value": 0.00000e+00, "unit": u.yr, "rtol": 1e-4}, + "log.final.e.Mass": {"value": 4.138725e+24, "unit": u.kg, "rtol": 1e-4}, + "log.final.e.Radius": {"value": 5.880608e+06, "unit": u.m, "rtol": 1e-4}, + "log.final.e.RadGyra": {"value": 0.500000, "rtol": 1e-4}, + "log.final.e.BodyType": {"value": 0.000000, "rtol": 1e-4}, + "log.final.e.Density": {"value": 4858.600773, "unit": u.kg / u.m ** 3, "rtol": 1e-4}, + "log.final.e.HZLimitDryRunaway": {"value": 3.236326e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.HZLimRecVenus": {"value": 2.926995e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.HZLimRunaway": {"value": 3.845735e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.HZLimMoistGreenhouse": {"value": 3.872906e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.HZLimMaxGreenhouse": {"value": 7.519102e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.HZLimEarlyMars": {"value": 8.200580e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.Instellation": {"value": 905.968971, "unit": u.kg / u.sec ** 3, "rtol": 1e-4}, + "log.final.e.MeanMotion": {"value": 1.191967e-05, "unit": 1 / u.sec, "rtol": 1e-4}, + "log.final.e.OrbPeriod": {"value": 5.271275e+05, "unit": u.sec, "rtol": 1e-4}, + "log.final.e.SemiMajorAxis": {"value": 4.380718e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.LXUVTot": {"value": -1.000000, "unit": u.kg / u.sec ** 3, "rtol": 1e-4}, + "log.final.e.SurfWaterMass": {"value": 3.053422, "unit": u.TO, "rtol": 1e-4}, + "log.final.e.EnvelopeMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, + "log.final.e.OxygenMass": {"value": 1031.243496, "unit": u.bar, "rtol": 1e-4}, + "log.final.e.RGLimit": {"value": 3.765018e+09, "unit": u.m, "rtol": 1e-4}, + "log.final.e.XO": {"value": 0.554278, "rtol": 1e-4}, + "log.final.e.EtaO": {"value": 0.000000, "rtol": 1e-4}, + "log.final.e.PlanetRadius": {"value": 5.880608e+06, "unit": u.m, "rtol": 1e-4}, + "log.final.e.OxygenMantleMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, + "log.final.e.RadXUV": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, + "log.final.e.RadSolid": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, + "log.final.e.PresXUV": {"value": 5.000000, "rtol": 1e-4}, + "log.final.e.ScaleHeight": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, + "log.final.e.ThermTemp": {"value": 400.000000, "unit": u.K, "rtol": 1e-4}, + "log.final.e.AtmGasConst": {"value": 4124.000000, "rtol": 1e-4}, + "log.final.e.PresSurf": {"value": -1.000000, "unit": u.Pa, "rtol": 1e-4}, + "log.final.e.DEnvMassDt": {"value": 0.000000, "unit": u.kg / u.sec, "rtol": 1e-4}, + "log.final.e.FXUV": {"value": 0.905969, "unit": u.W / u.m ** 2, "rtol": 1e-4}, + "log.final.e.AtmXAbsEffH2O": {"value": 0.073282, "rtol": 1e-4}, + "log.final.e.RocheRadius": {"value": 8.653872e+07, "unit": u.m, "rtol": 1e-4}, + "log.final.e.BondiRadius": {"value": 3.142136e+08, "unit": u.m, "rtol": 1e-4}, + "log.final.e.HEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, + "log.final.e.RRCriticalFlux": {"value": 26.551159, "unit": u.W / u.m ** 2, "rtol": 1e-4}, + "log.final.e.CrossoverMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, + "log.final.e.WaterEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, + "log.final.e.FXUVCRITDRAG": {"value": 0.297807, "unit": u.W / u.m ** 2, "rtol": 1e-4}, + "log.final.e.HREFFLUX": {"value": 2.112523e+17, "unit": 1 / u.m ** 2 / u.sec, "rtol": 1e-4}, + "log.final.e.XO2": {"value": 0.426457, "rtol": 1e-4}, + "log.final.e.XH2O": {"value": 0.573543, "rtol": 1e-4}, + "log.final.e.HDiffFlux": {"value": 6.894047e+16, "unit": 1 / u.m ** 2 / u.sec, "rtol": 1e-4}, + "log.final.e.HRefODragMod": {"value": 0.003131, "rtol": 1e-4}, + "log.final.e.KTide": {"value": 0.898227, "rtol": 1e-4}, + "log.final.e.RGDuration": {"value": 3.80345e+08, "unit": u.yr, "rtol": 1e-4}, + } +) +class Test_DiffLimWaterEscape(Benchmark): + pass diff --git a/tests/AtmescStellar/DiffLimWaterEscape/test_LS16_AtmEsc_WaterLossModel.py b/tests/AtmescStellar/DiffLimWaterEscape/test_LS16_AtmEsc_WaterLossModel.py deleted file mode 100644 index 25353d2de..000000000 --- a/tests/AtmescStellar/DiffLimWaterEscape/test_LS16_AtmEsc_WaterLossModel.py +++ /dev/null @@ -1,465 +0,0 @@ -import astropy.units as u -import pytest -from benchmark import Benchmark, benchmark - - -@benchmark( - { - "log.initial.system.Age": {"value": 3.155760e13, "unit": u.sec}, - "log.initial.system.Time": {"value": 0.000000, "unit": u.sec}, - "log.initial.system.TotAngMom": { - "value": 1.151432e42, - "unit": (u.kg * u.m**2) / u.sec, - }, - "log.initial.system.TotEnergy": {"value": -1.877843e39, "unit": u.Joule}, - "log.initial.system.PotEnergy": {"value": -1.919599e39, "unit": u.Joule}, - "log.initial.system.KinEnergy": {"value": 4.178988e37, "unit": u.Joule}, - "log.initial.system.DeltaTime": {"value": 0.000000, "unit": u.sec}, - "log.initial.star.Mass": {"value": 1.789574e29, "unit": u.kg}, - "log.initial.star.Radius": {"value": 6.681051e08, "unit": u.m}, - "log.initial.star.RadGyra": {"value": 0.444800}, - "log.initial.star.RotAngMom": { - "value": 1.149304e42, - "unit": (u.kg * u.m**2) / u.sec, - }, - "log.initial.star.RotVel": {"value": 4.858597e04, "unit": u.m / u.sec}, - "log.initial.star.BodyType": {"value": 0.000000}, - "log.initial.star.RotRate": {"value": 7.272205e-05, "unit": 1 / u.sec}, - "log.initial.star.RotPer": {"value": 8.640000e04, "unit": u.sec}, - "log.initial.star.Density": {"value": 143.260634, "unit": u.kg / u.m**3}, - "log.initial.star.HZLimitDryRunaway": {"value": 3.305062e10, "unit": u.m}, - "log.initial.star.HZLimRecVenus": {"value": 2.977014e10, "unit": u.m}, - "log.initial.star.HZLimRunaway": {"value": 3.916594e10, "unit": u.m}, - "log.initial.star.HZLimMoistGreenhouse": {"value": 3.939084e10, "unit": u.m}, - "log.initial.star.HZLimMaxGreenhouse": {"value": 7.572440e10, "unit": u.m}, - "log.initial.star.HZLimEarlyMars": {"value": 8.258537e10, "unit": u.m}, - "log.initial.star.Instellation": { - "value": -1.000000, - "unit": u.kg / u.sec**3, - }, - "log.initial.star.CriticalSemiMajorAxis": {"value": -1.000000, "unit": u.m}, - "log.initial.star.LXUVTot": {"value": 5.924722e-05, "unit": u.LSUN}, - "log.initial.star.LostEnergy": {"value": 5.562685e-309, "unit": u.Joule}, - "log.initial.star.LostAngMom": { - "value": 5.562685e-309, - "unit": (u.kg * u.m**2) / u.sec, - }, - "log.initial.star.Luminosity": {"value": 0.059247, "unit": u.LSUN}, - "log.initial.star.LXUVStellar": {"value": 2.278648e22, "unit": u.W}, - "log.initial.star.Temperature": {"value": 2907.334487, "unit": u.K}, - "log.initial.star.LXUVFrac": {"value": 0.001000}, - "log.initial.star.RossbyNumber": {"value": 0.014106}, - "log.initial.star.DRotPerDtStellar": {"value": 2.355449e-09}, - "log.initial.b.Mass": {"value": 8.223700e24, "unit": u.kg}, - "log.initial.b.Radius": {"value": 7.124338e06, "unit": u.m}, - "log.initial.b.RadGyra": {"value": 0.500000}, - "log.initial.b.BodyType": {"value": 0.000000}, - "log.initial.b.Density": {"value": 5429.316562, "unit": u.kg / u.m**3}, - "log.initial.b.HZLimitDryRunaway": {"value": 3.305089e10, "unit": u.m}, - "log.initial.b.HZLimRecVenus": {"value": 2.977014e10, "unit": u.m}, - "log.initial.b.HZLimRunaway": {"value": 3.916594e10, "unit": u.m}, - "log.initial.b.HZLimMoistGreenhouse": {"value": 3.939084e10, "unit": u.m}, - "log.initial.b.HZLimMaxGreenhouse": {"value": 7.572440e10, "unit": u.m}, - "log.initial.b.HZLimEarlyMars": {"value": 8.258537e10, "unit": u.m}, - "log.initial.b.Instellation": {"value": 6.076083e05, "unit": u.kg / u.sec**3}, - "log.initial.b.MeanMotion": {"value": 4.813397e-05, "unit": 1 / u.sec}, - "log.initial.b.OrbPeriod": {"value": 1.305354e05, "unit": u.sec}, - "log.initial.b.SemiMajorAxis": {"value": 1.727522e09, "unit": u.m}, - "log.initial.b.LXUVTot": {"value": -1.000000, "unit": u.kg / u.sec**3}, - "log.initial.b.SurfWaterMass": {"value": 10.000000, "unit": u.TO}, - "log.initial.b.EnvelopeMass": {"value": 0.000000, "unit": u.kg}, - "log.initial.b.OxygenMass": {"value": 0.000000, "unit": u.bar}, - "log.initial.b.RGLimit": {"value": 3.770574e10, "unit": u.m}, - "log.initial.b.XO": {"value": 0.333333}, - "log.initial.b.EtaO": {"value": 0.902643}, - "log.initial.b.PlanetRadius": {"value": 7.124338e06, "unit": u.m}, - "log.initial.b.OxygenMantleMass": {"value": 0.000000, "unit": u.kg}, - "log.initial.b.RadXUV": {"value": -1.000000, "unit": u.m}, - "log.initial.b.RadSolid": {"value": -1.000000, "unit": u.m}, - "log.initial.b.PresXUV": {"value": 5.000000}, - "log.initial.b.ScaleHeight": {"value": -1.000000, "unit": u.m}, - "log.initial.b.ThermTemp": {"value": 400.000000, "unit": u.K}, - "log.initial.b.AtmGasConst": {"value": 4124.000000}, - "log.initial.b.PresSurf": {"value": -1.000000, "unit": u.Pa}, - "log.initial.b.DEnvMassDt": {"value": 0.000000, "unit": u.kg / u.sec}, - "log.initial.b.FXUV": {"value": 607.608327, "unit": u.W / u.m**2}, - "log.initial.b.AtmXAbsEffH2O": {"value": 0.010000}, - "log.initial.b.RocheRadius": {"value": 4.290313e07, "unit": u.m}, - "log.initial.b.BondiRadius": {"value": 3.107839e08, "unit": u.m}, - "log.initial.b.HEscapeRegime": {"value": 8.000000}, - "log.initial.b.RRCriticalFlux": {"value": 41.454587, "unit": u.W / u.m**2}, - "log.initial.b.CrossoverMass": {"value": 2.575027e-25, "unit": u.kg}, - "log.initial.b.WaterEscapeRegime": {"value": 3.000000}, - "log.initial.b.FXUVCRITDRAG": {"value": 7.247839, "unit": u.W / u.m**2}, - "log.initial.b.HREFFLUX": { - "value": 1.178796e19, - "unit": 1 / (u.m**2 * u.sec**1), - }, - "log.initial.b.XO2": {"value": 0.000000}, - "log.initial.b.XH2O": {"value": 1.000000}, - "log.initial.b.HDiffFlux": { - "value": 1.395966e17, - "unit": 1 / (u.m**2 * u.sec**1), - }, - "log.initial.b.HRefODragMod": {"value": 0.121638}, - "log.initial.b.KTide": {"value": 0.753205}, - "log.initial.b.RGDuration": {"value": 0.00000e00, "unit": u.yr}, - "log.initial.e.Mass": {"value": 4.138725e24, "unit": u.kg}, - "log.initial.e.Radius": {"value": 5.880608e06, "unit": u.m}, - "log.initial.e.RadGyra": {"value": 0.500000}, - "log.initial.e.BodyType": {"value": 0.000000}, - "log.initial.e.Density": {"value": 4858.600773, "unit": u.kg / u.m**3}, - "log.initial.e.HZLimitDryRunaway": {"value": 3.305129e10, "unit": u.m}, - "log.initial.e.HZLimRecVenus": {"value": 2.977014e10, "unit": u.m}, - "log.initial.e.HZLimRunaway": {"value": 3.916594e10, "unit": u.m}, - "log.initial.e.HZLimMoistGreenhouse": {"value": 3.939084e10, "unit": u.m}, - "log.initial.e.HZLimMaxGreenhouse": {"value": 7.572440e10, "unit": u.m}, - "log.initial.e.HZLimEarlyMars": {"value": 8.258537e10, "unit": u.m}, - "log.initial.e.Instellation": {"value": 9.448996e04, "unit": u.kg / u.sec**3}, - "log.initial.e.MeanMotion": {"value": 1.191967e-05, "unit": 1 / u.sec}, - "log.initial.e.OrbPeriod": {"value": 5.271275e05, "unit": u.sec}, - "log.initial.e.SemiMajorAxis": {"value": 4.380718e09, "unit": u.m}, - "log.initial.e.LXUVTot": {"value": -1.000000, "unit": u.kg / u.sec**3}, - "log.initial.e.SurfWaterMass": {"value": 10.000000, "unit": u.TO}, - "log.initial.e.EnvelopeMass": {"value": 0.000000, "unit": u.kg}, - "log.initial.e.OxygenMass": {"value": 0.000000, "unit": u.bar}, - "log.initial.e.RGLimit": {"value": 3.832506e10, "unit": u.m}, - "log.initial.e.XO": {"value": 0.333333}, - "log.initial.e.EtaO": {"value": 0.776474}, - "log.initial.e.PlanetRadius": {"value": 5.880608e06, "unit": u.m}, - "log.initial.e.OxygenMantleMass": {"value": 0.000000, "unit": u.kg}, - "log.initial.e.RadXUV": {"value": -1.000000, "unit": u.m}, - "log.initial.e.RadSolid": {"value": -1.000000, "unit": u.m}, - "log.initial.e.PresXUV": {"value": 5.000000}, - "log.initial.e.ScaleHeight": {"value": -1.000000, "unit": u.m}, - "log.initial.e.ThermTemp": {"value": 400.000000, "unit": u.K}, - "log.initial.e.AtmGasConst": {"value": 4124.000000}, - "log.initial.e.PresSurf": {"value": -1.000000, "unit": u.Pa}, - "log.initial.e.DEnvMassDt": {"value": 0.000000, "unit": u.kg / u.sec}, - "log.initial.e.FXUV": {"value": 94.489956, "unit": u.W / u.m**2}, - "log.initial.e.AtmXAbsEffH2O": {"value": 0.011065}, - "log.initial.e.RocheRadius": {"value": 8.653872e07, "unit": u.m}, - "log.initial.e.BondiRadius": {"value": 9.821934e07, "unit": u.m}, - "log.initial.e.HEscapeRegime": {"value": 8.000000}, - "log.initial.e.RRCriticalFlux": {"value": 26.551159, "unit": u.W / u.m**2}, - "log.initial.e.CrossoverMass": {"value": 1.130931e-25, "unit": u.kg}, - "log.initial.e.WaterEscapeRegime": {"value": 3.000000}, - "log.initial.e.FXUVCRITDRAG": {"value": 2.949984, "unit": u.W / u.m**2}, - "log.initial.e.HREFFLUX": { - "value": 3.326851e18, - "unit": 1 / (u.m**2 * u.sec**1), - }, - "log.initial.e.XO2": {"value": 0.000000}, - "log.initial.e.XH2O": {"value": 1.000000}, - "log.initial.e.HDiffFlux": { - "value": 1.031142e17, - "unit": 1 / (u.m**2 * u.sec**1), - }, - "log.initial.e.HRefODragMod": {"value": 0.138662}, - "log.initial.e.KTide": {"value": 0.898227}, - "log.initial.e.RGDuration": {"value": 0.00000e00, "unit": u.yr}, - "log.final.system.Age": {"value": 3.001128e16, "unit": u.sec, "rtol": 1e-4}, - "log.final.system.Time": {"value": 2.997972e16, "unit": u.sec, "rtol": 1e-4}, - "log.final.system.TotAngMom": { - "value": 1.140769e42, - "unit": (u.kg * u.m**2) / u.sec, - "rtol": 1e-4, - }, - "log.final.system.TotEnergy": { - "value": -1.867690e39, - "unit": u.Joule, - "rtol": 1e-4, - }, - "log.final.system.PotEnergy": { - "value": -1.631379e40, - "unit": u.Joule, - "rtol": 1e-4, - }, - "log.final.system.KinEnergy": { - "value": 9.939890e35, - "unit": u.Joule, - "rtol": 1e-4, - }, - "log.final.system.DeltaTime": { - "value": 3.563133e08, - "unit": u.sec, - "rtol": 1e-4, - }, - "log.final.star.Mass": {"value": 1.789574e29, "unit": u.kg, "rtol": 1e-4}, - "log.final.star.Radius": {"value": 7.861410e07, "unit": u.m, "rtol": 1e-4}, - "log.final.star.RadGyra": {"value": 0.465100, "rtol": 1e-4}, - "log.final.star.RotAngMom": { - "value": 2.180858e40, - "unit": (u.kg * u.m**2) / u.sec, - "rtol": 1e-4, - }, - "log.final.star.RotVel": { - "value": 7166.128057, - "unit": u.m / u.sec, - "rtol": 1e-4, - }, - "log.final.star.BodyType": {"value": 0.000000, "rtol": 1e-4}, - "log.final.star.RotRate": { - "value": 9.115576e-05, - "unit": 1 / u.sec, - "rtol": 1e-4, - }, - "log.final.star.RotPer": {"value": 6.892801e04, "unit": u.sec, "rtol": 1e-4}, - "log.final.star.Density": { - "value": 8.793460e04, - "unit": u.kg / u.m**3, - "rtol": 1e-4, - }, - "log.final.star.HZLimitDryRunaway": { - "value": 3.236260e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.star.HZLimRecVenus": { - "value": 2.926994e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.star.HZLimRunaway": { - "value": 3.845733e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.star.HZLimMoistGreenhouse": { - "value": 3.872905e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.star.HZLimMaxGreenhouse": { - "value": 7.519099e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.star.HZLimEarlyMars": { - "value": 8.200577e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.star.Instellation": { - "value": -1.000000, - "unit": u.kg / u.sec**3, - "rtol": 1e-4, - }, - "log.final.star.CriticalSemiMajorAxis": { - "value": -1.000000, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.star.LXUVTot": {"value": 5.680615e-07, "unit": u.LSUN, "rtol": 1e-4}, - "log.final.star.LostEnergy": { - "value": 1.444514e40, - "unit": u.Joule, - "rtol": 1e-4, - }, - "log.final.star.LostAngMom": { - "value": 1.116832e42, - "unit": (u.kg * u.m**2) / u.sec, - "rtol": 1e-4, - }, - "log.final.star.Luminosity": {"value": 0.000568, "unit": u.LSUN, "rtol": 1e-4}, - "log.final.star.LXUVStellar": {"value": 2.184764e20, "unit": u.W, "rtol": 1e-4}, - "log.final.star.Temperature": {"value": 2649.348516, "unit": u.K, "rtol": 1e-4}, - "log.final.star.LXUVFrac": {"value": 0.001000, "rtol": 1e-4}, - "log.final.star.RossbyNumber": {"value": 0.009861, "rtol": 1e-4}, - "log.final.star.DRotPerDtStellar": {"value": 1.440802e-12, "rtol": 1e-4}, - "log.final.b.Mass": {"value": 8.223700e24, "unit": u.kg, "rtol": 1e-4}, - "log.final.b.Radius": {"value": 7.124338e06, "unit": u.m, "rtol": 1e-4}, - "log.final.b.RadGyra": {"value": 0.500000, "rtol": 1e-4}, - "log.final.b.BodyType": {"value": 0.000000, "rtol": 1e-4}, - "log.final.b.Density": { - "value": 5429.316562, - "unit": u.kg / u.m**3, - "rtol": 1e-4, - }, - "log.final.b.HZLimitDryRunaway": { - "value": 3.236286e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.b.HZLimRecVenus": {"value": 2.926994e09, "unit": u.m, "rtol": 1e-4}, - "log.final.b.HZLimRunaway": {"value": 3.845733e09, "unit": u.m, "rtol": 1e-4}, - "log.final.b.HZLimMoistGreenhouse": { - "value": 3.872905e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.b.HZLimMaxGreenhouse": { - "value": 7.519099e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.b.HZLimEarlyMars": {"value": 8.200577e09, "unit": u.m, "rtol": 1e-4}, - "log.final.b.Instellation": { - "value": 5825.739570, - "unit": u.kg / u.sec**3, - "rtol": 1e-4, - }, - "log.final.b.MeanMotion": { - "value": 4.813397e-05, - "unit": 1 / u.sec, - "rtol": 1e-4, - }, - "log.final.b.OrbPeriod": {"value": 1.305354e05, "unit": u.sec, "rtol": 1e-4}, - "log.final.b.SemiMajorAxis": {"value": 1.727522e09, "unit": u.m, "rtol": 1e-4}, - "log.final.b.LXUVTot": { - "value": -1.000000, - "unit": u.kg / u.sec**3, - "rtol": 1e-4, - }, - "log.final.b.SurfWaterMass": {"value": 0.000000, "unit": u.TO, "rtol": 1e-4}, - "log.final.b.EnvelopeMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, - "log.final.b.OxygenMass": {"value": 1146.046500, "unit": u.bar, "rtol": 1e-4}, - "log.final.b.RGLimit": {"value": 3.704009e09, "unit": u.m, "rtol": 1e-4}, - "log.final.b.XO": {"value": 1.000000, "rtol": 1e-4}, - "log.final.b.EtaO": {"value": 0.000000, "rtol": 1e-4}, - "log.final.b.PlanetRadius": {"value": 7.124338e06, "unit": u.m, "rtol": 1e-4}, - "log.final.b.OxygenMantleMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, - "log.final.b.RadXUV": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, - "log.final.b.RadSolid": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, - "log.final.b.PresXUV": {"value": 5.000000, "rtol": 1e-4}, - "log.final.b.ScaleHeight": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, - "log.final.b.ThermTemp": {"value": 400.000000, "unit": u.K, "rtol": 1e-4}, - "log.final.b.AtmGasConst": {"value": 4124.000000, "rtol": 1e-4}, - "log.final.b.PresSurf": {"value": -1.000000, "unit": u.Pa, "rtol": 1e-4}, - "log.final.b.DEnvMassDt": { - "value": 0.000000, - "unit": u.kg / u.sec, - "rtol": 1e-4, - }, - "log.final.b.FXUV": {"value": 5.825740, "unit": u.W / u.m**2, "rtol": 1e-4}, - "log.final.b.AtmXAbsEffH2O": {"value": 0.041374, "rtol": 1e-4}, - "log.final.b.RocheRadius": {"value": 4.290313e07, "unit": u.m, "rtol": 1e-4}, - "log.final.b.BondiRadius": {"value": 9.942294e08, "unit": u.m, "rtol": 1e-4}, - "log.final.b.HEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, - "log.final.b.RRCriticalFlux": { - "value": 41.454587, - "unit": u.W / u.m**2, - "rtol": 1e-4, - }, - "log.final.b.CrossoverMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, - "log.final.b.WaterEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, - "log.final.b.FXUVCRITDRAG": { - "value": 0.000000, - "unit": u.W / u.m**2, - "rtol": 1e-4, - }, - "log.final.b.HREFFLUX": { - "value": 4.676158e17, - "unit": 1 / (u.m**2 * u.sec**1), - "rtol": 1e-4, - }, - "log.final.b.XO2": {"value": 1.000000, "rtol": 1e-4}, - "log.final.b.XH2O": {"value": 0.000000, "rtol": 1e-4}, - "log.final.b.HDiffFlux": { - "value": 0.000000, - "unit": 1 / (u.m**2 * u.sec**1), - "rtol": 1e-4, - }, - "log.final.b.HRefODragMod": {"value": 0.000000, "rtol": 1e-4}, - "log.final.b.KTide": {"value": 0.753205, "rtol": 1e-4}, - "log.final.b.RGDuration": {"value": 0.00000e00, "unit": u.yr, "rtol": 1e-4}, - "log.final.e.Mass": {"value": 4.138725e24, "unit": u.kg, "rtol": 1e-4}, - "log.final.e.Radius": {"value": 5.880608e06, "unit": u.m, "rtol": 1e-4}, - "log.final.e.RadGyra": {"value": 0.500000, "rtol": 1e-4}, - "log.final.e.BodyType": {"value": 0.000000, "rtol": 1e-4}, - "log.final.e.Density": { - "value": 4858.600773, - "unit": u.kg / u.m**3, - "rtol": 1e-4, - }, - "log.final.e.HZLimitDryRunaway": { - "value": 3.236325e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.e.HZLimRecVenus": {"value": 2.926994e09, "unit": u.m, "rtol": 1e-4}, - "log.final.e.HZLimRunaway": {"value": 3.845733e09, "unit": u.m, "rtol": 1e-4}, - "log.final.e.HZLimMoistGreenhouse": { - "value": 3.872905e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.e.HZLimMaxGreenhouse": { - "value": 7.519099e09, - "unit": u.m, - "rtol": 1e-4, - }, - "log.final.e.HZLimEarlyMars": {"value": 8.200577e09, "unit": u.m, "rtol": 1e-4}, - "log.final.e.Instellation": { - "value": 905.968284, - "unit": u.kg / u.sec**3, - "rtol": 1e-4, - }, - "log.final.e.MeanMotion": { - "value": 1.191967e-05, - "unit": 1 / u.sec, - "rtol": 1e-4, - }, - "log.final.e.OrbPeriod": {"value": 5.271275e05, "unit": u.sec, "rtol": 1e-4}, - "log.final.e.SemiMajorAxis": {"value": 4.380718e09, "unit": u.m, "rtol": 1e-4}, - "log.final.e.LXUVTot": { - "value": -1.000000, - "unit": u.kg / u.sec**3, - "rtol": 1e-4, - }, - "log.final.e.SurfWaterMass": {"value": 3.053381, "unit": u.TO, "rtol": 1e-4}, - "log.final.e.EnvelopeMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, - "log.final.e.OxygenMass": {"value": 1031.237269, "unit": u.bar, "rtol": 1e-4}, - "log.final.e.RGLimit": {"value": 3.765016e09, "unit": u.m, "rtol": 1e-4}, - "log.final.e.XO": {"value": 0.554279, "rtol": 1e-4}, - "log.final.e.EtaO": {"value": 0.000000, "rtol": 1e-4}, - "log.final.e.PlanetRadius": {"value": 5.880608e06, "unit": u.m, "rtol": 1e-4}, - "log.final.e.OxygenMantleMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, - "log.final.e.RadXUV": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, - "log.final.e.RadSolid": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, - "log.final.e.PresXUV": {"value": 5.000000, "rtol": 1e-4}, - "log.final.e.ScaleHeight": {"value": -1.000000, "unit": u.m, "rtol": 1e-4}, - "log.final.e.ThermTemp": {"value": 400.000000, "unit": u.K, "rtol": 1e-4}, - "log.final.e.AtmGasConst": {"value": 4124.000000, "rtol": 1e-4}, - "log.final.e.PresSurf": {"value": -1.000000, "unit": u.Pa, "rtol": 1e-4}, - "log.final.e.DEnvMassDt": { - "value": 0.000000, - "unit": u.kg / u.sec, - "rtol": 1e-4, - }, - "log.final.e.FXUV": {"value": 0.905968, "unit": u.W / u.m**2, "rtol": 1e-4}, - "log.final.e.AtmXAbsEffH2O": {"value": 0.073282, "rtol": 1e-4}, - "log.final.e.RocheRadius": {"value": 8.653872e07, "unit": u.m, "rtol": 1e-4}, - "log.final.e.BondiRadius": {"value": 3.142137e08, "unit": u.m, "rtol": 1e-4}, - "log.final.e.HEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, - "log.final.e.RRCriticalFlux": { - "value": 26.551159, - "unit": u.W / u.m**2, - "rtol": 1e-4, - }, - "log.final.e.CrossoverMass": {"value": 0.000000, "unit": u.kg, "rtol": 1e-4}, - "log.final.e.WaterEscapeRegime": {"value": 8.000000, "rtol": 1e-4}, - "log.final.e.FXUVCRITDRAG": { - "value": 0.297806, - "unit": u.W / u.m**2, - "rtol": 1e-4, - }, - "log.final.e.HREFFLUX": { - "value": 2.112521e17, - "unit": 1 / (u.m**2 * u.sec**1), - "rtol": 1e-4, - }, - "log.final.e.XO2": {"value": 0.426459, "rtol": 1e-4}, - "log.final.e.XH2O": {"value": 0.573541, "rtol": 1e-4}, - "log.final.e.HDiffFlux": { - "value": 6.894030e16, - "unit": 1 / (u.m**2 * u.sec**1), - "rtol": 1e-4, - }, - "log.final.e.HRefODragMod": {"value": 0.003131, "rtol": 1e-4}, - "log.final.e.KTide": {"value": 0.898227, "rtol": 1e-4}, - "log.final.e.RGDuration": {"value": 3.80353e08, "unit": u.yr, "rtol": 1e-4}, - } -) -class TestLS16_AtmEsc_WaterLossModel(Benchmark): - pass diff --git a/tests/AtmescStellar/DiffLimWaterEscape/vpl.in b/tests/AtmescStellar/DiffLimWaterEscape/vpl.in index 434a27fe5..6a28b602b 100755 --- a/tests/AtmescStellar/DiffLimWaterEscape/vpl.in +++ b/tests/AtmescStellar/DiffLimWaterEscape/vpl.in @@ -14,4 +14,4 @@ bDoForward 1 bVarDt 1 dEta 0.1 dStopTime 0.95e9 -dOutputTime 1e6 +dOutputTime 0.95e9 From 02ab9d9c573b3d7e2e5d11fa59e44c99e0f163d5 Mon Sep 17 00:00:00 2001 From: RoryBarnes Date: Tue, 2 Jan 2024 13:18:30 -0800 Subject: [PATCH 2/2] Updated Tests Readme message. --- tests/README.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/README.rst b/tests/README.rst index 25919c4cb..caec56a9f 100644 --- a/tests/README.rst +++ b/tests/README.rst @@ -12,13 +12,16 @@ but you must have `vplot `_ **DO NOT MODIFY THESE FILES UNLESS YOU KNOW WHAT YOU ARE DOING!!** -Every time somebody issues a pull request to the master branch, a `Travis CI `_ +Every time somebody issues a pull request to the master branch, a `GitHub Actions `_ check is automatically triggered. Briefly, this check compiles and runs **VPLanet** on all the subdirectories listed here and compares the results to the expected behavior. This quality control ensures that as changes are made to the code base, -the outcomes of the simulations match expectations. Each check here corresponds -to a figure in the `examples <../examples>`_ directory, so if the tests are passing, -then all figures should be reproduced by **VPLanet**. +the outcomes of the simulations match expectations. + +======= + +**NOTE**: If adding a test that uses the STELLAR module, you must set dOutputTime to equal +dStopTime in order for portability across Macs and Linux. =======