Coder Social home page Coder Social logo

deep_plates's People

Contributors

weili101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deep_plates's Issues

Question Regarding Implementation of net_u and net_v

Hello,

Thank you for providing the code for your paper, it has proven so so valuable in my own research.
Regarding the implementation of the ANN, in the paper you state that you train a single 5 layers deep 5 neurons wide net with two outputs (u and v respectively). However in the code provided (I'm looking at the open hole energy problem for example) there are two nets, one for u and one for v, each 10 layers deep and 20 neurons wide. This is significantly deeper and wider then what is discussed in the paper.
Am I understanding everything correctly and is there a reason for the discrepancy?

Again thank you so much,
Alexi

Operations for First and Second-Order Derivatives

Hello, I've noticed that there are some operations involved when calculating both first-order and second-order derivatives in your Example 1 - Uniaxial tension, PDE-based problem. Could you please explain why these operations are necessary?

def PDE(x, Net_u, func_u, Net_v, func_v):

_, _, _, du_xx, du_yy, du_xy = derivative(x, Net_u, func_u, '2') 
_, _, _, dv_xx, dv_yy, dv_xy = derivative(x, Net_v, func_v, '2')

du_xx, du_yy, du_xy = du_xx/a, du_yy*a/b**2, du_xy/b
dv_xx, dv_yy, dv_xy = dv_xx*b/a**2, dv_yy/b, dv_xy/a

The problem with the code for partial derivatives

    Hello author, thank you very much for sharing the code.
    In the class for "derivative", my understanding is that Net(x) is the output of the neural network, which is the predictive value "w", so what does the function "func(x)" do?
    I already know the specific definition of "func(x)" in the following text, but I do not know the function of "func(x)" in the class of "derivative".
    Thanks!

def derivative(x, Net, func, order):

w = Net(x)*func(x).view(-1,1)                                #func(x)?????????????????

if order == '0':
    return w

else:
    dw_xy = torch.autograd.grad(w, x, torch.ones_like(w), 
                                retain_graph=True, create_graph=True, allow_unused=True)
    dw_x = dw_xy[0][:,0].view(-1,1)
    dw_y = dw_xy[0][:,1].view(-1,1)
    
    if order == '1':
        return w, dw_x, dw_y

    else:
        dw_xxy = torch.autograd.grad(dw_x, x, torch.ones_like(dw_x), 
                                     retain_graph=True, create_graph=True,allow_unused=True)
        dw_xx = dw_xxy[0][:,0].view(-1,1)
        dw_xy = dw_xxy[0][:,1].view(-1,1)
        dw_yy = torch.autograd.grad(dw_y, x, torch.ones_like(dw_y), retain_graph=True, 
                                    create_graph=True,allow_unused=True)[0][:,1].view(-1,1)
        return w, dw_x, dw_y, dw_xx, dw_yy, dw_xy

about displacement boundary conditions

Dear Dr.Li
I am very happy to find your article,because it has inspired me a lot.But there are some questions I don't understand.In your section Ex1 Flat_tension_PDE_based_NN,if I want to change the boundary conditions,such as U=0andV=0(x=0) , what should I do.Forgive me for my stupidity,I cannot find the answer in code.

Looking forward to your reply.Please forgive me for any inconvenience.

A question of the derivatives

Thanks for sharing the codes of the PDE-based PINN. However, I cannot understand why the derivatives need to multiply and divide the model size, like in the code for first order derivatives: du_y, dv_x = du_ya/b, dv_xb/a, and for second order derivatives: du_xx, du_yy, du_xy = du_xx/a, du_yy*a/b**2, du_xy/b. We're guessing that these are modifications for implicit derivatives. We sincerely invite your guidance, thank you!

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.