fesolvers.jl's Introduction
fesolvers.jl's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.