Git Product home page Git Product logo

Comments (8)

tulasinandan avatar tulasinandan commented on May 25, 2024 1

I have been thinking about it a quite a bit and my idea would be to have a function that takes every possible thing (grid, physics parameters, field values, time step, number of steps, anything else...) as a parameter and updates the fields for the desired number of steps, and finally returns the updated fields. Inside the solver, we would have cases for cartesian, cylindrical, spherical and whatever grids, and maybe a few different algorithms. A pure function without any side effects.

Then, we can have wrappers on top of it for different cases we might want.

from plasmapy.

tulasinandan avatar tulasinandan commented on May 25, 2024

About the EM solvers, I was wondering if we should re-invent the wheel or use an exsting EM solver. For a modular framework we would want a separate Maxwell solver for the fields.

from plasmapy.

tulasinandan avatar tulasinandan commented on May 25, 2024

On the one hand, use of separate library will reduce our initial workload but it will create an extra dependency. Maybe depending on the license, we could simply merge one snapshot of an existing package and take it as a starting point.

from plasmapy.

lemmatum avatar lemmatum commented on May 25, 2024

Is there a clean way to abstract the idea of an EM solver over the data structure such that you can drop-in any solver you want (provided you have a thin wrapper for some external solvers)?

from plasmapy.

lemmatum avatar lemmatum commented on May 25, 2024

Do these kinds of EM solvers go step by step, solving adjacent grid cells or does it take all the cells at once and try to come up with a global solution? If it's the former, and if the equations don't change between coordinate systems, then perhaps you can handle different grid/coordinate systems with decorators.

from plasmapy.

StanczakDominik avatar StanczakDominik commented on May 25, 2024

A reasonable object oriented structure would probably also work for code organization. I don't have strong opinions on how to organize the computation itself in a way that's parallelizable.

And with the direction we've been taking lately, I fear our code may soon approach 30% decorator applications. 😃

from plasmapy.

github-actions avatar github-actions commented on May 25, 2024

This issue will be closed in 90 days due to five years of inactivity unless the stale label or comment is removed.

from plasmapy.

github-actions avatar github-actions commented on May 25, 2024

This issue was closed because it has had no activity for five years.

from plasmapy.

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.