pihnn.bc#

Instances and methods for boundary conditions.

Classes#

scalar_bc

Base abstract class for all the boundary conditions employed in scalar problems (Laplace, biharmonic).

linear_elasticity_bc

Base abstract class for all the boundary conditions employed in linear elasticity.

dirichlet_bc

Dirichlet boundary condition:

neumann_bc

Neumann boundary condition:

dirichlet_neumann_bc

Dirichlet-Neumann boundary condition:

dirichlet_laplace_bc

Dirichlet-Laplace boundary condition:

stress_bc

Stress boundary condition:

displacement_bc

Displacement boundary condition:

symmetry_bc

Symmetry boundary condition:

normal_displacement_bc

Normal displacement boundary condition:

interface_bc

Interface condition for DD-PIHNNs.

Functions#

reset_variables()

For efficiency reasons, some variables are stored so that they are computed only once at every forward pass.