Giter Club home page Giter Club logo

fesolvers.jl's Introduction

What I do

pic

fesolvers.jl's People

Contributors

koehlerson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

fesolvers.jl's Issues

Interface Design

Maybe it is a good idea to interface against SciML, because they already have quite some infrastracture which we can reuse. The current design also has already some similarities with the design of their "Problem - Solver" pairs. This way we can also try to gain some momentum on SciML/OrdinaryDiffEq.jl#1570 which possibly unlocks a range of interesting solvers for time-dependent problems, whose semi-discretization with finite element methods often simply leads to ODEs or DAEs. See e.g. https://ferrite-fem.github.io/Ferrite.jl/stable/examples/ns_vs_diffeq/ for a first simple example.

Just some quick thoughts

These are some thoughts/experiences I have obtained from generalising the solvers in my Five.jl package.

I think every solver will have some sort of time step loop + updating variables + exporing stuff, so that could be abstracted out, see here in Five: https://github.com/lijas/Five.jl/blob/da1ed34cb6bbd7326166c773081d29200dee86c9/src/solvers/solver.jl#L41
I think that creates code sharing between solvers that are reasonable.

Then each solver can implement a step!(::AbstractSolver, state, femodel), which advanced the state by some amount (decided by the solver itself). For example https://github.com/lijas/Five.jl/blob/da1ed34cb6bbd7326166c773081d29200dee86c9/src/solvers/newton_solver.jl#L23
I think this generalises for most solvers.

The ::State data type is pretty important. Everything that is needed to advance the system forward should be included in it(ie states + time derivatives). In this way, one can do stuff like "state"-saving (for restarts etc), or pass the state between different solvers etc.
https://github.com/lijas/Five.jl/blob/da1ed34cb6bbd7326166c773081d29200dee86c9/src/Five.jl#L106

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.