-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into shallow_and_baro_clean_gfort
- Loading branch information
Showing
75 changed files
with
8,777 additions
and
1,693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: isca_env | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- dask=2024.1.0 | ||
- f90nml=1.4.4 | ||
- fortran-compiler=1.7.0 | ||
- ipykernel=6.29.0 | ||
- jinja2=3.1.3 | ||
- libgfortran=3.0.0 | ||
- netcdf-fortran=4.6.1 | ||
- numpy=1.26.3 | ||
- openmpi=4.1.6 | ||
- pandas=2.2.0 | ||
- python=3.12.1 | ||
- pip=23.3.2 | ||
- pytest=7.4.4 | ||
- sh=2.0.6 | ||
- tqdm=4.66.1 | ||
- xarray=2024.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Isca Beginner's Guide | ||
==================== | ||
|
||
Below is a list of reading and activites that will help you get comfortable using Isca. Be assured that your supervisor/tutor will not expect you to be fluent with this when you start using Isca, but it will help to have an idea of what to expect when you start running the model. | ||
Below is a list of reading and activities that will help you get comfortable using Isca. Be assured that your supervisor/tutor will not expect you to be fluent with this when you start using Isca, but it will help to have an idea of what to expect when you start running the model. | ||
|
||
This document is essentially a suggestion of signposts. With this kind of work, self-study and initiative is very important. It is up to you to go and research the topics until you feel comfortable. | ||
|
||
|
@@ -112,7 +112,7 @@ Now you have made plots – or indeed any file you want to transfer between the | |
|
||
*SFTP (SSH File Transfer Protocol)* is one, it will work on all operating systems and is the easiest for windows. One way of using SFTP is with an *SFTP client*, many are available. One of them is `Cyberduck <https://cyberduck.io>`_. It will require setting up but it is fairly straight forward. These clients tend to have a GUI so you can just drag and drop the files you want to transfer. It is also possible to view and transfer files using the native file browser if you're using Linux or macOS, using their built-in functions to connect via SFTP. | ||
|
||
Other option is to use a command line function, for example ``scp``. This is a secure file copy protol, which uses SSH. The usage is simple, for example on the computer you want to transfer the file to, type: | ||
Other option is to use a command line function, for example ``scp``. This is a secure file copy protocol, which uses SSH. The usage is simple, for example on the computer you want to transfer the file to, type: | ||
|
||
``scp [email protected]:/path_to_file/file.png /path_to_destination/`` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Barotropic Vorticity and Shallow Water Equation Solvers | ||
======================================================= | ||
We would like to direct people interested into these equation solvers in Isca to the original documentation written by GFDL. | ||
|
||
Barotropic Vorticty Equation | ||
---------------------------- | ||
|
||
`Here <https://www.gfdl.noaa.gov/wp-content/uploads/files/user_files/pjp/barotropic.pdf>`_ | ||
|
||
Shallow Water Equation | ||
---------------------- | ||
|
||
`Here <https://www.gfdl.noaa.gov/wp-content/uploads/files/user_files/pjp/shallow.pdf>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,6 +131,7 @@ Contents | |
changelog | ||
contributing | ||
testing/index.rst | ||
bve_swe_equations | ||
references | ||
remote_access | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
Damping Driver | ||
====================== | ||
|
||
Summary | ||
------- | ||
The ``damping_driver`` module is called by the ``idealized_moist_phys`` module by setting ``do_damping`` to true. It controls the upper level momentum damping in Isca. It controls 4 optional functions: | ||
|
||
1. **Rayleigh friction** which acts on levels ``1`` to ``kbot``. This function is located in ``damping_driver`` itself. | ||
2. A (orographic) **mountain gravity wave drag** module (``cg_drag``) may be called. | ||
3. A (non orographic) **convective gravity wave drag** module (``mg_drag``) may be called. | ||
4. A **time independent drag** may be called. This function is located in ``damping_driver`` itself. | ||
|
||
Another module (``topo_drag``) is referenced in the code, but is not available in Isca at present. | ||
|
||
It is located at: ``Isca/src/atmos_param/damping_driver/damping_driver.f90`` | ||
|
||
Namelist options | ||
---------------- | ||
``trayfric`` - (for Rayleigh friction) damping time in seconds for Rayleigh damping momentum in the top model layers, the number of which is specified by ``nlev_rayfric`` (non namelist parameter, automatically determined in code). If ``trayfric`` < 0 then time in days. Default 0. | ||
|
||
``do_rayleigh`` - On/Off switch for doing Rayleigh friction. Default False | ||
|
||
``sponge_pbottom`` - (for Rayleigh friction) used to calculate ``nlev_rayfric``, it specifies the bottom level where the Rayleigh friction starts. Default 50Pa. | ||
|
||
``do_cg_drag`` - On/Off switch for doing mountain gravity wave drag. Default False. | ||
|
||
``do_topo_drag`` - On/Off switch for doing the topo_drag module which is currently unavailable. Default False. | ||
|
||
``do_mg_drag`` - On/Off switch for doing convective gravity wave drag. Default False. | ||
|
||
``do_conserve_energy`` - (for Rayleigh friction) On/Off switch for also calculating the temperature tendency (if True). Default False. | ||
|
||
``do_const_drag`` - On/Off switch for doing the constant drag. Default False. | ||
|
||
``const_drag_amp`` - (for constant drag) Parameter for adjusting drag. Default 3.e-04. | ||
|
||
``const_drag_off`` - (for constant drag) Parameter for adjusting drag. Default 0. | ||
|
||
For a typical idealized Earth set up there is no parameterised gravity wave drag and Rayleigh damping is only needed to keep the model stable. The namelist would then look like:: | ||
``'do_rayleigh': True, | ||
'trayfric': -0.25, | ||
'sponge_pbottom': 50., | ||
'do_conserve_energy': True`` | ||
|
||
Diagnostics | ||
----------- | ||
There are many diagnostics either in or passed by damping driver. | ||
|
||
**Rayleigh friction:** | ||
|
||
+-----------------------+------------------------------------+------------------------+ | ||
| Name | Description | Units | | ||
| | | | | ||
+=======================+====================================+========================+ | ||
| ``udt_rdamp`` | u wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``vdt_rdamp`` | v wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``tdt_diss_rdamp`` | dissipative heating |:math:`K s^{-1}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``diss_heat_rdamp`` | integrated dissipative heating |:math:`W m^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
|
||
**Mountain GWD:** | ||
|
||
+-----------------------+------------------------------------+------------------------+ | ||
| Name | Description | Units | | ||
| | | | | ||
+=======================+====================================+========================+ | ||
| ``udt_gwd`` | u wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``vdt_gwd`` | v wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``taubx`` | x base flux |:math:`kg m^{-1} s^{-2}`| | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``tauby`` | y base flux |:math:`kg m^{-1} s^{-2}`| | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``taus`` | saturation flux |:math:`kg m^{-1} s^{-2}`| | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``tdt_diss_gwd`` | dissipative heating |:math:`K s^{-1}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``diss_heat_gwd`` | integrated dissipative heating |:math:`W s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``sgsmtn`` | sub-grid scale topography variance |:math:`m` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
|
||
**Convective GWD:** | ||
|
||
+-----------------------+------------------------------------+------------------------+ | ||
| Name | Description | Units | | ||
| | | | | ||
+=======================+====================================+========================+ | ||
| ``udt_cgwd`` | u wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
|
||
**Constant Drag:** | ||
|
||
+-----------------------+------------------------------------+------------------------+ | ||
| Name | Description | Units | | ||
| | | | | ||
+=======================+====================================+========================+ | ||
| ``udt_cnstd`` | u wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
|
||
**topo_drag:** | ||
|
||
Note: These are not currently available | ||
|
||
+-----------------------+------------------------------------+------------------------+ | ||
| Name | Description | Units | | ||
| | | | | ||
+=======================+====================================+========================+ | ||
| ``udt_topo`` | u wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
| ``vdt_topo`` | v wind tendency |:math:`m s^{-2}` | | ||
+-----------------------+------------------------------------+------------------------+ | ||
|
||
Relevant modules and subroutines | ||
-------------------------------- | ||
The code is split into 4 subroutines; ``damping_driver``, ``damping_driver_init``, ``damping_driver_end`` and ``rayleigh``. The ``_init`` and ``_end`` subroutines are for initializing and closing the module. The majority of the ``damping driver`` code is just a switchboard with the exception of the Rayleigh and constant drag calculations. The calculations for the other drag schemes are given in their own documentation. | ||
|
||
**Rayleigh Drag** | ||
|
||
Located in the ``rayleigh`` subroutine. This code damps the momentum toward zero in the specified upper model levels. The zonal/meridional tendency for each grid cell is calculated my multiplying the zonal/meridional velocity by a factor determined by the pressure and Rayleigh parameters. The damping is therefor proportional to the wind velocity. | ||
|
||
The temperature tendency is calculated using the wind velocities, wind tendencies, and the heat capacity of air. | ||
|
||
**Constant Drag** | ||
|
||
Located in the ``damping_driver`` subroutine. This is modelled on Alexander-Dunkerton winter average, it uses a 3rd order polynomial and the constant drag parameters to calculate a time invariant drag. This set up is modelled on Earth's atmosphere and therefore not recommended for other planets. | ||
|
||
|
||
References | ||
---------- | ||
Convective Gravity Wave Drag (cg_drag) [Pierrehumbert1986]_ | ||
|
||
Orographic Gravity Wave Drag (mg_drag) [Alexander1999]_ | ||
|
||
Authors | ||
------- | ||
This documentation was written by Ross Castle, peer reviewed by Stephen Thomson, and quality controlled by Matthew Henry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.