Git Product home page Git Product logo

Comments (4)

tschoonj avatar tschoonj commented on September 25, 2024

@srio what do you think is happening here? I guess we are using rather different values for the attenuation coefficients?

from xraylib.

srio avatar srio commented on September 25, 2024

Yes. It is due to attenuation. The differences should appear in beta and it is due to the absorption cross section.

In XOP we were using absorption due to only photoelectric effect.

In xraylib we discussed this issue many years ago and concluded that it is more accurate to include the total cross section, thus including inelastic and also Rayleigh cross sections.

In OASYS/XOPPY we are also using the same philosophy than in xraylib, so the results in OASYS/f1f2 are different than in XOP/xf1f2. I would suggest to use better OASYS instead XOP. Almost all functionality is there. XOP is not longer maintained.

Depending on the type of calculation you do the xraylib absorption may be overestimated: it consider "absorbed" (in fact: attenuated or removed from the beam) all photons that interact. If your interest is to calculate the power load this is "too much" as there are many photons that may scape and do not contribute to the absorbed energy.

I hope this clarifies the situation.

from xraylib.

tschoonj avatar tschoonj commented on September 25, 2024

Thanks @srio for the clarification! I honestly completely forgot that we ever discussed this!

from xraylib.

gbzan avatar gbzan commented on September 25, 2024

@srio Thanks a lot for the clarification! It is useful to help me understand the difference between them. And also thanks @tschoonj to help me get the right answer.

from xraylib.

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.