Git Product home page Git Product logo

photochem's Issues

Climate model

Would be cool to also include a 1-D climate model. This could be used on its own, but could also coupled in a time-dependent fashion to the photochemical model.

Memory leak

Memory will leak here or here if an error occurs before the memory is deallocated.

Add redox state calculations

I'm thinking atoms should be specified like this

atoms:
  - {name: H, mass: 1, redox: - 0.5}

Then we can compute redox state of everything and check for redox conservation.

DIFFUSION ISSUE!!!

Looks like I'm screwing up molecular diffusion. There isn't conservation of H2 the atmosphere. There is MORE escaping than is being pushed into the atmosphere from the surface.

It has something to do with the ADU and ADL coefficients. I know this because when I neglect molecular diffusion, then there is conservation. Need to carefully step through all of this.

Moses boundary condition for particles is wrong

Moses boundary condition makes sense for gases. But it does not make sense for particles. Particles should be fallout out of the bottom of the model, but they only diffuse out when Moses is used

Stable finite differencing for advection

Right now I'm using center differencing for advection terms. This causes instability for particles falling. We can improve this by using a "upwind" differencing scheme.

Error with installation

Hello,

I'm following the instructions to install photochem, but I ran into an error when I tried to run part of the code:
python -m pip install --no-deps --no-build-isolation

Here's the error shown:
ERROR: You must give at least one requirement to install (see "pip help install")

What can I do to fix this issue? Thanks!

Implement second order upwind scheme for particle advection

Right now we are using a first order upwind scheme for particles falling. This is very diffusive. We can do better with a second order finite volume upwind scheme.

See Chapter 6 in LeVeque.

One potential issue is that these schemes depend on the size of the timestep. We can get the size of the timestep from CVODE, in the RHS function. I just worry that this will be an issue.

add topics

I suggest adding the topics atmosphere, photochemical-model as you did for photochempy. Maybe earth-science too.

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.