dolfinx.cpp.fem.petsc
PETSc-specific finite element module
Functions
|
Overloaded function. |
|
Create a PETSc Mat for bilinear form. |
|
Create monolithic sparse matrix for stacked bilinear forms. |
|
Create nested sparse matrix for bilinear forms. |
|
Create a monolithic vector for multiple (stacked) linear forms. |
|
Create nested vector for multiple (stacked) linear forms. |
|
|
|
|
|
- dolfinx.cpp.fem.petsc.assemble_matrix(*args, **kwargs)
Overloaded function.
assemble_matrix(A: mat, a: dolfinx::fem::Form<double>, constants: numpy.ndarray[numpy.float64], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]], bcs: List[dolfinx::fem::DirichletBC<double>], unrolled: bool = False) -> None
Assemble bilinear form into an existing PETSc matrix
assemble_matrix(A: mat, a: dolfinx::fem::Form<double>, constants: numpy.ndarray[numpy.float64], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]], rows0: numpy.ndarray[numpy.int8], rows1: numpy.ndarray[numpy.int8], unrolled: bool = False) -> None
- dolfinx.cpp.fem.petsc.create_matrix(a: dolfinx::fem::Form<double>, type: str = '') mat
Create a PETSc Mat for bilinear form.
- dolfinx.cpp.fem.petsc.create_matrix_block(a: List[List[dolfinx::fem::Form<double>]], type: str = '') mat
Create monolithic sparse matrix for stacked bilinear forms.
- dolfinx.cpp.fem.petsc.create_matrix_nest(a: List[List[dolfinx::fem::Form<double>]], types: List[List[str]] = []) mat
Create nested sparse matrix for bilinear forms.
- dolfinx.cpp.fem.petsc.create_vector_block(arg0: List[Tuple[dolfinx.cpp.common.IndexMap, int]]) vec
Create a monolithic vector for multiple (stacked) linear forms.
- dolfinx.cpp.fem.petsc.create_vector_nest(arg0: List[Tuple[dolfinx.cpp.common.IndexMap, int]]) vec
Create nested vector for multiple (stacked) linear forms.
- dolfinx.cpp.fem.petsc.discrete_gradient(arg0: dolfinx::fem::FunctionSpace, arg1: dolfinx::fem::FunctionSpace) mat
- dolfinx.cpp.fem.petsc.insert_diagonal(arg0: mat, arg1: dolfinx::fem::FunctionSpace, arg2: List[dolfinx::fem::DirichletBC<double>], arg3: float) None
- dolfinx.cpp.fem.petsc.interpolation_matrix(arg0: dolfinx::fem::FunctionSpace, arg1: dolfinx::fem::FunctionSpace) mat