Coder Social home page Coder Social logo

Comments (4)

wbinventor avatar wbinventor commented on August 13, 2024

Thanks for posting this bug Matthew. I know about this bug and it is an issue with the passing the flux data array from C++ to Python in the plotting routine in the openmoc.plotter. It's not an issue with the physics logic. I haven't gotten around to fixing it yet, but now that it's documented I'll look at it.

I do know that the flux plots generated from the GPUSolver do not have these artifacts.

If you need some thermal group plots for a presentation or paper, let me know and I'll expedite this to the top of my todo list.

from openmoc.

meverson avatar meverson commented on August 13, 2024

It's not a big deal. I just saw it and thought I'd let you know. I don't have any need for thermal group plots yet, but I'll let you know if I do in the future. Thanks.

from openmoc.

meverson avatar meverson commented on August 13, 2024

Quick Fix : In function plotter.plotFluxes change the following call to c++ as follows:

        # Get the scalar flux for each energy group in this FSR
        for index, group in enumerate(energy_groups):
            fluxes[index,i,j] = solver.getFSRScalarFlux(fsr_id, group-1)

Was previously accessing a group ahead of what it was supposed to, leaving the group 7 plot to be a shifted version of the group 1 plot.

from openmoc.

wbinventor avatar wbinventor commented on August 13, 2024

Thanks Matt! I just integrated your bug fix into the master branch and thermal flux plots are looking great.

Commit (master): fa614a5

from openmoc.

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.