MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __init__

Method __init__

python/dolfinx/fem/bcs.py:108–121  ·  view source on GitHub ↗

Initialise a Dirichlet boundary condition. Note: Dirichlet boundary conditions should normally be constructed using :func:`fem.dirichletbc` and not using this class initialiser. This class is combined with different base classes that depend o

(self, bc)

Source from the content-addressed store, hash-verified

106 )
107
108 def __init__(self, bc):
109 """Initialise a Dirichlet boundary condition.
110
111 Note:
112 Dirichlet boundary conditions should normally be
113 constructed using :func:`fem.dirichletbc` and not using this
114 class initialiser. This class is combined with different
115 base classes that depend on the scalar type of the boundary
116 condition.
117
118 Args:
119 bc: C++ wrapped Dirichlet condition.
120 """
121 self._cpp_object = bc
122
123 @property
124 def g(self) -> Function | Constant:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected