Commit Graph

  • 4396ea8dd9 Update .readthedocs.yaml alphaparrot 2023-05-18 00:23:12 -04:00
  • da61583bfc Create .readthedocs.yaml alphaparrot 2023-05-18 00:20:53 -04:00
  • 59656e9249 Merge pull request #3 from evelynmacdonald/master alphaparrot 2023-05-15 00:12:12 -04:00
  • 028f7b8381 Updating versions and docs, and adding ability to concatenate output variables using the inspect function and to preserve the time axis when computing spatial averages with gcmt.spatialmath Adiv Paradise 2023-05-15 00:09:16 -04:00
  • e3a0e908a8 Fixed bugs Adiv Paradise 2023-05-14 22:12:08 -04:00
  • 7a7e457c56 Fixed typo Adiv Paradise 2023-05-14 20:52:14 -04:00
  • f8221066b7 Added floor for denominator in newton-raphson iterator Adiv Paradise 2023-05-14 19:49:41 -04:00
  • bfcd94702d Bugfix Adiv Paradise 2023-05-14 19:36:02 -04:00
  • 51c693f83a Added fractional days to diagnostic output Adiv Paradise 2023-05-14 19:32:40 -04:00
  • ec3fe978e1 Bugfix Adiv Paradise 2023-05-14 19:09:11 -04:00
  • 51192d9293 Added ability to output and postprocessor scalar and columnar variables, and added outputs for true anomaly, solar declination, solar ecliptic longitude, and distance modulus Adiv Paradise 2023-05-14 19:03:33 -04:00
  • ce2a703345 Fixed gen_orb_decl routine; should have the correct math now for declination and longitude Adiv Paradise 2023-05-14 14:54:02 -04:00
  • dad3104d7d Hopefully fixed the bug in finalize() where the code looks for snapshot metadata in the snapshot folder instead of the working directory maureenjcohen 2023-05-06 07:48:35 +01:00
  • e1913ea642 Fixed tiny bug in definition of backscatter ratio. It's qback/qscat, not qback/qext. maureenjcohen 2023-05-04 23:14:10 +01:00
  • 72fbb7813b Bugfixes to tlstream evelynmacdonald 2023-05-04 16:49:33 -04:00
  • b1483b3a46 Modified aerosole rad code to be more similar to Stephens 1978, using backscatter ratio instead of asymmetry factor maureenjcohen 2023-05-04 19:16:59 +01:00
  • 3455f9b2d3 Committing switch settings for nsela and nqspec maureenjcohen 2023-05-04 19:16:19 +01:00
  • a759b1f28b Fixed error where meananomaly0 was sent to Fortran even if it's None Adiv Paradise 2023-04-30 21:04:44 -04:00
  • a68ee4d314 Bugfix Adiv Paradise 2023-04-30 20:51:12 -04:00
  • 652acc4c0c Fixed argument-order bug noticed by robmod Adiv Paradise 2023-04-30 20:25:37 -04:00
  • 4ed79c3b34 Fixed tiny bug in mean free path calculation of aerocore maureenjcohen 2023-04-28 18:28:58 +01:00
  • 81aa630d81 Fixed floating point errors in source. Source now based on SW flux rather than cosine of solar zenith angle for l_aerorad = 1 maureenjcohen 2023-04-28 15:21:57 +01:00
  • b69cde89c6 Restored where losun block which now magically works as long as I take out the write statements. Code running fast. maureenjcohen 2023-04-28 15:19:59 +01:00
  • e0c140701e Commented out the import pyfft lines that are causing an error when trying to postprocess maureenjcohen 2023-04-28 10:04:30 +01:00
  • 034d57b673 Added quickprocess script to manually postprocess ou maureenjcohen 2023-04-28 10:03:57 +01:00
  • c8737db6b5 Added diagnostic printout settings to rad_run maureenjcohen 2023-04-26 21:55:38 +01:00
  • 4c95da0804 Fixed rank mismatches in radmod maureenjcohen 2023-04-26 19:07:14 +01:00
  • bb84e8ef58 Slight tweak to rad_run maureenjcohen 2023-04-26 19:02:42 +01:00
  • 415d1197b5 Added stellar spectra and haze data for study maureenjcohen 2023-04-26 19:02:29 +01:00
  • 68bf88d740 Committing bugfixes and code blocks to write out diagnostics for aerosols maureenjcohen 2023-04-26 18:59:41 +01:00
  • 6a62629c01 Added script for test runs rad_run.py to repo maureenjcohen 2023-04-26 18:37:18 +01:00
  • 3ced10d3ad Fixed bug - radini was reading aerosol data if l_aerorad was set to 0 instead of 1! maureenjcohen 2023-04-26 12:48:19 +01:00
  • eb7eac36d8 Commiting bug fixes for Python API. As of this commit, code works from a technical perspective, but model is unstable maureenjcohen 2023-04-26 12:37:38 +01:00
  • 3a3975d17d Fixed bug of missing parenthesis, code now compiling maureenjcohen 2023-04-25 17:50:14 +01:00
  • 3f5ae9d3d7 Added aerosol R and T for direct/diffuse and for both bands to total layer R and T by considering aerosol effects significant in ONLY the clear sky column (1-dcc) maureenjcohen 2023-04-25 17:47:41 +01:00
  • 321db0ec97 Free of compiler errors as of this commit maureenjcohen 2023-04-25 17:44:09 +01:00
  • 5eea556b7a Removed circular dependency between radmod and aeromod maureenjcohen 2023-04-25 11:32:42 +01:00
  • 1240252eb4 Removed l_aerorad from pumamad. It is set in aeromod and then read out from aero_namelist maureenjcohen 2023-04-25 10:30:32 +01:00
  • 6f4234de38 Fixed type dwfl -> dswfl maureenjcohen 2023-04-25 10:10:28 +01:00
  • f47638d636 Added kwarg to input path to file containing aerosol optical constants data to configure(). The filename is written to aero_namelist, which is then read by aero_ini. If the logical l_aerorad is set, aero_ini will use readdat to read out the optical constants in the dat file and store them in variables in the model maureenjcohen 2023-04-24 18:13:07 +01:00
  • b5c1295831 Version 1 of the aerosol radiative transfer code in full. Yet to be compiled. maureenjcohen 2023-04-24 18:11:41 +01:00
  • e50f39d4bb Added pCH4 as a configuration option for use in calculation of mmw and gascon of atmosphere maureenjcohen 2023-04-24 17:04:52 +01:00
  • c2f4134012 Specified that numrhos is an inout array like mmr. Both are 4-D maureenjcohen 2023-04-24 12:40:19 +01:00
  • 744b4903a7 OK, undid adding numrho 3-D number density and instead output mmr2n straight to numrhos(:,:,:,ic). An extra intermediate 3-D array isn't needed since we aren't doing any calculations on number density within the loop maureenjcohen 2023-04-24 12:38:58 +01:00
  • f57619ae39 Added numrho 3-D number density array, analogous to daero 3-D mass mixing ratio array and dq 3-D specific humidity array maureenjcohen 2023-04-24 12:33:04 +01:00
  • efe54dbb55 Added undebugged and untested calculations to l_aerorad code block - working on debugging/testing in a standalone program in haze.f90 maureenjcohen 2023-04-21 17:08:14 +01:00
  • 807555164d Added, debugged, and tested two-stream multiscattering approximation assuming reflected light (fixed cosine of solar zenith angle) maureenjcohen 2023-04-21 17:06:05 +01:00
  • cd1bd1cbc0 Changed imported properties. Now have single scattering albedo, asymmetry factor, aerosol optical depth, and layer height thickness maureenjcohen 2023-04-20 18:22:51 +01:00
  • 3b6899e5f5 Eccentricity limits are now only considered if not using general Keplerian orbits Adiv Paradise 2023-04-16 19:21:10 -04:00
  • be66051185 Added MPI broadcasts for new flags Adiv Paradise 2023-04-16 19:07:46 -04:00
  • 3e9dad5954 Added orbital code for generic keplerian orbits, including with high eccentricity. Untested, use at own risk. Will test soon. Adiv Paradise 2023-04-16 19:03:36 -04:00
  • 52d4944a27 Added logical controlling aerosol radiative transfer (l_aerorad) to init maureenjcohen 2023-04-14 17:41:53 +01:00
  • c279ea6c95 Added a block for aerosol radiative effects. As of this commit, the code reads in a dat file containing 8 optical constants (4 for each SW band), calculates the layer height thickness, and calculates the transmissivity due to absorption only (qext-qscat). maureenjcohen 2023-04-14 17:01:02 +01:00
  • 47a4afe382 Added missing thens to if/then statements using l_aerorad maureenjcohen 2023-04-14 16:08:29 +01:00
  • 44eb371d5f Imported l_aerorad from aeromod and created an aerosol radiative transfer block in radmod maureenjcohen 2023-04-14 16:06:02 +01:00
  • a73e7b7ea2 Added a function that converts mass mixing ratio to number density mmr2n. The corresponding arrays in plasimmod are nrho and numrhos. Added get/put/scatter calls for these arrays and also added them to the output. nrho has been added to outmod and the name and unit to pyburn maureenjcohen 2023-04-14 15:53:50 +01:00
  • eb0b7099e5 Added transmissivity due to absorption maureenjcohen 2023-04-13 16:27:05 +01:00
  • eb2f20b08c Added number density and transmissivity calculation to tester haze program, adjusted generate_data to be somewhat more realistic, compiled and ran maureenjcohen 2023-04-13 14:57:37 +01:00
  • 01aefd7f0d Added condition that if l_aerorad = 1, the source is proportional to the SW flux as a fraction of the max SW flux maureenjcohen 2023-04-13 12:21:24 +01:00
  • e67d1b8969 Added missing endif to aeromod maureenjcohen 2023-04-13 12:17:51 +01:00
  • c8cbaec9a0 Added call to import SW flux from main program into aeromod/aerocore for use in defining the photochemical haze source; set l_aerorad to 0 by default (to be overriden by aero_namelist maureenjcohen 2023-04-13 12:13:17 +01:00
  • 4f94bf505e Added l_aerorad=1 to plasimmod to control radiative transfer blocks for aerosols maureenjcohen 2023-04-13 12:01:39 +01:00
  • 8f4f25e535 Moved aerosol transport block to be before radstep/just after Semi-LA tracer transport block maureenjcohen 2023-04-13 11:41:12 +01:00
  • 97bcd33585 Fix for bug related to previous postprocess bug alphaparrot 2023-04-12 21:55:38 -04:00
  • 2f2fbc8b75 Fixed typo alphaparrot 2023-04-12 13:38:43 -04:00
  • 4b38a38247 Writing basic functions needed for haze radiative transfer maureenjcohen 2023-04-12 17:13:03 +01:00
  • be51131228 Fixed multiple variables specification in postprocessor call alphaparrot 2023-04-11 23:01:40 -04:00
  • 71da981a34 Merge branch 'dust' of github.com:maureenjcohen/ExoPlaSim into dust maureenjcohen 2023-04-05 17:56:32 +01:00
  • 4cea34c369 Fixed bug in starspec arg with missing .dat endings/incorrect filenames maureenjcohen 2023-04-05 17:55:50 +01:00
  • 96d213ff80 Fixed bug when including starspec file in configure method: added .dat to low-res file and removed [:-4] from high-res file maureenjcohen 2023-04-05 17:50:21 +01:00
  • cc871c6136 Uncommented the commented out sections maureenjcohen 2023-03-31 14:24:51 +01:00
  • 7019ee21cd Uncommented the commented out sections maureenjcohen 2023-03-31 14:12:49 +01:00
  • 382c84ce89 Changed default compile ncpus to 8 maureenjcohen 2023-03-31 14:08:38 +01:00
  • 6d885aba80 Added l_bulk/aerobulk as a property of a model object and to configuration file maureenjcohen 2023-03-31 14:07:22 +01:00
  • 2f919250f3 Commit current version of aerosol modules maureenjcohen 2023-03-30 16:37:04 +01:00
  • 06dfcff694 Fixed bug that causes crash during postprocessing if you have set snapshots to None in configure by adding an if self.snapshots condition before postprocess calls maureenjcohen 2023-03-20 18:11:55 +00:00
  • 147ee213b7 Bugfixes: geomspace kw arg num requires an integer as input; moved wvref.txt to same directory as script maureenjcohen 2023-03-17 18:20:59 +00:00
  • bff8613571 Added l_bulk to aero_namelist maureenjcohen 2023-03-17 16:38:18 +00:00
  • d7c6b8146d Added switch for bulk gas for aerosol module to Python API. Options are 1 (N2) or 2 (H2) maureenjcohen 2023-03-17 16:37:39 +00:00
  • 6883dde5e9 Added a logical to switch atmosphere to bulk H2 and the relevant values for calculations of viscosity, Cunningham factor, and density maureenjcohen 2023-03-15 18:02:41 +00:00
  • e556d33ea3 Commented out references to exoplasim so I can import pyburn functions in the Python interpreter within the package directory. Need to undo this later. maureenjcohen 2023-03-14 15:56:20 +00:00
  • fd1b13e49e Changed default compiler settings to debug=1 and nyears=1 maureenjcohen 2023-03-14 14:13:48 +00:00
  • e8901bcb42 Bugfixes related to stellar spectral file classification in the configure() function and error-handling for when a relative path is provided Adiv Paradise 2022-10-02 11:21:56 -04:00
  • c03948c6da Pushing updates Adiv Paradise 2022-09-12 09:24:45 -05:00
  • d7d8d676ed Bugfixes to makestellarspec and pyburn and added missing wvref.txt for makestellarspec Adiv Paradise 2022-09-12 09:23:58 -05:00
  • 238d672262 Changed default ncpus to 8 Maureen Cohen 2022-06-21 09:27:04 +01:00
  • 35f77258e1 Optimised plasim_namelist settings Maureen Cohen 2022-06-20 22:46:29 +01:00
  • 76beed4cb0 Adjusted mmr array read-ins to avoid reading into other arrays with (:,jlev) fixed (from (1,jlev)) Maureen Cohen 2022-06-20 22:45:37 +01:00
  • 551eedb573 Optimised configuration settings, added haze inputs to exportcfg() Maureen Cohen 2022-06-20 22:45:00 +01:00
  • f5d7ef4b65 Switched of snow albedo arrays to see if sufficient hack to make outmod work Maureen Cohen 2022-06-20 16:39:17 +01:00
  • 4f75ffe061 Moved gmu0 and dls source alls outside aerocore to aero_main before the call to aerocore. Turned off broadcasting of aerosol parameters/logicals as these caused a message truncation error. Set up logicals so aerosol module can be run while nsela is off and q is in spectral mode. Trying to fix outmod hanging/message truncation but not solved it yet. Maureen Cohen 2022-06-18 09:39:52 +01:00
  • f4bd47f67b Removed import of exoplasim.pyfft for distribution Maureen Cohen 2022-06-06 18:03:14 +01:00
  • 6731e72095 Turn off debug switch in aeromod and tracermod to save disc space Maureen Cohen 2022-06-06 17:59:43 +01:00
  • 67f7926804 Added mmr to snapshotgp Maureen Cohen 2022-06-06 17:58:06 +01:00
  • 9cf16e5d5f Switched to low IO mode in API configure function Maureen Cohen 2022-06-06 11:46:15 +01:00
  • 132f53da25 Added low I/O mode for mmr Maureen Cohen 2022-06-06 11:39:30 +01:00
  • fcd1739f43 Committing minor changes to default settings Maureen Cohen 2022-06-06 11:07:14 +01:00
  • 6306dd592b Revert "Revert "Added aero_namelist options to Model.configure"" Maureen Cohen 2022-06-06 11:01:41 +01:00
  • f9cd5bc0b9 Committing where changes to aerocore Maureen Cohen 2022-06-05 07:52:30 +01:00
  • fe537908a9 Changed where statements in aerocore Maureen Cohen 2022-06-04 22:54:44 +01:00