Giter Club home page Giter Club logo

Comments (13)

lululxvi avatar lululxvi commented on June 20, 2024

Could you change x1=x[:,0] and x2=x[:,1] to x1=x[:, 0:1] and x2=x[:, 1:], so that x1 and x2 are column vectors?

from deepxde.

tangqi avatar tangqi commented on June 20, 2024

Thanks a lot! That appears to be the bug.

Do you happen to have a 3D case or a time-dependent 2D example by any chance, or have you ever tried it?

-Qi

from deepxde.

lululxvi avatar lululxvi commented on June 20, 2024

Yes, we have time-dependent 2D example, but the code is not online.

from deepxde.

tangqi avatar tangqi commented on June 20, 2024

Great! Looking forward to it. Thanks again for the help.

from deepxde.

tangqi avatar tangqi commented on June 20, 2024

Hi Lu, is there any chance to share a simple 2D time dependent case, like the one in the arxiv paper for us to try? Thanks, -Qi

from deepxde.

lululxvi avatar lululxvi commented on June 20, 2024

I will upload these days. 2D time case should be very similar to 1D case.

from deepxde.

tangqi avatar tangqi commented on June 20, 2024

Thank you! That would be great!

from deepxde.

Fayaud avatar Fayaud commented on June 20, 2024

Hello Lulu!

Please where can I find an example of a time dependent 2D domain.

best regards,

from deepxde.

Fayaud avatar Fayaud commented on June 20, 2024

Hello Lulu!

Please is this the right syntax to fix the time-periodicity condition for a PDE problem in 2D in space?

Spatial_domain = dde.geometry.Rectangle(xmin=[-1, -1], xmax=[1, 1])
Temporal_domain = dde.geometry.TimeDomain(0, 2*np.pi)
Spatio_temporal_domain = dde.geometry.GeometryXTime(Spatial_domain, Temporal_domain)
boundary_condition_u = dde.DirichletBC(Spatio_temporal_domain, u_func, lambda _, on_boundary: on_boundary, component=0)
boundary_condition_v = dde.DirichletBC(Spatio_temporal_domain, v_func, lambda _, on_boundary: on_boundary, component=1)

periodic_condition_u = dde.PeriodicBC(Spatio_temporal_domain, 1, lambda _, on_boundary: on_boundary, component=0)???
periodic_condition_v = dde.PeriodicBC(Spatio_temporal_domain, 1, lambda _, on_boundary: on_boundary, component=1)???

I only want to check the two last line for: u(x, y, 0) = u(x, y, 2pi); v(x, y, 0) = v(x, y, 2pi)

thank you very much!

best,

from deepxde.

Fayaud avatar Fayaud commented on June 20, 2024

Or should I instead use this syntax for the time-periodicity for a problem in 2D in space ?

periodic_condition_u = dde.PeriodicBC(Spatio_temporal_domain, 1, lambda _, on_periodic: on_periodic, component=0)???
periodic_condition_v = dde.PeriodicBC(Spatio_temporal_domain, 1, lambda _, on_periodic: on_periodic, component=1)???

Thank you very much!

best,

from deepxde.

lululxvi avatar lululxvi commented on June 20, 2024

For the periodic in x and y, why "u(x, y, 0) = u(x, y, 2pi); v(x, y, 0) = v(x, y, 2pi)"? Should it be

  • u(-1, y, t) = u(1, y, t), v(-1, y, t) = v(1, y, t)
  • u(x, -1, 0) = u(x, 1, t), v(x, -1, 0) = v(x, 1, t)
    ?

from deepxde.

Fayaud avatar Fayaud commented on June 20, 2024

Hello Professor!

Thank you for replying. I want to enforce the periodic in time. So, my problem is in 2 dimension in space and the third dimension is the time as: (x, y, t). I actually want to write:

u(x, y, 0) = u(x, y, 2pi); v(x, y, 0) = v(x, y, 2pi) for all (x, y).

best regards!

Fayaud!

from deepxde.

Fayaud avatar Fayaud commented on June 20, 2024

For more precision, I am solving the following time-dependent Navier-Stokes equation:

File.pdf

best,

from deepxde.

Related Issues (20)

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.