Comments (13)
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.
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.
Yes, we have time-dependent 2D example, but the code is not online.
from deepxde.
Great! Looking forward to it. Thanks again for the help.
from deepxde.
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.
I will upload these days. 2D time case should be very similar to 1D case.
from deepxde.
Thank you! That would be great!
from deepxde.
Hello Lulu!
Please where can I find an example of a time dependent 2D domain.
best regards,
from deepxde.
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.
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.
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.
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.
For more precision, I am solving the following time-dependent Navier-Stokes equation:
best,
from deepxde.
Related Issues (20)
- anchors problem (Additional points getting generated by BCs and ICs)
- Problems in calculating the flow around two-dimensional airfoils HOT 3
- Applying forces on geometries HOT 4
- Type mismatch when trying to use L-BFGS HOT 5
- Calculating the NN output in "losses" function of PDE class HOT 3
- Navier Stokes Dynamic surface Boundary Conditions HOT 15
- How to put higher order boundary conditions while solving 4th order time dependent pde (1d) HOT 1
- How to ignore reference solution HOT 1
- Failed to generate irregular domain via geometry.csg.CSGDifference() function. HOT 1
- how exactly does the train_x work? HOT 3
- Higher order derivatives by using dde.grad.jacobian and dde.grad.hessian HOT 7
- 2D Wave Equation With Initial Conditions and Disk Deformity. HOT 4
- Get a very small loss but the results are completely not correct HOT 3
- How to implement learning rate anealing? HOT 2
- AttributeError on auxiliary_var_fn obtaining residuals using PI-DeepONet HOT 3
- Inverse problem for a space and time dependent variable. HOT 3
- Heat conduction equation with contact boundary and output-dependent parameters. HOT 3
- L-BFGS iteration records HOT 2
- How do I train pideepon with my own data? HOT 2
- How to solve inverse problem with parameters in the boundary condition? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepxde.