Giter Club home page Giter Club logo

geometricproblems.jl's People

Contributors

benedict-96 avatar github-actions[bot] avatar michakraus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

geometricproblems.jl's Issues

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!

Test LotkaVolterra4dLagrangian

Can you give a reference in the docs for this problem?

Also, the problem is now formulated in math terms using Symbolics.jl and moving away from MTK.jl. I suggest using and testing modelingtoolkitize to preserve the generality of GeometricProblems.

Redo plots for coupled harmonic oscillators

The plots in the docs should not depend on GeometricMachineLearning. @benedict-96 please redo those without relying on GeometricMachineLearning.

The following code has been removed for now:

```@example
HTML("""<object type="image/svg+xml" class="display-light-only" data=$(joinpath(Main.buildpath, "images/coupled_harmonic_oscillator.png"))></object>""") # hide
```

```@example
HTML("""<object type="image/svg+xml" class="display-dark-only" data=$(joinpath(Main.buildpath, "images/coupled_harmonic_oscillator_dark.png"))></object>""") # hide
```

The following shows the ``q_1`` component of the system for different values of ``k``: 

```@example
using GeometricIntegrators: integrate, ImplicitMidpoint # hide
using GeometricProblems.CoupledHarmonicOscillator: hodeproblem, default_parameters, tspan, tstep, q₀, p₀ # hide
using GeometricEquations: EnsembleProblem # hide
using GeometricMachineLearning: DataLoader # hide
using Plots # hide
 # hide
const m₁ = default_parameters.m₁  # hide
const m₂ = default_parameters.m₂ # hide
const k₁ = default_parameters.k₁ # hide
const k₂ = default_parameters.k₂ # hide
const k = [0.0, 0.5, 0.75, 1.0, 2.0, 3.0, 4.0] # hide
 # hide
params_collection = [(m₁ = m₁, m₂ = m₂, k₁ = k₁, k₂ = k₂, k = k_val) for k_val in k] # hide
ensemble_problem = EnsembleProblem(hodeproblem().equation, tspan, tstep, (q = q₀, p = p₀), params_collection) # hide
ensemble_solution = integrate(ensemble_problem, ImplicitMidpoint()) # hide
 # hide
dl = DataLoader(ensemble_solution) # hide
q₁ = dl.input.q[1, :, :] # hide
h = tspan[2] / (size(q₁, 1) - 1) # hide
t = 0.0:h:tspan[2] # hide
n_param_sets = length(params_collection) #hide 
labels = reshape(["k = "*string(params.k) for params in params_collection], 1, n_param_sets) # hide
 # hide
const one_plot = false # hide
const psize = (900, 600) # hide
plot_q₁ = one_plot ? plot(t, q₁, size=psize) : plot(t, q₁, layout=(n_param_sets, 1), size=psize, label=labels, legend=:topright) # hide
```

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.