-
Notifications
You must be signed in to change notification settings - Fork 818
Moving smoke aerosol emissions for Thompson AA scheme into separate module #1715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
weiwangncar
merged 5 commits into
wrf-model:release-v4.4
from
twjuliano:add_fire_emit_module
Apr 22, 2022
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
47ca930
Moving smoke aerosol emissions for Thompson AA scheme into separate m…
twjuliano 561658f
Remove two blank lines to trigger a new reg test.
weiwangncar d4a2c95
Adding check to make sure qna_update=1 when mp_physics=28 aerosol for…
twjuliano f70481a
Fixing typo and adding info in example namelist
twjuliano edb139b
Add some text to trigger a new test
weiwangncar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,93 @@ | ||
| MODULE module_fire_emis | ||
|
|
||
| CONTAINS | ||
|
|
||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| ! Simple smoke aerosol emissions scheme for Thompson-Eidhammer Aerosol-Aware microphysics scheme ! | ||
| ! ! | ||
| ! Implemented by T. W. Juliano (NCAR/RAL) on 4/13/2022 ! | ||
| ! ! | ||
| ! First implementation includes two options: ! | ||
| ! 1. wif_fire_inj = 0 --> Emit smoke aerosols in the lowest model grid cell ! | ||
| ! --> Recommended for LES configuration where dx is sufficiently small ! | ||
| ! to resolve strong vertical velocities that can mix aerosols ! | ||
| ! throughout the BL during convective conditions ! | ||
| ! 2. wif_fire_inj = 1 --> Default option ! | ||
| ! --> Emit smoke aerosols using simple plumerise scheme that evenly ! | ||
| ! distributes throughout the BL column based on PBL height diagnosed ! | ||
| ! by the PBL parameterization ! | ||
| ! --> Recommended for mesoscale simulations where dx is not small enough ! | ||
| ! to explicitly mix aerosols throughout the BL during convective ! | ||
| ! conditions due to relatively weak updrafts ! | ||
| ! ! | ||
| ! Future implementation could include plumerise model by Freitas et al. (2007, ACP), which is ! | ||
| ! currently part of the WRF-Chem codebase ! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| SUBROUTINE fire_emis_simple_plumerise(wif_fire_inj, aer_fire_emit_opt, z_at_mass, pblh, & | ||
| nwfa, nbca, nocbb2d, nbcbb2d, dt_in, ids, ide, jds, jde, kds, kde, & | ||
| ims, ime, jms, jme, kms, kme, its, ite, jts, jte, kts, kte) | ||
|
|
||
| IMPLICIT NONE | ||
|
|
||
| INTEGER , INTENT(IN) :: wif_fire_inj, aer_fire_emit_opt | ||
| REAL, DIMENSION(ims:ime, kms:kme, jms:jme), INTENT(IN) :: z_at_mass | ||
| REAL, DIMENSION(ims:ime, jms:jme) , INTENT(IN) :: pblh | ||
| REAL, DIMENSION(ims:ime, kms:kme, jms:jme), INTENT(INOUT) :: nwfa, nbca | ||
| REAL, DIMENSION(ims:ime, jms:jme) , INTENT(IN) :: nocbb2d, nbcbb2d | ||
| REAL , INTENT(IN) :: dt_in | ||
| INTEGER , INTENT(IN) :: ids, ide, jds, jde, kds, kde, & | ||
| ims, ime, jms, jme, kms, kme, & | ||
| its, ite, jts, jte, kts, kte | ||
|
|
||
| ! Local | ||
| INTEGER :: i, j, k, i_start, i_end, j_start, j_end, k_inj | ||
| REAL :: noc_emit, nbc_emit | ||
|
|
||
| i_start = its | ||
| j_start = jts | ||
| i_end = MIN(ite, ide-1) | ||
| j_end = MIN(jte, jde-1) | ||
|
|
||
| ! Emit fire aerosols at surface (recommended for LES configuration) | ||
| if (wif_fire_inj .eq. 0) then | ||
| do j = j_start, j_end | ||
| do i = i_start, i_end | ||
| nwfa(i,kts,j) = nwfa(i,kts,j) + nocbb2d(i,j)*dt_in | ||
| if (aer_fire_emit_opt .eq. 2) then | ||
| nbca(i,kts,j) = nbca(i,kts,j) + nbcbb2d(i,j)*dt_in | ||
| end if | ||
| end do | ||
| end do | ||
| ! Distribute fire aerosols evenly through PBL (recommended for mesoscale simulations) | ||
| else if (wif_fire_inj .eq. 1) then | ||
| do j = j_start, j_end | ||
| do i = i_start, i_end | ||
| ! Find k index for PBL top | ||
| k_inj = kts | ||
| do while (z_at_mass(i,k_inj,j) .lt. pblh(i,j)) | ||
| k_inj = k_inj + 1 | ||
| end do | ||
| ! Compute num of OC aerosols to emit per grid cell | ||
| noc_emit = (nocbb2d(i,j)*dt_in)/k_inj | ||
| ! Compute num of BC aerosols to emit per grid cell | ||
| if (aer_fire_emit_opt .eq. 2) then | ||
| nbc_emit = (nbcbb2d(i,j)*dt_in)/k_inj | ||
| end if | ||
| ! Emit aerosols | ||
| do k = kts, k_inj | ||
| nwfa(i,k,j) = nwfa(i,k,j) + noc_emit | ||
| if (aer_fire_emit_opt .eq. 2) then | ||
| nbca(i,k,j) = nbca(i,k,j) + nbc_emit | ||
| end if | ||
| end do | ||
| end do | ||
| end do | ||
| ! Option does not exist | ||
| else | ||
| call wrf_error_fatal('option wif_fire_inj = ', wif_fire_inj, ' does not exist. Please set =0 or =1') | ||
| end if | ||
|
|
||
| END SUBROUTINE fire_emis_simple_plumerise | ||
|
|
||
| END MODULE module_fire_emis |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.