cmgcds / fastvpinns

FastVPINNs - A tensor-driven acceleration of VPINNs for complex geometries
https://cmgcds.github.io/fastvpinns/
MIT License
22 stars 10 forks source link

Example of solving forward problems with hard boundary constraints. #3

Closed divijghose closed 4 months ago

divijghose commented 4 months ago
  1. main_poissons2d_hard.py is the main file using the model from model_hard.py
  2. The ansatz function used will depend on the solution. The ansatz function has to be changed in apply_hard_boundary_constraints accordingly.

Solution of the 2D Poisson problem with hard constraints

Exact Solution

exact_solution

Solution predicted by FastVPINNs after 50K epochs

prediction_50000

Point-wise error in solution

error_50000

thivinanandh commented 4 months ago

Github has issues with setting up ubuntu-22.04 on github actions. So updating the yaml file to reflect runs-on 20.04

issue link: https://github.com/orgs/community/discussions/120966