-
-
Notifications
You must be signed in to change notification settings - Fork 220
Open
Labels
Description
Question❓
Hi,
I have a question regarding how to extract the residual vector in NeuralPDEs.jl. The loss function in PINNs is often written as:
where
- For internal points:
$r_i(\theta) = \mathcal{D}u(x_i) - f(x_i)$ , where$\mathcal{D}$ is the differential operator. - For boundary points:
$r_i(\theta) = u(x_i) - g(x_i)$ (with optional weighting constants).
Is there a way to obtain the mapping from
For reference, I am using the following tutorial: NeuralPDE GPU Tutorial. It seems like I should have all the necessary information after:
@named pde_system = PDESystem(eq, bcs, domains, [t, x, y], [u(t, x, y)])
prob = discretize(pde_system, discretization)
symprob = symbolic_discretize(pde_system, discretization)
However, I don't know how to extract the residual vector directly. Any guidance would be appreciated!
Thanks!