Code Monkey home page Code Monkey logo

approxfunexamples's People

Contributors

dlfivefifty avatar gyoshi avatar macd avatar mikaelslevinsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

approxfunexamples's Issues

Use Literate.jl to incorporate examples into documentation via CI

I was inspired by https://github.com/FourierFlows/FourierFlows.jl, in particular the example they have (https://github.com/FourierFlows/FourierFlows.jl/blob/master/examples/OneDShallowWaterGeostrophicAdjustment.jl) that gets run as part of the documentation stage in GitHub Actions in every commit. The very nice result is https://fourierflows.github.io/FourierFlowsDocumentation/dev/generated/OneDShallowWaterGeostrophicAdjustment/.

Did the same thing with the FastTransforms examples (since the docs are quite sparse), and I'm pretty pleased. The FourierFlows.jl scripts show that docs can be hosted in a separated repository, so probably it's possible for the examples here to be added to the ApproxFun.jl documentation website. Or alternatively, have a separated website repository be built from multiple GitHub sources (the source source and examples source).

method error on julia 1.0

running Helmholtz rectangle PDE example on this page

https://github.com/JuliaApproximation/ApproxFunExamples/blob/master/PDEs/Rectangle%20PDEs.ipynb

d = (-1.0..1.0)^2

Δ = Laplacian(d)

@time u = \([Dirichlet(d);Δ+100I], [ones((d));0]; tolerance=1E-5)
plot(u)

gives

MethodError: no method matching Dirichlet(::Interval{Float64})
Closest candidates are:
  Dirichlet() at /Users/abradley/.julia/packages/ApproxFun/wFAIT/src/Operators/functionals/Evaluation.jl:181
  Dirichlet(!Matched::Chebyshev, !Matched::Any) at /Users/abradley/.julia/packages/ApproxFun/wFAIT/src/Spaces/Chebyshev/ChebyshevOperators.jl:128
  Dirichlet(!Matched::TensorSpace{Tuple{ChebyshevDirichlet{1,1,Segment{T},R1},ChebyshevDirichlet{1,1,Segment{T},R2}},D,R} where R where D, !Matched::Any) where {T, R1, R2} at /Users/abradley/.julia/packages/ApproxFun/wFAIT/src/Spaces/Ultraspherical/ContinuousSpace.jl:221

Need some explanation in Blasius and Falkner-Skan.jl

in Blasius and Falkner-Skan.jl
f = (u)->(2.0*D^3*u + 3*u*D^2*u)
df = (u)->(2.0*D^3 + u*D^2 + D^2*u)

Shouldn't it be
df = (u)->(6.0*D^2 + D^2*u + 2*u*D*u)

Other thing is,
global u -= [B; df(u)]\[u(0.);u'(0.);u'(rightendpoint(d))-1.;f(u)]
What is happening in this line of code?

Heat equation with nonconstant coefficient

Hello.
Do you currently have support for the heat equation with non-constant coefficients?

$$\frac{\partial u}{\partial t} = \frac{\partial}{\partial x} \left( k(x) \frac{\partial u}{\partial x} \right),$$

or, alternatively,

$$\frac{\partial u}{\partial t} =\frac{\partial^2}{\partial x^2} \left( k(x) u \right),$$

where u(x,t) is the solution and k(x) is the variable coefficient.

Thank you for considering this question.

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.