GithubHelp home page GithubHelp logo

Ambipolar bug about sparta HOT 8 CLOSED

aborner1 avatar aborner1 commented on May 24, 2024
Ambipolar bug

from sparta.

Comments (8)

aborner1 avatar aborner1 commented on May 24, 2024 1

@zhangchonglin Yes, I agree. I think it is solved, I will push an update very soon.

from sparta.

aborner1 avatar aborner1 commented on May 24, 2024

Actually, if the case is ran long enough (> 1000 steps), the bug will appear for any number of ranks (even serial).

from sparta.

aborner1 avatar aborner1 commented on May 24, 2024

As far as I can tell, the bug was introduced with version 5Sep18, as version 22Jun18 looks to give correct results.

from sparta.

aborner1 avatar aborner1 commented on May 24, 2024

Bug was introduced by 2b038d8

from sparta.

aborner1 avatar aborner1 commented on May 24, 2024

The bug is due to the following modification in react_bird.cpp:

// added MAX() limit, 24Aug18
tgamma(z+2.5-omega) / MAX(1.0e-6,tgamma(z+r->coeff[3]+1.5));

going back to
tgamma(z+2.5-omega) / tgamma(z+r->coeff[3]+1.5);

solves the problem.

from sparta.

aborner1 avatar aborner1 commented on May 24, 2024

The following reactions should be commented out of the air.tce file as their temperature exponent is below -1.5, which causes the gamma function to have a native argument, which is not acceptable for the TCE model:

N2+ + O --> N2 + O+
E A 0.0 0.000 4.118e-11 -2.2 1.148e-19

O + e --> O+ + e + e
I A 0.0 2.188e-18 6.4761E3 -3.78 -2.188e-18

N + e --> N+ + e + e
I A 0.0 2.322e-18 4.1513E4 -3.82 -2.322e-18

from sparta.

zhangchonglin avatar zhangchonglin commented on May 24, 2024

@aborner1 I think I encountered similar issue as you did and reported it here: #10 (comment)

from sparta.

zhangchonglin avatar zhangchonglin commented on May 24, 2024

@aborner1 Thanks for the confirmation and fix!

from sparta.

Related Issues (20)

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.