Giter Site home page Giter Site logo

gerlero / fronts.jl Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 2.13 MB

Nonlinear diffusion problems in Julia

Home Page: https://gerlero.github.io/Fronts.jl

License: MIT License

Julia 99.81% Dockerfile 0.19%
numerical-methods nonlinear-equations diffusion-equation boltzmann-transformation differential-equations groundwater-flow-equation richards-equation microfluidics julia capillarity

fronts.jl's Introduction

Fronts.jl

Stable Dev Build Status Coverage PkgEval SciML Code Style Docker image

Fronts, at the speed of Julia ⚡️

This is the (fully native) Julia version of our numerical package for nonlinear diffusion problems, also available as a Python library.

julia> using Fronts

julia> D(u) = u^4
D (generic function with 1 method)

julia> eq = DiffusionEquation(D)
∂u/∂t = (D(u)*∂u/∂r)/∂r

julia> prob = DirichletProblem(eq, i=0.1, b=1)
⎧ ∂u/∂t = (D(u)*∂u/∂r)/∂r, r>0,t>0u(r,0) = 0.1, r>0u(0,t) = 1.0, t>0

julia> u = solve(prob)
Solution u after 10 iterations
retcode: Success
ub = 1.0
du/do|b = -0.28388671875000004
ui = 0.10006060603081587

julia> u(0.25, 2) # Evaluate the solution anywhere and at any time
0.9440546607878473

julia> d_dr(u, 0.25, 2) # Obtain derivatives
-0.25038534184881966

julia> flux(u, 0.25, 2) # Obtain the flux
0.19888290889257723

CIMEC (UNL–CONICET)   INTEC (UNL–CONICET)   GSaM

fronts.jl's People

Contributors

dependabot[bot] avatar gerlero avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fronts.jl's Issues

Slow precompilation in Julia 1.5

The precompilation step when importing the package for the first time is taking very long (about 15-30 minutes) in Julia 1.5.4.

This was not a problem before and it also does not occur with Julia 1.6.2, where the precompilation step happens when the package is installed and as expected it is much faster.

The issue can be observed in the execution times of CI jobs (compare https://github.com/gerlero/Fronts.jl/runs/2777286953 and https://github.com/gerlero/Fronts.jl/runs/3174472477). I was also able to reproduce this behavior locally.

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

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.