GithubHelp home page GithubHelp logo

tce/qk style about sparta HOT 3 CLOSED

gokulbr4 avatar gokulbr4 commented on July 23, 2024
tce/qk style

from sparta.

Comments (3)

stanmoore1 avatar stanmoore1 commented on July 23, 2024

@gokulbr4 do you have a minimal working example that reproduces the issue that we can run? Sorry for the basic question, but are you sure that your simulation conditions are such that would produce reactions? E.g. temperature, density, etc.

from sparta.

knstmrd avatar knstmrd commented on July 23, 2024

@gokulbr4 I took the input files from the email you sent to the mailing list, could reproduce the issue with no reactions when using the "tce/qk" hybrid style (switching to either "pure" tce or qk leads to reactions taking place).

There is indeed a bug in the react_tce_qk.cpp file: in line 126, a check is performed if (e_excess > 0.0) return 0; but it is unphysical (and the correct condition that e_excess >= 0.0 is already being checked for in the base attempt function).

There also seem to be an inconsistency in the code:
the base function attempt checks that the total energy of the colliding partners is larger than the threshold energy of the reaction. But the QK and TCE styles themselves check for translational+fraction of rotational energy > threshold energy. So the base check (from attempt) can't be re-used, one has to check twice. Related to #279

I am also not 100% sure about the implementation of the reaction loop: in the "pure" TCE/QK styles, a random number is sampled once, and the reactions are looped over, each one adding to the reaction probability CDF. In the hybrid style, each reaction is checked against a fresh random number – not fully sure if this is consistent with the basic TCE/QK styles? Not entirely sure how the react command works together with the collide_vss style, so am definitely not the best judge on this.

from sparta.

gokulbr4 avatar gokulbr4 commented on July 23, 2024

Thankyou so much for sorting it out and it is working.

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.