Collocation PINNs

Collocation PINNs are the most commonly encountered type of PINN in the literuate. The main concept is there is an unconnected point cloud (e.g. meshless) of inputs to a neural network . The goal is to minimize the residual of the strong form of the governing equation of interest via standard neural network optimizers such as stochastic gradient descent, Adam, etc.

Let's consider a general equation of the form and define its residual to be and approximate the solution by .

We can define a loss function for the residual as follow which can be expanded to

Regarding boundary conditions (BCs), the most common choice (although usually incorrect) is to weakly enforce BCs via additional loss function terms. Alternatively, signed distance functions (SDFs) can be used to exactly enforce Dirichlet and Neumann BCs by imposing structure on the solution space.

Sub-optimal Enforcement of BCs

For the loss function approach, terms for different BC types are as follows

The total loss function is then

Optimal Enforcement of BCs

For Dirchlet BCs where is a function constructed such that on . This ensures enforcement of Dirichlet BCs by construction and alleviates the burden of learning on the network for this relationship.

More complex relationships are also possible for enforcing Neumann and Robin BCs TODO right this down.

In this case, the total loss function is greatly simplified to just the residual term