dolfinx.cpp.fem
FEM module
Functions
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Build and dofmap on a mesh. |
|
|
|
Overloaded function. |
|
Create ElementDofLayout object from a ufc dofmap. |
|
Create Form from a pointer to ufc_form. |
|
Create Form from a pointer to ufc_form. |
|
Create Form from a pointer to ufc_form. |
|
Create Form from a pointer to ufc_form. |
|
Create Form from a pointer to ufcx_form. |
|
Create Form from a pointer to ufcx_form. |
|
Create Form from a pointer to ufcx_form. |
|
Create Form from a pointer to ufcx_form. |
Overloaded function. |
|
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Build the index to (cell, local index) map from a dofmap ((cell, local index) -> index). |
Classes
|
Value constant with respect to integration domain |
|
Value constant with respect to integration domain |
|
Value constant with respect to integration domain |
|
Value constant with respect to integration domain |
|
Coordinate map element |
|
Coordinate map element |
|
Object for representing Dirichlet (essential) boundary conditions |
|
Object for representing Dirichlet (essential) boundary conditions |
|
Object for representing Dirichlet (essential) boundary conditions |
|
Object for representing Dirichlet (essential) boundary conditions |
|
DofMap object |
|
Object describing the layout of dofs on a cell |
|
An Expression |
|
An Expression |
|
An Expression |
|
An Expression |
|
Finite element object |
|
Finite element object |
|
Variational form object |
|
Variational form object |
|
Variational form object |
|
Variational form object |
|
Finite element function space |
|
Finite element function space |
|
A finite element function |
|
A finite element function |
|
A finite element function |
|
A finite element function |
|
Members: |
- class dolfinx.cpp.fem.Constant_complex128(self: dolfinx.cpp.fem.Constant_complex128, c: numpy.ndarray[numpy.complex128])
Bases:
pybind11_object
Value constant with respect to integration domain
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.Constant_complex64(self: dolfinx.cpp.fem.Constant_complex64, c: numpy.ndarray[numpy.complex64])
Bases:
pybind11_object
Value constant with respect to integration domain
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.Constant_float32(self: dolfinx.cpp.fem.Constant_float32, c: numpy.ndarray[numpy.float32])
Bases:
pybind11_object
Value constant with respect to integration domain
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.Constant_float64(self: dolfinx.cpp.fem.Constant_float64, c: numpy.ndarray[numpy.float64])
Bases:
pybind11_object
Value constant with respect to integration domain
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.CoordinateElement_float32(*args, **kwargs)
Bases:
pybind11_object
Coordinate map element
Overloaded function.
__init__(self: dolfinx.cpp.fem.CoordinateElement_float32, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
__init__(self: dolfinx.cpp.fem.CoordinateElement_float32, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None
- create_dof_layout(self: dolfinx.cpp.fem.CoordinateElement_float32) dolfinx::fem::ElementDofLayout
- property degree
- pull_back(self: dolfinx.cpp.fem.CoordinateElement_float32, x: numpy.ndarray[numpy.float32], cell_geometry: numpy.ndarray[numpy.float32]) numpy.ndarray[numpy.float32]
- push_forward(self: dolfinx.cpp.fem.CoordinateElement_float32, X: numpy.ndarray[numpy.float32], cell_geometry: numpy.ndarray[numpy.float32]) numpy.ndarray[numpy.float32]
- property variant
- class dolfinx.cpp.fem.CoordinateElement_float64(*args, **kwargs)
Bases:
pybind11_object
Coordinate map element
Overloaded function.
__init__(self: dolfinx.cpp.fem.CoordinateElement_float64, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
__init__(self: dolfinx.cpp.fem.CoordinateElement_float64, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None
- create_dof_layout(self: dolfinx.cpp.fem.CoordinateElement_float64) dolfinx::fem::ElementDofLayout
- property degree
- pull_back(self: dolfinx.cpp.fem.CoordinateElement_float64, x: numpy.ndarray[numpy.float64], cell_geometry: numpy.ndarray[numpy.float64]) numpy.ndarray[numpy.float64]
- push_forward(self: dolfinx.cpp.fem.CoordinateElement_float64, X: numpy.ndarray[numpy.float64], cell_geometry: numpy.ndarray[numpy.float64]) numpy.ndarray[numpy.float64]
- property variant
- class dolfinx.cpp.fem.DirichletBC_complex128(*args, **kwargs)
Bases:
pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: numpy.ndarray[numpy.complex128], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<double>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: dolfinx::fem::Constant<std::complex<double> >, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<double>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: dolfinx::fem::Function<std::complex<double>, double>, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: dolfinx::fem::Function<std::complex<double>, double>, dofs: Annotated[List[numpy.ndarray[numpy.int32]], FixedSize(2)], V: dolfinx::fem::FunctionSpace<double>) -> None
- dof_indices(self: dolfinx.cpp.fem.DirichletBC_complex128) Tuple[numpy.ndarray[numpy.int32], int]
- property dtype
- property function_space
- property value
- class dolfinx.cpp.fem.DirichletBC_complex64(*args, **kwargs)
Bases:
pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: numpy.ndarray[numpy.complex64], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<float>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: dolfinx::fem::Constant<std::complex<float> >, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<float>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: dolfinx::fem::Function<std::complex<float>, float>, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: dolfinx::fem::Function<std::complex<float>, float>, dofs: Annotated[List[numpy.ndarray[numpy.int32]], FixedSize(2)], V: dolfinx::fem::FunctionSpace<float>) -> None
- dof_indices(self: dolfinx.cpp.fem.DirichletBC_complex64) Tuple[numpy.ndarray[numpy.int32], int]
- property dtype
- property function_space
- property value
- class dolfinx.cpp.fem.DirichletBC_float32(*args, **kwargs)
Bases:
pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: numpy.ndarray[numpy.float32], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<float>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: dolfinx::fem::Constant<float>, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<float>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: dolfinx::fem::Function<float, float>, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: dolfinx::fem::Function<float, float>, dofs: Annotated[List[numpy.ndarray[numpy.int32]], FixedSize(2)], V: dolfinx::fem::FunctionSpace<float>) -> None
- dof_indices(self: dolfinx.cpp.fem.DirichletBC_float32) Tuple[numpy.ndarray[numpy.int32], int]
- property dtype
- property function_space
- property value
- class dolfinx.cpp.fem.DirichletBC_float64(*args, **kwargs)
Bases:
pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: numpy.ndarray[numpy.float64], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<double>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: dolfinx::fem::Constant<double>, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace<double>) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: dolfinx::fem::Function<double, double>, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: dolfinx::fem::Function<double, double>, dofs: Annotated[List[numpy.ndarray[numpy.int32]], FixedSize(2)], V: dolfinx::fem::FunctionSpace<double>) -> None
- dof_indices(self: dolfinx.cpp.fem.DirichletBC_float64) Tuple[numpy.ndarray[numpy.int32], int]
- property dtype
- property function_space
- property value
- class dolfinx.cpp.fem.DofMap(self: dolfinx.cpp.fem.DofMap, element_dof_layout: dolfinx.cpp.fem.ElementDofLayout, index_map: dolfinx.cpp.common.IndexMap, index_map_bs: int, dofmap: dolfinx.cpp.graph.AdjacencyList_int32, bs: int)
Bases:
pybind11_object
DofMap object
- property bs
- cell_dofs(self: dolfinx.cpp.fem.DofMap, cell: int) numpy.ndarray[numpy.int32]
- property dof_layout
- property index_map
- property index_map_bs
- map(self: dolfinx.cpp.fem.DofMap) numpy.ndarray[numpy.int32]
- class dolfinx.cpp.fem.ElementDofLayout(self: dolfinx.cpp.fem.ElementDofLayout, block_size: int, endity_dofs: List[List[List[int]]], entity_closure_dofs: List[List[List[int]]], parent_map: List[int], sub_layouts: List[dolfinx.cpp.fem.ElementDofLayout])
Bases:
pybind11_object
Object describing the layout of dofs on a cell
- property block_size
- entity_closure_dofs(self: dolfinx.cpp.fem.ElementDofLayout, dim: int, entity_index: int) List[int]
- entity_dofs(self: dolfinx.cpp.fem.ElementDofLayout, dim: int, entity_index: int) List[int]
- property num_dofs
- num_entity_closure_dofs(self: dolfinx.cpp.fem.ElementDofLayout, dim: int) int
- num_entity_dofs(self: dolfinx.cpp.fem.ElementDofLayout, dim: int) int
- class dolfinx.cpp.fem.Expression_complex128(self: dolfinx.cpp.fem.Expression_complex128, coefficients: List[dolfinx.cpp.fem.Function_complex128], constants: List[dolfinx.cpp.fem.Constant_complex128], X: numpy.ndarray[numpy.float64], fn: int, value_shape: List[int], argument_function_space: dolfinx::fem::FunctionSpace<double>)
Bases:
pybind11_object
An Expression
- X(self: dolfinx.cpp.fem.Expression_complex128) numpy.ndarray[numpy.float64]
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_complex128, mesh: dolfinx.cpp.mesh.Mesh_float64, active_cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.complex128]) None
- property value_shape
- property value_size
- class dolfinx.cpp.fem.Expression_complex64(self: dolfinx.cpp.fem.Expression_complex64, coefficients: List[dolfinx.cpp.fem.Function_complex64], constants: List[dolfinx.cpp.fem.Constant_complex64], X: numpy.ndarray[numpy.float32], fn: int, value_shape: List[int], argument_function_space: dolfinx::fem::FunctionSpace<float>)
Bases:
pybind11_object
An Expression
- X(self: dolfinx.cpp.fem.Expression_complex64) numpy.ndarray[numpy.float32]
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_complex64, mesh: dolfinx.cpp.mesh.Mesh_float32, active_cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.complex64]) None
- property value_shape
- property value_size
- class dolfinx.cpp.fem.Expression_float32(self: dolfinx.cpp.fem.Expression_float32, coefficients: List[dolfinx.cpp.fem.Function_float32], constants: List[dolfinx.cpp.fem.Constant_float32], X: numpy.ndarray[numpy.float32], fn: int, value_shape: List[int], argument_function_space: dolfinx::fem::FunctionSpace<float>)
Bases:
pybind11_object
An Expression
- X(self: dolfinx.cpp.fem.Expression_float32) numpy.ndarray[numpy.float32]
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_float32, mesh: dolfinx.cpp.mesh.Mesh_float32, active_cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.float32]) None
- property value_shape
- property value_size
- class dolfinx.cpp.fem.Expression_float64(self: dolfinx.cpp.fem.Expression_float64, coefficients: List[dolfinx.cpp.fem.Function_float64], constants: List[dolfinx.cpp.fem.Constant_float64], X: numpy.ndarray[numpy.float64], fn: int, value_shape: List[int], argument_function_space: dolfinx::fem::FunctionSpace<double>)
Bases:
pybind11_object
An Expression
- X(self: dolfinx.cpp.fem.Expression_float64) numpy.ndarray[numpy.float64]
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_float64, mesh: dolfinx.cpp.mesh.Mesh_float64, active_cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.float64]) None
- property value_shape
- property value_size
- class dolfinx.cpp.fem.FiniteElement_float32(self: dolfinx.cpp.fem.FiniteElement_float32, ufcx_element: int)
Bases:
pybind11_object
Finite element object
- apply_dof_transformation(*args, **kwargs)
Overloaded function.
apply_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float32, x: numpy.ndarray[numpy.float32], cell_permutation: int, dim: int) -> None
apply_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float32, x: numpy.ndarray[numpy.complex64], cell_permutation: int, dim: int) -> None
- apply_inverse_transpose_dof_transformation(*args, **kwargs)
Overloaded function.
apply_inverse_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float32, x: numpy.ndarray[numpy.float32], cell_permutation: int, dim: int) -> None
apply_inverse_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float32, x: numpy.ndarray[numpy.complex64], cell_permutation: int, dim: int) -> None
- apply_transpose_dof_transformation(*args, **kwargs)
Overloaded function.
apply_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float32, x: numpy.ndarray[numpy.float32], cell_permutation: int, dim: int) -> None
apply_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float32, x: numpy.ndarray[numpy.complex64], cell_permutation: int, dim: int) -> None
- property basix_element
- property interpolation_ident
- interpolation_points(self: dolfinx.cpp.fem.FiniteElement_float32) numpy.ndarray[numpy.float32]
- property needs_dof_transformations
- property num_sub_elements
- signature(self: dolfinx.cpp.fem.FiniteElement_float32) str
- property space_dimension
- property value_shape
- class dolfinx.cpp.fem.FiniteElement_float64(self: dolfinx.cpp.fem.FiniteElement_float64, ufcx_element: int)
Bases:
pybind11_object
Finite element object
- apply_dof_transformation(*args, **kwargs)
Overloaded function.
apply_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float64, x: numpy.ndarray[numpy.float64], cell_permutation: int, dim: int) -> None
apply_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float64, x: numpy.ndarray[numpy.complex128], cell_permutation: int, dim: int) -> None
- apply_inverse_transpose_dof_transformation(*args, **kwargs)
Overloaded function.
apply_inverse_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float64, x: numpy.ndarray[numpy.float64], cell_permutation: int, dim: int) -> None
apply_inverse_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float64, x: numpy.ndarray[numpy.complex128], cell_permutation: int, dim: int) -> None
- apply_transpose_dof_transformation(*args, **kwargs)
Overloaded function.
apply_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float64, x: numpy.ndarray[numpy.float64], cell_permutation: int, dim: int) -> None
apply_transpose_dof_transformation(self: dolfinx.cpp.fem.FiniteElement_float64, x: numpy.ndarray[numpy.complex128], cell_permutation: int, dim: int) -> None
- property basix_element
- property interpolation_ident
- interpolation_points(self: dolfinx.cpp.fem.FiniteElement_float64) numpy.ndarray[numpy.float64]
- property needs_dof_transformations
- property num_sub_elements
- signature(self: dolfinx.cpp.fem.FiniteElement_float64) str
- property space_dimension
- property value_shape
- class dolfinx.cpp.fem.Form_complex128(*args, **kwargs)
Bases:
pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_complex128, spaces: List[dolfinx::fem::FunctionSpace<double>], integrals: Dict[dolfinx::fem::IntegralType, List[Tuple[int, object, numpy.ndarray[numpy.int32]]]], coefficients: List[dolfinx.cpp.fem.Function_complex128], constants: List[dolfinx.cpp.fem.Constant_complex128], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh_float64 = None) -> None
__init__(self: dolfinx.cpp.fem.Form_complex128, form: int, spaces: List[dolfinx::fem::FunctionSpace<double>], coefficients: List[dolfinx.cpp.fem.Function_complex128], constants: List[dolfinx.cpp.fem.Constant_complex128], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float64) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_complex128, type: dolfinx::fem::IntegralType, i: int) numpy.ndarray[numpy.int32]
- property dtype
- property function_spaces
- integral_ids(self: dolfinx.cpp.fem.Form_complex128, arg0: dolfinx::fem::IntegralType) List[int]
- property integral_types
- property mesh
- property needs_facet_permutations
- property rank
- class dolfinx.cpp.fem.Form_complex64(*args, **kwargs)
Bases:
pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_complex64, spaces: List[dolfinx::fem::FunctionSpace<float>], integrals: Dict[dolfinx::fem::IntegralType, List[Tuple[int, object, numpy.ndarray[numpy.int32]]]], coefficients: List[dolfinx.cpp.fem.Function_complex64], constants: List[dolfinx.cpp.fem.Constant_complex64], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh_float32 = None) -> None
__init__(self: dolfinx.cpp.fem.Form_complex64, form: int, spaces: List[dolfinx::fem::FunctionSpace<float>], coefficients: List[dolfinx.cpp.fem.Function_complex64], constants: List[dolfinx.cpp.fem.Constant_complex64], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float32) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_complex64, type: dolfinx::fem::IntegralType, i: int) numpy.ndarray[numpy.int32]
- property dtype
- property function_spaces
- integral_ids(self: dolfinx.cpp.fem.Form_complex64, arg0: dolfinx::fem::IntegralType) List[int]
- property integral_types
- property mesh
- property needs_facet_permutations
- property rank
- class dolfinx.cpp.fem.Form_float32(*args, **kwargs)
Bases:
pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_float32, spaces: List[dolfinx::fem::FunctionSpace<float>], integrals: Dict[dolfinx::fem::IntegralType, List[Tuple[int, object, numpy.ndarray[numpy.int32]]]], coefficients: List[dolfinx.cpp.fem.Function_float32], constants: List[dolfinx.cpp.fem.Constant_float32], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh_float32 = None) -> None
__init__(self: dolfinx.cpp.fem.Form_float32, form: int, spaces: List[dolfinx::fem::FunctionSpace<float>], coefficients: List[dolfinx.cpp.fem.Function_float32], constants: List[dolfinx.cpp.fem.Constant_float32], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float32) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_float32, type: dolfinx::fem::IntegralType, i: int) numpy.ndarray[numpy.int32]
- property dtype
- property function_spaces
- integral_ids(self: dolfinx.cpp.fem.Form_float32, arg0: dolfinx::fem::IntegralType) List[int]
- property integral_types
- property mesh
- property needs_facet_permutations
- property rank
- class dolfinx.cpp.fem.Form_float64(*args, **kwargs)
Bases:
pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_float64, spaces: List[dolfinx::fem::FunctionSpace<double>], integrals: Dict[dolfinx::fem::IntegralType, List[Tuple[int, object, numpy.ndarray[numpy.int32]]]], coefficients: List[dolfinx.cpp.fem.Function_float64], constants: List[dolfinx.cpp.fem.Constant_float64], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh_float64 = None) -> None
__init__(self: dolfinx.cpp.fem.Form_float64, form: int, spaces: List[dolfinx::fem::FunctionSpace<double>], coefficients: List[dolfinx.cpp.fem.Function_float64], constants: List[dolfinx.cpp.fem.Constant_float64], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float64) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_float64, type: dolfinx::fem::IntegralType, i: int) numpy.ndarray[numpy.int32]
- property dtype
- property function_spaces
- integral_ids(self: dolfinx.cpp.fem.Form_float64, arg0: dolfinx::fem::IntegralType) List[int]
- property integral_types
- property mesh
- property needs_facet_permutations
- property rank
- class dolfinx.cpp.fem.FunctionSpace_float32(self: dolfinx.cpp.fem.FunctionSpace_float32, mesh: dolfinx.cpp.mesh.Mesh_float32, element: dolfinx::fem::FiniteElement<float>, dofmap: dolfinx.cpp.fem.DofMap)
Bases:
pybind11_object
Finite element function space
- collapse(self: dolfinx.cpp.fem.FunctionSpace_float32) Tuple[dolfinx.cpp.fem.FunctionSpace_float32, List[int]]
- component(self: dolfinx.cpp.fem.FunctionSpace_float32) List[int]
- contains(self: dolfinx.cpp.fem.FunctionSpace_float32, V: dolfinx.cpp.fem.FunctionSpace_float32) bool
- property dofmap
- property element
- property mesh
- sub(self: dolfinx.cpp.fem.FunctionSpace_float32, component: List[int]) dolfinx.cpp.fem.FunctionSpace_float32
- tabulate_dof_coordinates(self: dolfinx.cpp.fem.FunctionSpace_float32) numpy.ndarray[numpy.float32]
- class dolfinx.cpp.fem.FunctionSpace_float64(self: dolfinx.cpp.fem.FunctionSpace_float64, mesh: dolfinx.cpp.mesh.Mesh_float64, element: dolfinx::fem::FiniteElement<double>, dofmap: dolfinx.cpp.fem.DofMap)
Bases:
pybind11_object
Finite element function space
- collapse(self: dolfinx.cpp.fem.FunctionSpace_float64) Tuple[dolfinx.cpp.fem.FunctionSpace_float64, List[int]]
- component(self: dolfinx.cpp.fem.FunctionSpace_float64) List[int]
- contains(self: dolfinx.cpp.fem.FunctionSpace_float64, V: dolfinx.cpp.fem.FunctionSpace_float64) bool
- property dofmap
- property element
- property mesh
- sub(self: dolfinx.cpp.fem.FunctionSpace_float64, component: List[int]) dolfinx.cpp.fem.FunctionSpace_float64
- tabulate_dof_coordinates(self: dolfinx.cpp.fem.FunctionSpace_float64) numpy.ndarray[numpy.float64]
- class dolfinx.cpp.fem.Function_complex128(*args, **kwargs)
Bases:
pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_complex128, arg0: dolfinx::fem::FunctionSpace<double>) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_complex128, arg0: dolfinx::fem::FunctionSpace<double>, arg1: dolfinx::la::Vector<std::complex<double>, std::vector<std::complex<double>, std::allocator<std::complex<double> > > >) -> None
- collapse(self: dolfinx.cpp.fem.Function_complex128) dolfinx.cpp.fem.Function_complex128
Collapse sub-function view
- eval(self: dolfinx.cpp.fem.Function_complex128, x: numpy.ndarray[numpy.float64], cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.complex128]) None
Evaluate Function
- property function_space
- interpolate(*args, **kwargs)
Overloaded function.
interpolate(self: dolfinx.cpp.fem.Function_complex128, f: numpy.ndarray[numpy.complex128], cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an expression function
interpolate(self: dolfinx.cpp.fem.Function_complex128, u: dolfinx.cpp.fem.Function_complex128, cells: numpy.ndarray[numpy.int32], nmm_interpolation_data: Tuple[List[int], List[int], List[float], List[int]]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_complex128, expr: dolfinx::fem::Expression<std::complex<double>, double>, cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_complex128, f_ptr: int, cells: numpy.ndarray[numpy.int32]) None
Interpolate using a pointer to an expression with a C signature
- property name
- sub(self: dolfinx.cpp.fem.Function_complex128, arg0: int) dolfinx.cpp.fem.Function_complex128
Return sub-function (view into parent Function
- property x
Return the vector associated with the finite element Function
- class dolfinx.cpp.fem.Function_complex64(*args, **kwargs)
Bases:
pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_complex64, arg0: dolfinx::fem::FunctionSpace<float>) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_complex64, arg0: dolfinx::fem::FunctionSpace<float>, arg1: dolfinx::la::Vector<std::complex<float>, std::vector<std::complex<float>, std::allocator<std::complex<float> > > >) -> None
- collapse(self: dolfinx.cpp.fem.Function_complex64) dolfinx.cpp.fem.Function_complex64
Collapse sub-function view
- eval(self: dolfinx.cpp.fem.Function_complex64, x: numpy.ndarray[numpy.float32], cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.complex64]) None
Evaluate Function
- property function_space
- interpolate(*args, **kwargs)
Overloaded function.
interpolate(self: dolfinx.cpp.fem.Function_complex64, f: numpy.ndarray[numpy.complex64], cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an expression function
interpolate(self: dolfinx.cpp.fem.Function_complex64, u: dolfinx.cpp.fem.Function_complex64, cells: numpy.ndarray[numpy.int32], nmm_interpolation_data: Tuple[List[int], List[int], List[float], List[int]]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_complex64, expr: dolfinx::fem::Expression<std::complex<float>, float>, cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_complex64, f_ptr: int, cells: numpy.ndarray[numpy.int32]) None
Interpolate using a pointer to an expression with a C signature
- property name
- sub(self: dolfinx.cpp.fem.Function_complex64, arg0: int) dolfinx.cpp.fem.Function_complex64
Return sub-function (view into parent Function
- property x
Return the vector associated with the finite element Function
- class dolfinx.cpp.fem.Function_float32(*args, **kwargs)
Bases:
pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_float32, arg0: dolfinx::fem::FunctionSpace<float>) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_float32, arg0: dolfinx::fem::FunctionSpace<float>, arg1: dolfinx::la::Vector<float, std::vector<float, std::allocator<float> > >) -> None
- collapse(self: dolfinx.cpp.fem.Function_float32) dolfinx.cpp.fem.Function_float32
Collapse sub-function view
- eval(self: dolfinx.cpp.fem.Function_float32, x: numpy.ndarray[numpy.float32], cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.float32]) None
Evaluate Function
- property function_space
- interpolate(*args, **kwargs)
Overloaded function.
interpolate(self: dolfinx.cpp.fem.Function_float32, f: numpy.ndarray[numpy.float32], cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an expression function
interpolate(self: dolfinx.cpp.fem.Function_float32, u: dolfinx.cpp.fem.Function_float32, cells: numpy.ndarray[numpy.int32], nmm_interpolation_data: Tuple[List[int], List[int], List[float], List[int]]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_float32, expr: dolfinx::fem::Expression<float, float>, cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_float32, f_ptr: int, cells: numpy.ndarray[numpy.int32]) None
Interpolate using a pointer to an expression with a C signature
- property name
- sub(self: dolfinx.cpp.fem.Function_float32, arg0: int) dolfinx.cpp.fem.Function_float32
Return sub-function (view into parent Function
- property x
Return the vector associated with the finite element Function
- class dolfinx.cpp.fem.Function_float64(*args, **kwargs)
Bases:
pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_float64, arg0: dolfinx::fem::FunctionSpace<double>) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_float64, arg0: dolfinx::fem::FunctionSpace<double>, arg1: dolfinx::la::Vector<double, std::vector<double, std::allocator<double> > >) -> None
- collapse(self: dolfinx.cpp.fem.Function_float64) dolfinx.cpp.fem.Function_float64
Collapse sub-function view
- eval(self: dolfinx.cpp.fem.Function_float64, x: numpy.ndarray[numpy.float64], cells: numpy.ndarray[numpy.int32], values: numpy.ndarray[numpy.float64]) None
Evaluate Function
- property function_space
- interpolate(*args, **kwargs)
Overloaded function.
interpolate(self: dolfinx.cpp.fem.Function_float64, f: numpy.ndarray[numpy.float64], cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an expression function
interpolate(self: dolfinx.cpp.fem.Function_float64, u: dolfinx.cpp.fem.Function_float64, cells: numpy.ndarray[numpy.int32], nmm_interpolation_data: Tuple[List[int], List[int], List[float], List[int]]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_float64, expr: dolfinx::fem::Expression<double, double>, cells: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_float64, f_ptr: int, cells: numpy.ndarray[numpy.int32]) None
Interpolate using a pointer to an expression with a C signature
- property name
- sub(self: dolfinx.cpp.fem.Function_float64, arg0: int) dolfinx.cpp.fem.Function_float64
Return sub-function (view into parent Function
- property x
Return the vector associated with the finite element Function
- class dolfinx.cpp.fem.IntegralType(self: dolfinx.cpp.fem.IntegralType, value: int)
Bases:
pybind11_object
Members:
cell
exterior_facet
interior_facet
vertex
- cell = <IntegralType.cell: 0>
- exterior_facet = <IntegralType.exterior_facet: 1>
- interior_facet = <IntegralType.interior_facet: 2>
- property name
- property value
- vertex = <IntegralType.vertex: 3>
- dolfinx.cpp.fem.apply_lifting(*args, **kwargs)
Overloaded function.
apply_lifting(b: numpy.ndarray[numpy.float32], a: List[dolfinx::fem::Form<float, float>], constants: List[numpy.ndarray[numpy.float32]], coeffs: List[Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]]], bcs1: List[List[dolfinx::fem::DirichletBC<float, float>]], x0: List[numpy.ndarray[numpy.float32]], scale: float) -> None
Modify vector for lifted boundary conditions
apply_lifting(b: numpy.ndarray[numpy.float64], a: List[dolfinx::fem::Form<double, double>], constants: List[numpy.ndarray[numpy.float64]], coeffs: List[Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]]], bcs1: List[List[dolfinx::fem::DirichletBC<double, double>]], x0: List[numpy.ndarray[numpy.float64]], scale: float) -> None
Modify vector for lifted boundary conditions
apply_lifting(b: numpy.ndarray[numpy.complex64], a: List[dolfinx::fem::Form<std::complex<float>, float>], constants: List[numpy.ndarray[numpy.complex64]], coeffs: List[Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex64]]], bcs1: List[List[dolfinx::fem::DirichletBC<std::complex<float>, float>]], x0: List[numpy.ndarray[numpy.complex64]], scale: complex) -> None
Modify vector for lifted boundary conditions
apply_lifting(b: numpy.ndarray[numpy.complex128], a: List[dolfinx::fem::Form<std::complex<double>, double>], constants: List[numpy.ndarray[numpy.complex128]], coeffs: List[Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex128]]], bcs1: List[List[dolfinx::fem::DirichletBC<std::complex<double>, double>]], x0: List[numpy.ndarray[numpy.complex128]], scale: complex) -> None
Modify vector for lifted boundary conditions
- dolfinx.cpp.fem.assemble_matrix(*args, **kwargs)
Overloaded function.
assemble_matrix(A: dolfinx::la::MatrixCSR<float, std::vector<float, std::allocator<float> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, a: dolfinx::fem::Form<float, float>, constants: numpy.ndarray[numpy.float32], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]], bcs: List[dolfinx::fem::DirichletBC<float, float>]) -> None
Experimental.
assemble_matrix(fin: Callable[[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32], numpy.ndarray[numpy.float32]], int], form: dolfinx::fem::Form<float, float>, bcs: List[dolfinx::fem::DirichletBC<float, float>]) -> None
Experimental assembly with Python insertion function. This will be slow. Use for testing only.
assemble_matrix(A: dolfinx::la::MatrixCSR<double, std::vector<double, std::allocator<double> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, a: dolfinx::fem::Form<double, double>, constants: numpy.ndarray[numpy.float64], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]], bcs: List[dolfinx::fem::DirichletBC<double, double>]) -> None
Experimental.
assemble_matrix(fin: Callable[[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32], numpy.ndarray[numpy.float64]], int], form: dolfinx::fem::Form<double, double>, bcs: List[dolfinx::fem::DirichletBC<double, double>]) -> None
Experimental assembly with Python insertion function. This will be slow. Use for testing only.
assemble_matrix(A: dolfinx::la::MatrixCSR<std::complex<float>, std::vector<std::complex<float>, std::allocator<std::complex<float> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, a: dolfinx::fem::Form<std::complex<float>, float>, constants: numpy.ndarray[numpy.complex64], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex64]], bcs: List[dolfinx::fem::DirichletBC<std::complex<float>, float>]) -> None
Experimental.
assemble_matrix(fin: Callable[[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32], numpy.ndarray[numpy.complex64]], int], form: dolfinx::fem::Form<std::complex<float>, float>, bcs: List[dolfinx::fem::DirichletBC<std::complex<float>, float>]) -> None
Experimental assembly with Python insertion function. This will be slow. Use for testing only.
assemble_matrix(A: dolfinx::la::MatrixCSR<std::complex<double>, std::vector<std::complex<double>, std::allocator<std::complex<double> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, a: dolfinx::fem::Form<std::complex<double>, double>, constants: numpy.ndarray[numpy.complex128], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex128]], bcs: List[dolfinx::fem::DirichletBC<std::complex<double>, double>]) -> None
Experimental.
assemble_matrix(fin: Callable[[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32], numpy.ndarray[numpy.complex128]], int], form: dolfinx::fem::Form<std::complex<double>, double>, bcs: List[dolfinx::fem::DirichletBC<std::complex<double>, double>]) -> None
Experimental assembly with Python insertion function. This will be slow. Use for testing only.
- dolfinx.cpp.fem.assemble_scalar(*args, **kwargs)
Overloaded function.
assemble_scalar(M: dolfinx::fem::Form<float, float>, constants: numpy.ndarray[numpy.float32], coefficients: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]]) -> float
Assemble functional over mesh with provided constants and coefficients
assemble_scalar(M: dolfinx::fem::Form<double, double>, constants: numpy.ndarray[numpy.float64], coefficients: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]]) -> float
Assemble functional over mesh with provided constants and coefficients
assemble_scalar(M: dolfinx::fem::Form<std::complex<float>, float>, constants: numpy.ndarray[numpy.complex64], coefficients: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex64]]) -> complex
Assemble functional over mesh with provided constants and coefficients
assemble_scalar(M: dolfinx::fem::Form<std::complex<double>, double>, constants: numpy.ndarray[numpy.complex128], coefficients: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex128]]) -> complex
Assemble functional over mesh with provided constants and coefficients
- dolfinx.cpp.fem.assemble_vector(*args, **kwargs)
Overloaded function.
assemble_vector(b: numpy.ndarray[numpy.float32], L: dolfinx::fem::Form<float, float>, constants: numpy.ndarray[numpy.float32], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]]) -> None
Assemble linear form into an existing vector with pre-packed constants and coefficients
assemble_vector(b: numpy.ndarray[numpy.float64], L: dolfinx::fem::Form<double, double>, constants: numpy.ndarray[numpy.float64], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]]) -> None
Assemble linear form into an existing vector with pre-packed constants and coefficients
assemble_vector(b: numpy.ndarray[numpy.complex64], L: dolfinx::fem::Form<std::complex<float>, float>, constants: numpy.ndarray[numpy.complex64], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex64]]) -> None
Assemble linear form into an existing vector with pre-packed constants and coefficients
assemble_vector(b: numpy.ndarray[numpy.complex128], L: dolfinx::fem::Form<std::complex<double>, double>, constants: numpy.ndarray[numpy.complex128], coeffs: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex128]]) -> None
Assemble linear form into an existing vector with pre-packed constants and coefficients
- dolfinx.cpp.fem.build_dofmap(comm: MPICommWrapper, topology: dolfinx.cpp.mesh.Topology, layout: dolfinx::fem::ElementDofLayout) Tuple[dolfinx.cpp.common.IndexMap, int, List[int]]
Build and dofmap on a mesh.
- dolfinx.cpp.fem.compute_integration_domains(integral_type: dolfinx::fem::IntegralType, meshtags: dolfinx.cpp.mesh.MeshTags_int32) List[Tuple[int, List[int]]]
- dolfinx.cpp.fem.create_dofmap(*args, **kwargs)
Overloaded function.
create_dofmap(comm: MPICommWrapper, dofmap: int, topology: dolfinx.cpp.mesh.Topology, element: dolfinx.cpp.fem.FiniteElement_float32) -> dolfinx.cpp.fem.DofMap
Create DofMap object from a pointer to ufcx_dofmap.
create_dofmap(comm: MPICommWrapper, dofmap: int, topology: dolfinx.cpp.mesh.Topology, element: dolfinx.cpp.fem.FiniteElement_float64) -> dolfinx.cpp.fem.DofMap
Create DofMap object from a pointer to ufcx_dofmap.
- dolfinx.cpp.fem.create_element_dof_layout(dofmap: int, cell_type: dolfinx.cpp.mesh.CellType, parent_map: List[int]) dolfinx::fem::ElementDofLayout
Create ElementDofLayout object from a ufc dofmap.
- dolfinx.cpp.fem.create_expression_complex128(expression: int, coefficients: List[dolfinx.cpp.fem.Function_complex128], constants: List[dolfinx.cpp.fem.Constant_complex128], argument_function_space: dolfinx::fem::FunctionSpace<double>) dolfinx.cpp.fem.Expression_complex128
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_expression_complex64(expression: int, coefficients: List[dolfinx.cpp.fem.Function_complex64], constants: List[dolfinx.cpp.fem.Constant_complex64], argument_function_space: dolfinx::fem::FunctionSpace<float>) dolfinx.cpp.fem.Expression_complex64
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_expression_float32(expression: int, coefficients: List[dolfinx.cpp.fem.Function_float32], constants: List[dolfinx.cpp.fem.Constant_float32], argument_function_space: dolfinx::fem::FunctionSpace<float>) dolfinx.cpp.fem.Expression_float32
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_expression_float64(expression: int, coefficients: List[dolfinx.cpp.fem.Function_float64], constants: List[dolfinx.cpp.fem.Constant_float64], argument_function_space: dolfinx::fem::FunctionSpace<double>) dolfinx.cpp.fem.Expression_float64
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_form_complex128(form: int, spaces: List[dolfinx::fem::FunctionSpace<double>], coefficients: List[dolfinx.cpp.fem.Function_complex128], constants: List[dolfinx.cpp.fem.Constant_complex128], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float64) dolfinx.cpp.fem.Form_complex128
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_form_complex64(form: int, spaces: List[dolfinx::fem::FunctionSpace<float>], coefficients: List[dolfinx.cpp.fem.Function_complex64], constants: List[dolfinx.cpp.fem.Constant_complex64], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float32) dolfinx.cpp.fem.Form_complex64
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_form_float32(form: int, spaces: List[dolfinx::fem::FunctionSpace<float>], coefficients: List[dolfinx.cpp.fem.Function_float32], constants: List[dolfinx.cpp.fem.Constant_float32], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float32) dolfinx.cpp.fem.Form_float32
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_form_float64(form: int, spaces: List[dolfinx::fem::FunctionSpace<double>], coefficients: List[dolfinx.cpp.fem.Function_float64], constants: List[dolfinx.cpp.fem.Constant_float64], subdomains: Dict[dolfinx::fem::IntegralType, List[Tuple[int, numpy.ndarray[numpy.int32]]]], mesh: dolfinx.cpp.mesh.Mesh_float64) dolfinx.cpp.fem.Form_float64
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_nonmatching_meshes_interpolation_data(*args, **kwargs)
Overloaded function.
create_nonmatching_meshes_interpolation_data(mesh0: dolfinx.cpp.mesh.Mesh_float32, element0: dolfinx.cpp.fem.FiniteElement_float32, mesh1: dolfinx.cpp.mesh.Mesh_float32) -> Tuple[List[int], List[int], List[float], List[int]]
create_nonmatching_meshes_interpolation_data(geometry0: dolfinx.cpp.mesh.Geometry_float32, element0: dolfinx.cpp.fem.FiniteElement_float32, mesh1: dolfinx.cpp.mesh.Mesh_float32, cells: numpy.ndarray[numpy.int32]) -> Tuple[List[int], List[int], List[float], List[int]]
create_nonmatching_meshes_interpolation_data(mesh0: dolfinx.cpp.mesh.Mesh_float64, element0: dolfinx.cpp.fem.FiniteElement_float64, mesh1: dolfinx.cpp.mesh.Mesh_float64) -> Tuple[List[int], List[int], List[float], List[int]]
create_nonmatching_meshes_interpolation_data(geometry0: dolfinx.cpp.mesh.Geometry_float64, element0: dolfinx.cpp.fem.FiniteElement_float64, mesh1: dolfinx.cpp.mesh.Mesh_float64, cells: numpy.ndarray[numpy.int32]) -> Tuple[List[int], List[int], List[float], List[int]]
- dolfinx.cpp.fem.create_sparsity_pattern(*args, **kwargs)
Overloaded function.
create_sparsity_pattern(a: dolfinx.cpp.fem.Form_float32) -> dolfinx::la::SparsityPattern
Create a sparsity pattern.
create_sparsity_pattern(a: dolfinx.cpp.fem.Form_float64) -> dolfinx::la::SparsityPattern
Create a sparsity pattern.
create_sparsity_pattern(a: dolfinx.cpp.fem.Form_complex64) -> dolfinx::la::SparsityPattern
Create a sparsity pattern.
create_sparsity_pattern(a: dolfinx.cpp.fem.Form_complex128) -> dolfinx::la::SparsityPattern
Create a sparsity pattern.
- dolfinx.cpp.fem.discrete_gradient(*args, **kwargs)
Overloaded function.
discrete_gradient(V0: dolfinx::fem::FunctionSpace<float>, V1: dolfinx::fem::FunctionSpace<float>) -> dolfinx::la::MatrixCSR<float, std::vector<float, std::allocator<float> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >
discrete_gradient(V0: dolfinx::fem::FunctionSpace<double>, V1: dolfinx::fem::FunctionSpace<double>) -> dolfinx::la::MatrixCSR<double, std::vector<double, std::allocator<double> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >
discrete_gradient(V0: dolfinx::fem::FunctionSpace<float>, V1: dolfinx::fem::FunctionSpace<float>) -> dolfinx::la::MatrixCSR<std::complex<float>, std::vector<std::complex<float>, std::allocator<std::complex<float> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >
discrete_gradient(V0: dolfinx::fem::FunctionSpace<double>, V1: dolfinx::fem::FunctionSpace<double>) -> dolfinx::la::MatrixCSR<std::complex<double>, std::vector<std::complex<double>, std::allocator<std::complex<double> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >
- dolfinx.cpp.fem.insert_diagonal(*args, **kwargs)
Overloaded function.
insert_diagonal(A: dolfinx::la::MatrixCSR<float, std::vector<float, std::allocator<float> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, V: dolfinx::fem::FunctionSpace<float>, bcs: List[dolfinx::fem::DirichletBC<float, float>], diagonal: float) -> None
Experimental.
insert_diagonal(A: dolfinx::la::MatrixCSR<float, std::vector<float, std::allocator<float> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, rows: numpy.ndarray[numpy.int32], diagonal: float) -> None
Experimental.
insert_diagonal(A: dolfinx::la::MatrixCSR<double, std::vector<double, std::allocator<double> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, V: dolfinx::fem::FunctionSpace<double>, bcs: List[dolfinx::fem::DirichletBC<double, double>], diagonal: float) -> None
Experimental.
insert_diagonal(A: dolfinx::la::MatrixCSR<double, std::vector<double, std::allocator<double> >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, rows: numpy.ndarray[numpy.int32], diagonal: float) -> None
Experimental.
insert_diagonal(A: dolfinx::la::MatrixCSR<std::complex<float>, std::vector<std::complex<float>, std::allocator<std::complex<float> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, V: dolfinx::fem::FunctionSpace<float>, bcs: List[dolfinx::fem::DirichletBC<std::complex<float>, float>], diagonal: complex) -> None
Experimental.
insert_diagonal(A: dolfinx::la::MatrixCSR<std::complex<float>, std::vector<std::complex<float>, std::allocator<std::complex<float> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, rows: numpy.ndarray[numpy.int32], diagonal: complex) -> None
Experimental.
insert_diagonal(A: dolfinx::la::MatrixCSR<std::complex<double>, std::vector<std::complex<double>, std::allocator<std::complex<double> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, V: dolfinx::fem::FunctionSpace<double>, bcs: List[dolfinx::fem::DirichletBC<std::complex<double>, double>], diagonal: complex) -> None
Experimental.
insert_diagonal(A: dolfinx::la::MatrixCSR<std::complex<double>, std::vector<std::complex<double>, std::allocator<std::complex<double> > >, std::vector<int, std::allocator<int> >, std::vector<long, std::allocator<long> > >, rows: numpy.ndarray[numpy.int32], diagonal: complex) -> None
Experimental.
- dolfinx.cpp.fem.interpolation_coords(*args, **kwargs)
Overloaded function.
interpolation_coords(element: dolfinx.cpp.fem.FiniteElement_float32, V: dolfinx.cpp.mesh.Geometry_float32, cells: numpy.ndarray[numpy.int32]) -> numpy.ndarray[numpy.float32]
interpolation_coords(element: dolfinx.cpp.fem.FiniteElement_float64, V: dolfinx.cpp.mesh.Geometry_float64, cells: numpy.ndarray[numpy.int32]) -> numpy.ndarray[numpy.float64]
- dolfinx.cpp.fem.locate_dofs_geometrical(*args, **kwargs)
Overloaded function.
locate_dofs_geometrical(V: List[dolfinx.cpp.fem.FunctionSpace_float32], marker: Callable[[numpy.ndarray[numpy.float32]], numpy.ndarray[bool]]) -> Annotated[List[numpy.ndarray], FixedSize(2)]
locate_dofs_geometrical(V: dolfinx.cpp.fem.FunctionSpace_float32, marker: Callable[[numpy.ndarray[numpy.float32]], numpy.ndarray[bool]]) -> numpy.ndarray[numpy.int32]
locate_dofs_geometrical(V: List[dolfinx.cpp.fem.FunctionSpace_float64], marker: Callable[[numpy.ndarray[numpy.float64]], numpy.ndarray[bool]]) -> Annotated[List[numpy.ndarray], FixedSize(2)]
locate_dofs_geometrical(V: dolfinx.cpp.fem.FunctionSpace_float64, marker: Callable[[numpy.ndarray[numpy.float64]], numpy.ndarray[bool]]) -> numpy.ndarray[numpy.int32]
- dolfinx.cpp.fem.locate_dofs_topological(*args, **kwargs)
Overloaded function.
locate_dofs_topological(V: List[dolfinx.cpp.fem.FunctionSpace_float32], dim: int, entities: numpy.ndarray[numpy.int32], remote: bool = True) -> Annotated[List[numpy.ndarray], FixedSize(2)]
locate_dofs_topological(V: dolfinx.cpp.fem.FunctionSpace_float32, dim: int, entities: numpy.ndarray[numpy.int32], remote: bool = True) -> numpy.ndarray[numpy.int32]
locate_dofs_topological(V: List[dolfinx.cpp.fem.FunctionSpace_float64], dim: int, entities: numpy.ndarray[numpy.int32], remote: bool = True) -> Annotated[List[numpy.ndarray], FixedSize(2)]
locate_dofs_topological(V: dolfinx.cpp.fem.FunctionSpace_float64, dim: int, entities: numpy.ndarray[numpy.int32], remote: bool = True) -> numpy.ndarray[numpy.int32]
- dolfinx.cpp.fem.pack_coefficients(*args, **kwargs)
Overloaded function.
pack_coefficients(form: dolfinx::fem::Form<float, float>) -> Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]]
Pack coefficients for a Form.
pack_coefficients(form: dolfinx::fem::Form<double, double>) -> Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]]
Pack coefficients for a Form.
pack_coefficients(form: dolfinx::fem::Form<std::complex<float>, float>) -> Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex64]]
Pack coefficients for a Form.
pack_coefficients(form: dolfinx::fem::Form<std::complex<double>, double>) -> Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex128]]
Pack coefficients for a Form.
- dolfinx.cpp.fem.pack_constants(*args, **kwargs)
Overloaded function.
pack_constants(form: dolfinx::fem::Form<float, float>) -> numpy.ndarray[numpy.float32]
Pack constants for a Form.
pack_constants(e: dolfinx::fem::Expression<float, float>) -> numpy.ndarray[numpy.float32]
Pack constants for an Expression.
pack_constants(form: dolfinx::fem::Form<double, double>) -> numpy.ndarray[numpy.float64]
Pack constants for a Form.
pack_constants(e: dolfinx::fem::Expression<double, double>) -> numpy.ndarray[numpy.float64]
Pack constants for an Expression.
pack_constants(form: dolfinx::fem::Form<std::complex<float>, float>) -> numpy.ndarray[numpy.complex64]
Pack constants for a Form.
pack_constants(e: dolfinx::fem::Expression<std::complex<float>, float>) -> numpy.ndarray[numpy.complex64]
Pack constants for an Expression.
pack_constants(form: dolfinx::fem::Form<std::complex<double>, double>) -> numpy.ndarray[numpy.complex128]
Pack constants for a Form.
pack_constants(e: dolfinx::fem::Expression<std::complex<double>, double>) -> numpy.ndarray[numpy.complex128]
Pack constants for an Expression.
- dolfinx.cpp.fem.set_bc(*args, **kwargs)
Overloaded function.
set_bc(b: numpy.ndarray[numpy.float32], bcs: List[dolfinx::fem::DirichletBC<float, float>], x0: numpy.ndarray[numpy.float32] = None, scale: float = 1.0) -> None
set_bc(b: numpy.ndarray[numpy.float64], bcs: List[dolfinx::fem::DirichletBC<double, double>], x0: numpy.ndarray[numpy.float64] = None, scale: float = 1.0) -> None
set_bc(b: numpy.ndarray[numpy.complex64], bcs: List[dolfinx::fem::DirichletBC<std::complex<float>, float>], x0: numpy.ndarray[numpy.complex64] = None, scale: complex = (1+0j)) -> None
set_bc(b: numpy.ndarray[numpy.complex128], bcs: List[dolfinx::fem::DirichletBC<std::complex<double>, double>], x0: numpy.ndarray[numpy.complex128] = None, scale: complex = (1+0j)) -> None
- dolfinx.cpp.fem.transpose_dofmap(arg0: numpy.ndarray[numpy.int32], arg1: int) dolfinx.cpp.graph.AdjacencyList_int32
Build the index to (cell, local index) map from a dofmap ((cell, local index) -> index).