Coder Social home page Coder Social logo

odesolver-pinns's People

Contributors

evalieben avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

odesolver-pinns's Issues

Single equation, one variable

I have tried your program and its works. But I cannot make it run properly with the simplest equation:

dx/dt = -x   

for t in [0, 3] with initial condition x(0) = 1

I do not understand how to set up the ODE. I have the following:

    ODE4 = ODE(t1, t2, nb_samples)
    ODE4.setEquation([ODE4.diff(1,1), 1],['x'],[1,1],"ODE.constant(0)")
    ODE4.addBoundary(0, 0.0, 1.00)  # x[0.0] = 1.0
    ODE4.setExact(log(ODE4.xVar()),"exp(-t)")

    solve_with_dct = {
        "network_layers": 2,   # origin: 8
        "cells": 30,  # origin: 60
        "learn_rate": 1.e-3,  # orig 1.e-5
        "weight_decay": 0.005,
        "max_steps": 40001,
        "threads": 2,
        "reduction": 'mean'
    }

    ODE4.solve(**solve_with_dct)

Obviously, something is wrong. I get a plot, but it is not even remotely correct. I include it.

image

Any insight would be greatly appreciated.

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.