cudolfinx.bcs

Boundary conditions.

Classes

CUDADirichletBC(ctx, bcs)

Represents a collection of boundary conditions.

class cudolfinx.bcs.CUDADirichletBC(ctx, bcs: list[DirichletBC])[source]

Bases: object

Represents a collection of boundary conditions.

Initialize a collection of boundary conditions.

update(bcs: list[DirichletBC] | None = None)[source]

Update a subset of the boundary conditions.

Used for cases with time-varying boundary conditions whose device-side values need to be updated. By default all boundary conditions are updated