Code Monkey home page Code Monkey logo

nanoparticletools's People

Contributors

danielbarter avatar lucasattia avatar sivonxay avatar xiaojing-xia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nanoparticletools's Issues

Simulation analysis incorrect: occurrences_per_atom

In the analysis, the occurrences_per_atom is incorrectly calculated. It should be calculated without division by simulation time.

In the meantime, this value can be easily obtained by multiplying the dndt_per_atom by simulation_time

Add ability to limit the # of levels of each dopant

Some dopants (such as Er) have many more energy levels than others. It is unlikely that we get much additional accuracy from including these extra energy levels into the simulation.

Proposed changes:

  1. Add the ability to limit the energy levels by energy value.
  2. Add the ability to limit the max energy of dopant states in the SpectralKinetics module.

image

Unexpected errors in simulation setup

Simulation setup may fail in some instances:

  1. If there are no dopants specified in any part of the nanoparticle or all are zero
  2. If the total concentration within a layer is (nearly) 100%, floating point arithmetic errors will cause an error. While erroring when greater than full doping is intended, there should be a small tolerance, where the concentrations can be made to sum to 1.
    • For example, if a core only particle is specified with Yb concentration 1/3 and Er concentration 2/3, the sum may end up being slightly greater than 1

Issue with Tb

There is an issue with Tb, where entries in the magnetic dipole matrix become NaN. To the best of my knowledge, this comes from Tb's slj values.

Code to reproduce:

from NanoParticleTools.inputs.spectral_kinetics import SpectralKinetics
from NanoParticleTools.species_data import Dopant
sk = SpectralKinetics([Dopant('Tb', 0.1, 3)])
sk.magnetic_dipole_rate_matrix

Output:

array([[0.        , 0.        , 0.        ],
       [       nan, 0.        , 0.        ],
       [0.        , 1.20341175, 0.        ]])

Save average population vs t in the task doc

There are 2 possible implementations for this

  1. Use an exponential moving average. This is the cheap way to do things, but it would be less accurate.
  2. Compute the time averaged population

Add examples

Examples should cover:

  1. Solving rate equations to get spectra
  2. Setting up HT campaign
  3. Training ML model

Add differential kinetics functionality

The Igor code included differential kinetics modules which solve for dNdt through solving differential equations rather than running a Monte Carlo Simulation.

Some starter code has already been added to the SpectralKinetics class.

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.