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
diffusion_1d_exactBC example #91
Comments
For BC:
For exact solution:
|
Thanks Lu Lu for promptly replying always. I am able to understand it better now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Lulu,
Do you have a reference for the problem that you are trying to solve in Diffusion 1d exact BC example?
The func function is specifying the expected output (target) of the Neural Network which is also the exact solution of PDE. Why are we specifying that? Using func we are generating self.train_y. How is this being used in calculating the losses? I don't see targets variable being used in the losses function in pde.py file.
What is the use of net.output_modify? (I haven't pulled your updated code yet) From what I understood you are doing a forward pass on the network and then you are modifying the outputs using this.
error = bc.error(self.train_x, model.net.inputs, outputs, beg, end)
Can you also clarify what is the difference between self.train_x and model.net.inputs. According to me self.train_x are the training points that get generated by the code while model.net.inputs is the tensor version of it which helps in calculating gradients.In the Euler Beam example, I faced a similar issues as mentioned in point 1. In that problem there are 10 domain points and 2 boundary points specified. The code generates 12 points total and out of them it filtes points for boundary conditions and finds one for each of them so in total it has 16 points in self.train_x. The first 4 correspond to each of the BC's and the rest 12 are for the pde. The self.train_y gets generated using
func
provided indde.data.PDE
. How is this y_train being used at all in calculating errors?I am actually dealing with a problem where I want to specify exact values of solution using a csv file and also generate more points in the domain to satisfy the BC. I felt that understanding this example first will help me move in the right direction. Thanks.
The text was updated successfully, but these errors were encountered: