New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About BC Definition #421
Comments
I make a correction that in problem 1, the IC is u(x,0)=m*x |
|
For question 2, since the values of a1 and a2 are different, it is necessary to construct 2 equations when constructing the PDE module using deepxde,How to use only one u?
, and the a cannot be taken correctly. It seems that two of u need to be defined in order to realize the change in PDE at different locations.
|
In your second piece of code, the PDE for u1 and u2 seems exactly the same, so a is the same for u1 and u2? |
Unfortunately, a represents the parameters of the equation, and at H/2 the parameters have changed, a1 and a2 are different, so two equations need to be constructed. At H/2, the continuity condition is met, i.e. u1 = u2, u1x = u2x |
Both approaches are OK, but using only one u could be easier to implement. |
@LanPeng-94 hi, I'm also interested in the case of two different materials right now, have you solved the above problem? can you share your final code? |
Dr. Lu:
I have recently had two problems with deepxde and would like to ask you for advice.
I have the following equation corresponding to the boundary case of the PDE:
BC:u(0,t) = 0; u(10,t) = 0
IC: u(x,0) = m*t.
As you can see, at this point at (10,0), the right boundary and the initial condition are in conflict. My approach is to force the initial condition to the right boundary value at that point, and at this point, I want to improve the computational accuracy by imposing a hard constraint, how should I impose it?
I need to model the following, where u changes parameters at H/2, so I set two variables u1 and u2, so I can get
a1u1xx = u1t;a2u2xx = u2t
The boundary conditions satisfy BC1 and BC2 and satisfy u1 = u2 and u1x = u2x at H/2. How should I model the calculation using deepxde, what I have in mind is to use OperatorBC at H/2.
The text was updated successfully, but these errors were encountered: