Giter Club home page Giter Club logo

Comments (18)

lululxvi avatar lululxvi commented on June 20, 2024 1
  • All collocation points over domain and boundary points have been chosen simultaneously for learning-purpose
  • Backward pass invoked after completely exhausting the training points.

from deepxde.

sumantkrsoni avatar sumantkrsoni commented on June 20, 2024

Thanks Lu,

  • During Backward pass, how did you deal with the term of gradients wrt input value.
    I mean, only once the backward pass has been taken care and during gradient calculation of cost function wrt parameters (during back pass) would definitely include gradient of cost fn wrt input variable , then which input variable has been taken care for single back pass.

I am confused at this place because all training points have been exhausted in single forward pass and Only once the backward pass has been taken for parameters update then which input value will be playing a role for calculating gradients of cost function.

from deepxde.

lululxvi avatar lululxvi commented on June 20, 2024

There are two gradients to be computed: the gradient of loss wrt weights, and the gradient of network output wrt network inputs. The second gradient is computed by calling tf.gradient(). You may check the details of computing the total losses here:

def losses(self, targets, outputs, loss, model):

Hope this helps.

from deepxde.

sumantkrsoni avatar sumantkrsoni commented on June 20, 2024

Thanks, lu, you have cleared my doubts,

kindly give some reference for scaling a physical problem,

I mean, while coding in DeepXDE, one module is dedicated for SCALING of output value.

Can you suggest or give some reference for calculating the scale of a problem.

bcz, while simulation, the output result totally changing when the parameter of scale values are changing drastically.

from deepxde.

lululxvi avatar lululxvi commented on June 20, 2024

The scaling usually requires the understanding of the PDE, e.g., what physical process the PDE describes. Or one can use dimensional analysis.

Yes, the PDE solution could totally change when the parameters are changed, so the understanding of the PDE is very useful.

from deepxde.

sumantkrsoni avatar sumantkrsoni commented on June 20, 2024

You mean Non-Dimensionalization process and dimensional analysis etc.

Do you have any numerically calculated value for a simple problem that fulfill the scale analysis requirement in DEEPXDE.

I mean how final scale values are coming. It may help me a lot if you can give me reference or any example.

Thanks

from deepxde.

lululxvi avatar lululxvi commented on June 20, 2024

Sorry I don't have any reference. DeepXDE does not have specific requirement for this. The only reason is that if the scale is too large or too small, the network optimization is hard. The solution is problem dependent. If you have any specific problem, we can discuss case by case.

from deepxde.

sumantkrsoni avatar sumantkrsoni commented on June 20, 2024

from deepxde.

Rajat735 avatar Rajat735 commented on June 20, 2024

Hey , SanjuSoni
I have some doubts regardiing how to use boundary conditions when outputs are more than one?

from deepxde.

sumantkrsoni avatar sumantkrsoni commented on June 20, 2024

I am not getting your point

  • r u asking about computation point of view
    OR
  • Coding point of view

from deepxde.

Rajat735 avatar Rajat735 commented on June 20, 2024

Coding point of view. I have doubt in neumann condition i.e if the condition is directly not on the independent variable y .
Suppose in piezoelectric cantilever beam, the neumann condition is not on displacement but on stress. I have pde on displacement and voltage as independent variable with rectangular geometry

from deepxde.

Rajat735 avatar Rajat735 commented on June 20, 2024

image

from deepxde.

smao-astro avatar smao-astro commented on June 20, 2024

Hi @Rajat735 , I am wondering are you talking about coupled PDE problems, or you want to implement a specific boundary condition other than DirichletBC and NeumannBC? Would the example: examples/Lorenz_inverse.py help?

from deepxde.

Rajat735 avatar Rajat735 commented on June 20, 2024

Yes, I am talking about coupled PDE which i have to solve using machine learning. In this I have a boundary condition on the right surface of the cantilever beam as normal derivative of stress is equal to traction force . I am stuck in implementing this boundary condition.

from deepxde.

smao-astro avatar smao-astro commented on June 20, 2024

Yes, I am talking about coupled PDE which i have to solve using machine learning. In this I have a boundary condition on the right surface of the cantilever beam as normal derivative of stress is equal to traction force . I am stuck in implementing this boundary condition.

Sorry I do not know the exact form of your boundary condition, just a hint: since this is coupled PDE problem, which means let's say you have 4 unknowns, you perhaps want to specify the boundary conditions for each unknowns using component keyword argument. See class BC for how to use it.

from deepxde.

Rajat735 avatar Rajat735 commented on June 20, 2024

I can share the problem along with the code. May you help with it?

from deepxde.

lululxvi avatar lululxvi commented on June 20, 2024

@Rajat735 @smao-astro @sanjusoni Let us continue the discussion at #31

from deepxde.

sumantkrsoni avatar sumantkrsoni commented on June 20, 2024

It sounds good that @lululxvi @smao-astro who is profound in this field, acting on this problem.
I am also learning this type of problem.

Thanks @lululxvi @smao-astro

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.