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

Same Jacobian? #13

Closed tsarikahin closed 2 months ago

tsarikahin commented 3 months ago

Question

Thx a lot for the repo first of all.

My question would be about the Helmholtz problem (https://github.com/cmgcds/fastvpinns/blob/main/examples/forward_problems_2d/complex_mesh/helmholtz2d/main_helmholtz.py)

Helmholtz problem has two components of the residual loss; x and y contributions, requiring two components of Jacobian (J_x and J_y) as Kharizmi's implementation as well. However, you don't introduce the components of Jacobian. Or do I miss a point?

thivinanandh commented 2 months ago

The two components of jacobians calculated in 1D is multiplied to get a single jacobian value at a given quadrature point in a 2D space. This jacobian value is used to convert the test functions from reference domain to the actual domain. however, in fastVPINNs implementation, these calculations are performed internally within the FE module and the test function and its gradients are transfered to the actual domain, before being used in calculation of loss.

please go through the implementation section of the fastVPINNs paper for more clarity.