Code Monkey home page Code Monkey logo

open-atmos / wrf-partmc Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 42.17 MB

Repository for the particle-resolved aerosol model PartMC coupled to the Weather Research and Forecasting (WRF) model

Perl 0.18% Shell 1.10% Makefile 0.28% Fortran 92.92% C 3.47% OCaml 0.01% NCL 0.09% EmberScript 0.01% Python 0.05% Roff 1.45% sed 0.01% MATLAB 0.02% PLSQL 0.19% Emacs Lisp 0.01% Lex 0.06% Yacc 0.06% Forth 0.01% M4 0.05% Ruby 0.01% Jupyter Notebook 0.04%
aerosols atmospheric-modeling fortran monte-carlo-simulation wrf-chem

wrf-partmc's People

Contributors

jcurtis2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

samfrederick

wrf-partmc's Issues

Vertical turbulent diffusion probability lower bound causing stalled simulations

I noticed the repository version of the diffusion code still has the lower probability bound on vertical turbulent diffusion in interface/wrf_pmc_trans_aero.F90. This was leading to hanging simulations and appears to occur earlier as we increase the number of particles. Adding the following commented lines (starting around line 1510) seems to fix the issue:

do k = pmc_ks,pmc_ke if (k .ne. k_index) then prob = env_state%prob_vert_diffusion(k,i_class) ! if (prob > 1.0d-6) then dest_vol = env_states(i_index,k,j_index)%cell_volume flux = prob * num_conc_old num_conc_new(i_index,k,j_index) = & num_conc_new(i_index,k,j_index) + flux * & (dest_vol / source_vol) num_conc_new(i_index,k_index,j_index) = & num_conc_new(i_index,k_index,j_index) - flux ! end if end if end do

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.