GithubHelp home page GithubHelp logo

Comments (10)

aborner1 avatar aborner1 commented on September 23, 2024 2

Can confirm I can reproduce with latest master. Changing number of cells and relaxation numbers did not make a difference. Changing to variable relaxation numbers made no difference.
It already happens at time 0, so it's purely a vibrational temperature calculation artifact.

from sparta.

realprivate avatar realprivate commented on September 23, 2024 2

Should be fixed by #468, can you confirm?

I modified line 406 in compute_tvib_grid.cpp, and now the problem with the diatomic gas mixtures can be solved effectively.

from sparta.

stanmoore1 avatar stanmoore1 commented on September 23, 2024 1

Should be fixed by #468, can you confirm?

from sparta.

mgallis avatar mgallis commented on September 23, 2024

from sparta.

realprivate avatar realprivate commented on September 23, 2024

Dear Prof. Gallis,
Following your advice, I tested the case at higher temperatures of 10000K, 15000K, and 20000K, but the problem persists. The temperature of N2 consistently shows a temperature error of about 500K. Additionally, I've noticed that if O2 is defined as the second species in the 'species' command, the temperature output error shifts from N2 to O2.

from sparta.

aborner1 avatar aborner1 commented on September 23, 2024

Can you please try running on more than 1 grid cell? Try 8 (2 in each direction) and see whether the problem persists.

from sparta.

aborner1 avatar aborner1 commented on September 23, 2024

Also, I do want to point out your relaxation numbers are wrong. While I would personally also prefer that the input be the relation number (Zrot or Zvib), for now, you have the specify the relaxation probability (i.e., 1/Zrot and 1/Zvib). Therefore, your relaxation probabilities in air.species should be 0.5 for rotational, and 1/40 or 1/60 for vibration.

from sparta.

stanmoore1 avatar stanmoore1 commented on September 23, 2024

I can reproduce this as well. The temperatures are affected by value of VibTemp (K) in air.species. If those are equal then it gives the correct answer.

from sparta.

stanmoore1 avatar stanmoore1 commented on September 23, 2024

I think the bug is on this line: https://github.com/sparta/sparta/blob/master/src/compute_tvib_grid.cpp#L406. That is always returning 0 when it should be both 0 and 1.

from sparta.

stanmoore1 avatar stanmoore1 commented on September 23, 2024

This same bug shows up with https://github.com/sparta/sparta/blob/master/examples/vibrate/in.vibrate if you run it for long enough.

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.