-
Notifications
You must be signed in to change notification settings - Fork 716
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
Coupled Piezoelectric Partial differential equations #31
Comments
Ideally it can. But to achieve a good performance, it may require some hyperparameter tuning, etc. |
Read the paper/video, also check the examples and the questions other people asked, and you will see that it is easy to code with DeepXDE. Let me know when you have any specific questions or difficulties. |
Hello again, I am stuck in defining the p.d.e where it is double contracted with the displacement gradient. I am confused in matrix formation. |
Is there any video as you mentioned? May you give me the link? |
You can find the video in the document page. Could you provide more details about your problem of "double contracted"? |
Thank you, Actually [c] is a fourth order tensor and gradient of u is a second order tensor so double contraction is to sum of two tensor orders and cancel it with twice the minimum of the two tensor order. It takes sum of the remaining two orders. |
Is it |
Yes you get it right. I have to solve it for 2-d case only. I have to show strains in x and y direction plus the voltage variation when force is applied on the cantilever beam. |
Hello lu, I am stuck in simplifying this p.d.e as c is a 3x3 matrix and u is a 2x2 matrix. May you help me with that? |
Sorry, I am not familiar with this PDE, so I don't know the 2D form exactly. You may do some literature/textbook search. But my understanding is that in 2D, |
Hello lu, I have simplified the PDE. It is still a little complex one with boundary conditions and partial derivatives. May you help me with that? |
You were right about the c matrix matrix . Sorry, but I think u is a displacement vector . |
@Rajat735 Could you post the simplified PDE/BCs, your code, and questions here? |
Refer to the above schematic diagram I have taken mechanical displacement as u=ux in x-direction + uy in y direction and potential as a function of x and y as f(x,y) here i am stuck in implementing third boundary condition as stress is not the output components in PDEI have written the code . Please correct it and scale also the PDE . from future import absolute_import import numpy as np import deepxde as dde def main():
if name == "main": Third Boundary condition please help with it |
I guess that you want to split your
As a result, |
Thanks @smao-astro . Actually I want three outputs ux,uy which is mechanical displacement and potential function which is f(x,y) . |
I agree with @smao-astro. @Rajat735 In your |
Yes @lululxvi the first is equal to some constant ,say 10, and second one is equal to zero. This is the third boundary condition which are expressed in terms of ux , uy and f. |
You need to define the two BCs separately. For example, to define the first BC: def func1(x, y, X):
... # Your code in func related to this BC
return 0.5 * (2 * c11 * dux_x + c12 * (dux_y + duy_x)) + e31*df_x - 10
bc_r1 = dde.OperatorBC(geom, func1, boundary_nr) |
Thank you @lululxvi . Code is working fine now but i assume scaling is the problem. Please take a look at this image |
Yes, in the step 0, the loss is huge. |
How to deal with this situation? |
Check the FAQ here https://deepxde.readthedocs.io/en/latest/user/questions_answers.html |
How to initialize loss weights and how to scale the pde such that each type of losses are in same range? |
model.compile(..., loss_weights=[..., ..., ...])
|
3 graphs are generated while running the code. I am referring to the second one? |
It only plots the first output, i.e., To get more plots, you can use the output file |
The figure 2 does not shows the train.dat file |
No, the train.dat is not plotted in the figure, because sometimes the plot would become messy. You can easily plot the figure using |
What if I have to impose a boundary condition in the direction of y axis? I have to impose a condition uy=y along the left boundary |
|
Hello Lu,
![image](https://user-images.githubusercontent.com/63549827/79074708-92d89080-7d0b-11ea-9e26-9efb4f7d1c44.png)
Can this deep learning library solve this equation?
The text was updated successfully, but these errors were encountered: