dolfinx.cpp.fem
FEM module
Functions
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Build and dofmap on a mesh. |
|
Create DofMap object from a pointer to ufcx_dofmap. |
|
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. |
|
Create a sparsity pattern. |
|
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 |
|
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 |
|
Variational form object |
|
Variational form object |
|
Variational form object |
|
Variational form object |
|
|
|
A finite element function |
|
A finite element function |
|
A finite element function |
|
A finite element function |
|
Members: |
- class dolfinx.cpp.fem.Constant_complex128(*args, **kwargs)
Bases:
pybind11_builtins.pybind11_object
Value constant with respect to integration domain
Overloaded function.
__init__(self: dolfinx.cpp.fem.Constant_complex128, c: complex) -> None
Create a constant from a scalar
__init__(self: dolfinx.cpp.fem.Constant_complex128, c: numpy.ndarray[numpy.complex128]) -> None
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.Constant_complex64(*args, **kwargs)
Bases:
pybind11_builtins.pybind11_object
Value constant with respect to integration domain
Overloaded function.
__init__(self: dolfinx.cpp.fem.Constant_complex64, c: complex) -> None
Create a constant from a scalar
__init__(self: dolfinx.cpp.fem.Constant_complex64, c: numpy.ndarray[numpy.complex64]) -> None
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.Constant_float32(*args, **kwargs)
Bases:
pybind11_builtins.pybind11_object
Value constant with respect to integration domain
Overloaded function.
__init__(self: dolfinx.cpp.fem.Constant_float32, c: float) -> None
Create a constant from a scalar
__init__(self: dolfinx.cpp.fem.Constant_float32, c: numpy.ndarray[numpy.float32]) -> None
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.Constant_float64(*args, **kwargs)
Bases:
pybind11_builtins.pybind11_object
Value constant with respect to integration domain
Overloaded function.
__init__(self: dolfinx.cpp.fem.Constant_float64, c: float) -> None
Create a constant from a scalar
__init__(self: dolfinx.cpp.fem.Constant_float64, c: numpy.ndarray[numpy.float64]) -> None
Create a constant from a value array
- property dtype
- property value
- class dolfinx.cpp.fem.CoordinateElement(self: dolfinx.cpp.fem.CoordinateElement, celltype: dolfinx.cpp.mesh.CellType, degree: int) None
Bases:
pybind11_builtins.pybind11_object
Coordinate map element
- create_dof_layout(self: dolfinx.cpp.fem.CoordinateElement) dolfinx.cpp.fem.ElementDofLayout
- property degree
- pull_back(self: dolfinx.cpp.fem.CoordinateElement, arg0: numpy.ndarray[numpy.float64], arg1: numpy.ndarray[numpy.float64]) numpy.ndarray[numpy.float64]
- push_forward(self: dolfinx.cpp.fem.CoordinateElement, arg0: numpy.ndarray[numpy.float64], arg1: numpy.ndarray[numpy.float64]) numpy.ndarray[numpy.float64]
- class dolfinx.cpp.fem.DirichletBC_complex128(*args, **kwargs)
Bases:
pybind11_builtins.pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: complex, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: numpy.ndarray[numpy.complex128], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: dolfinx::fem::Constant<std::complex<double> >, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: dolfinx::fem::Function<std::complex<double> >, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex128, g: dolfinx::fem::Function<std::complex<double> >, dofs: List[numpy.ndarray[numpy.int32][2]], V: dolfinx::fem::FunctionSpace) -> 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_builtins.pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: complex, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: numpy.ndarray[numpy.complex64], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: dolfinx::fem::Constant<std::complex<float> >, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: dolfinx::fem::Function<std::complex<float> >, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_complex64, g: dolfinx::fem::Function<std::complex<float> >, dofs: List[numpy.ndarray[numpy.int32][2]], V: dolfinx::fem::FunctionSpace) -> 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_builtins.pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: float, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: numpy.ndarray[numpy.float32], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: dolfinx::fem::Constant<float>, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: dolfinx::fem::Function<float>, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float32, g: dolfinx::fem::Function<float>, dofs: List[numpy.ndarray[numpy.int32][2]], V: dolfinx::fem::FunctionSpace) -> 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_builtins.pybind11_object
Object for representing Dirichlet (essential) boundary conditions
Overloaded function.
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: float, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: numpy.ndarray[numpy.float64], dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: dolfinx::fem::Constant<double>, dofs: numpy.ndarray[numpy.int32], V: dolfinx::fem::FunctionSpace) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: dolfinx::fem::Function<double>, dofs: numpy.ndarray[numpy.int32]) -> None
__init__(self: dolfinx.cpp.fem.DirichletBC_float64, g: dolfinx::fem::Function<double>, dofs: List[numpy.ndarray[numpy.int32][2]], V: dolfinx::fem::FunctionSpace) -> 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) None
Bases:
pybind11_builtins.pybind11_object
DofMap object
- property bs
- cell_dofs(self: dolfinx.cpp.fem.DofMap, arg0: int) numpy.ndarray[numpy.int32]
- property dof_layout
- property index_map
- property index_map_bs
- class dolfinx.cpp.fem.ElementDofLayout(self: dolfinx.cpp.fem.ElementDofLayout, arg0: int, arg1: List[List[List[int]]], arg2: List[List[List[int]]], arg3: List[int], arg4: List[dolfinx.cpp.fem.ElementDofLayout]) None
Bases:
pybind11_builtins.pybind11_object
Object describing the layout of dofs on a cell
- property block_size
- entity_closure_dofs(self: dolfinx.cpp.fem.ElementDofLayout, arg0: int, arg1: int) List[int]
- entity_dofs(self: dolfinx.cpp.fem.ElementDofLayout, arg0: int, arg1: int) List[int]
- property num_dofs
- num_entity_closure_dofs(self: dolfinx.cpp.fem.ElementDofLayout, arg0: int) int
- num_entity_dofs(self: dolfinx.cpp.fem.ElementDofLayout, arg0: 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], mesh: dolfinx.cpp.mesh.Mesh, argument_function_space: dolfinx::fem::FunctionSpace) None
Bases:
pybind11_builtins.pybind11_object
An Expression
- property X
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_complex128, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.complex128]) None
- property mesh
- 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.float64], fn: int, value_shape: List[int], mesh: dolfinx.cpp.mesh.Mesh, argument_function_space: dolfinx::fem::FunctionSpace) None
Bases:
pybind11_builtins.pybind11_object
An Expression
- property X
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_complex64, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.complex64]) None
- property mesh
- 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.float64], fn: int, value_shape: List[int], mesh: dolfinx.cpp.mesh.Mesh, argument_function_space: dolfinx::fem::FunctionSpace) None
Bases:
pybind11_builtins.pybind11_object
An Expression
- property X
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_float32, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.float32]) None
- property mesh
- 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], mesh: dolfinx.cpp.mesh.Mesh, argument_function_space: dolfinx::fem::FunctionSpace) None
Bases:
pybind11_builtins.pybind11_object
An Expression
- property X
- property dtype
- eval(self: dolfinx.cpp.fem.Expression_float64, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.float64]) None
- property mesh
- property value_shape
- property value_size
- class dolfinx.cpp.fem.FiniteElement(self: dolfinx.cpp.fem.FiniteElement, arg0: int) None
Bases:
pybind11_builtins.pybind11_object
Finite element object
- apply_dof_transformation(self: dolfinx.cpp.fem.FiniteElement, arg0: numpy.ndarray[numpy.float64], arg1: int, arg2: int) None
- property interpolation_ident
- property interpolation_points
- property needs_dof_transformations
- property num_sub_elements
- signature(self: dolfinx.cpp.fem.FiniteElement) str
- property space_dimension
- property value_shape
- class dolfinx.cpp.fem.Form_complex128(*args, **kwargs)
Bases:
pybind11_builtins.pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_complex128, spaces: List[dolfinx::fem::FunctionSpace], integrals: Dict[dolfinx::fem::IntegralType, Tuple[List[Tuple[int, object]], dolfinx.cpp.mesh.MeshTags_int32]], coefficients: List[dolfinx.cpp.fem.Function_complex128], constants: List[dolfinx.cpp.fem.Constant_complex128], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh = None) -> None
__init__(self: dolfinx.cpp.fem.Form_complex128, arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_complex128], arg3: List[dolfinx.cpp.fem.Constant_complex128], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_complex128, arg0: dolfinx::fem::IntegralType, arg1: 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_builtins.pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_complex64, spaces: List[dolfinx::fem::FunctionSpace], integrals: Dict[dolfinx::fem::IntegralType, Tuple[List[Tuple[int, object]], dolfinx.cpp.mesh.MeshTags_int32]], coefficients: List[dolfinx.cpp.fem.Function_complex64], constants: List[dolfinx.cpp.fem.Constant_complex64], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh = None) -> None
__init__(self: dolfinx.cpp.fem.Form_complex64, arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_complex64], arg3: List[dolfinx.cpp.fem.Constant_complex64], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_complex64, arg0: dolfinx::fem::IntegralType, arg1: 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_builtins.pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_float32, spaces: List[dolfinx::fem::FunctionSpace], integrals: Dict[dolfinx::fem::IntegralType, Tuple[List[Tuple[int, object]], dolfinx.cpp.mesh.MeshTags_int32]], coefficients: List[dolfinx.cpp.fem.Function_float32], constants: List[dolfinx.cpp.fem.Constant_float32], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh = None) -> None
__init__(self: dolfinx.cpp.fem.Form_float32, arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_float32], arg3: List[dolfinx.cpp.fem.Constant_float32], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_float32, arg0: dolfinx::fem::IntegralType, arg1: 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_builtins.pybind11_object
Variational form object
Overloaded function.
__init__(self: dolfinx.cpp.fem.Form_float64, spaces: List[dolfinx::fem::FunctionSpace], integrals: Dict[dolfinx::fem::IntegralType, Tuple[List[Tuple[int, object]], dolfinx.cpp.mesh.MeshTags_int32]], coefficients: List[dolfinx.cpp.fem.Function_float64], constants: List[dolfinx.cpp.fem.Constant_float64], need_permutation_data: bool, mesh: dolfinx.cpp.mesh.Mesh = None) -> None
__init__(self: dolfinx.cpp.fem.Form_float64, arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_float64], arg3: List[dolfinx.cpp.fem.Constant_float64], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) -> None
Create a Form from a pointer to a ufcx_form
- property coefficients
- domains(self: dolfinx.cpp.fem.Form_float64, arg0: dolfinx::fem::IntegralType, arg1: 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(self: dolfinx.cpp.fem.FunctionSpace, arg0: dolfinx.cpp.mesh.Mesh, arg1: dolfinx.cpp.fem.FiniteElement, arg2: dolfinx.cpp.fem.DofMap) None
Bases:
pybind11_builtins.pybind11_object
- collapse(self: dolfinx.cpp.fem.FunctionSpace) Tuple[dolfinx.cpp.fem.FunctionSpace, List[int]]
- component(self: dolfinx.cpp.fem.FunctionSpace) List[int]
- contains(self: dolfinx.cpp.fem.FunctionSpace, arg0: dolfinx.cpp.fem.FunctionSpace) bool
- property dofmap
- property element
- property mesh
- sub(self: dolfinx.cpp.fem.FunctionSpace, arg0: List[int]) dolfinx.cpp.fem.FunctionSpace
- tabulate_dof_coordinates(self: dolfinx.cpp.fem.FunctionSpace) numpy.ndarray[numpy.float64]
- class dolfinx.cpp.fem.Function_complex128(*args, **kwargs)
Bases:
pybind11_builtins.pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_complex128, arg0: dolfinx::fem::FunctionSpace) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_complex128, arg0: dolfinx::fem::FunctionSpace, arg1: dolfinx::la::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: Callable[[numpy.ndarray[numpy.float64]], 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]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_complex128, arg0: dolfinx::fem::Expression<std::complex<double> >, arg1: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_complex128, f: 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_builtins.pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_complex64, arg0: dolfinx::fem::FunctionSpace) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_complex64, arg0: dolfinx::fem::FunctionSpace, arg1: dolfinx::la::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.float64], 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: Callable[[numpy.ndarray[numpy.float64]], 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]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_complex64, arg0: dolfinx::fem::Expression<std::complex<float> >, arg1: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_complex64, f: 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_builtins.pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_float32, arg0: dolfinx::fem::FunctionSpace) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_float32, arg0: dolfinx::fem::FunctionSpace, arg1: dolfinx::la::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.float64], 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: Callable[[numpy.ndarray[numpy.float64]], 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]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_float32, arg0: dolfinx::fem::Expression<float>, arg1: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_float32, f: 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_builtins.pybind11_object
A finite element function
Overloaded function.
__init__(self: dolfinx.cpp.fem.Function_float64, arg0: dolfinx::fem::FunctionSpace) -> None
Create a function on the given function space
__init__(self: dolfinx.cpp.fem.Function_float64, arg0: dolfinx::fem::FunctionSpace, arg1: dolfinx::la::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: Callable[[numpy.ndarray[numpy.float64]], 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]) -> None
Interpolate a finite element function
interpolate(self: dolfinx.cpp.fem.Function_float64, arg0: dolfinx::fem::Expression<double>, arg1: numpy.ndarray[numpy.int32]) -> None
Interpolate an Expression on a set of cells
- interpolate_ptr(self: dolfinx.cpp.fem.Function_float64, f: 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) None
Bases:
pybind11_builtins.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(arg0: numpy.ndarray[numpy.float64], arg1: List[dolfinx::fem::Form<double>], arg2: List[numpy.ndarray[numpy.float64]], arg3: List[Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]]], arg4: List[List[dolfinx::fem::DirichletBC<double>]], arg5: List[numpy.ndarray[numpy.float64]], arg6: float) -> None
Modify vector for lifted boundary conditions
apply_lifting(arg0: numpy.ndarray[numpy.float32], arg1: List[dolfinx::fem::Form<float>], arg2: List[numpy.ndarray[numpy.float32]], arg3: List[Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]]], arg4: List[List[dolfinx::fem::DirichletBC<float>]], arg5: List[numpy.ndarray[numpy.float32]], arg6: float) -> None
Modify vector for lifted boundary conditions
apply_lifting(arg0: numpy.ndarray[numpy.complex128], arg1: List[dolfinx::fem::Form<std::complex<double> >], arg2: List[numpy.ndarray[numpy.complex128]], arg3: List[Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex128]]], arg4: List[List[dolfinx::fem::DirichletBC<std::complex<double> >]], arg5: List[numpy.ndarray[numpy.complex128]], arg6: float) -> None
Modify vector for lifted boundary conditions
- dolfinx.cpp.fem.assemble_matrix(*args, **kwargs)
Overloaded function.
assemble_matrix(arg0: dolfinx::la::MatrixCSR<double, std::allocator<double> >, arg1: dolfinx::fem::Form<double>, arg2: numpy.ndarray[numpy.float64], arg3: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]], arg4: List[dolfinx::fem::DirichletBC<double>]) -> None
Experimental.
assemble_matrix(arg0: Callable[[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32], numpy.ndarray[numpy.float64]], int], arg1: dolfinx::fem::Form<double>, arg2: List[dolfinx::fem::DirichletBC<double>]) -> None
Experimental assembly with Python insertion function. This will be slow. Use for testing only.
assemble_matrix(arg0: dolfinx::la::MatrixCSR<float, std::allocator<float> >, arg1: dolfinx::fem::Form<float>, arg2: numpy.ndarray[numpy.float32], arg3: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]], arg4: List[dolfinx::fem::DirichletBC<float>]) -> None
Experimental.
assemble_matrix(arg0: Callable[[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32], numpy.ndarray[numpy.float32]], int], arg1: dolfinx::fem::Form<float>, arg2: List[dolfinx::fem::DirichletBC<float>]) -> None
Experimental assembly with Python insertion function. This will be slow. Use for testing only.
assemble_matrix(arg0: dolfinx::la::MatrixCSR<std::complex<double>, std::allocator<std::complex<double> > >, arg1: dolfinx::fem::Form<std::complex<double> >, arg2: numpy.ndarray[numpy.complex128], arg3: Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.complex128]], arg4: List[dolfinx::fem::DirichletBC<std::complex<double> >]) -> None
Experimental.
assemble_matrix(arg0: Callable[[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32], numpy.ndarray[numpy.complex128]], int], arg1: dolfinx::fem::Form<std::complex<double> >, arg2: List[dolfinx::fem::DirichletBC<std::complex<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<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<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<std::complex<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.float64], L: dolfinx::fem::Form<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.float32], L: dolfinx::fem::Form<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.complex128], L: dolfinx::fem::Form<std::complex<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(arg0: MPICommWrapper, arg1: dolfinx.cpp.mesh.Topology, arg2: dolfinx::fem::ElementDofLayout) Tuple[dolfinx.cpp.common.IndexMap, int, dolfinx.cpp.graph.AdjacencyList_int32]
Build and dofmap on a mesh.
- dolfinx.cpp.fem.create_dofmap(arg0: MPICommWrapper, arg1: int, arg2: dolfinx.cpp.mesh.Topology, arg3: dolfinx::fem::FiniteElement) dolfinx::fem::DofMap
Create DofMap object from a pointer to ufcx_dofmap.
- dolfinx.cpp.fem.create_element_dof_layout(arg0: int, arg1: dolfinx.cpp.mesh.CellType, arg2: List[int]) dolfinx::fem::ElementDofLayout
Create ElementDofLayout object from a ufc dofmap.
- dolfinx.cpp.fem.create_expression_complex128(arg0: int, arg1: List[dolfinx.cpp.fem.Function_complex128], arg2: List[dolfinx.cpp.fem.Constant_complex128], arg3: dolfinx.cpp.mesh.Mesh, arg4: dolfinx::fem::FunctionSpace) dolfinx.cpp.fem.Expression_complex128
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_expression_complex64(arg0: int, arg1: List[dolfinx.cpp.fem.Function_complex64], arg2: List[dolfinx.cpp.fem.Constant_complex64], arg3: dolfinx.cpp.mesh.Mesh, arg4: dolfinx::fem::FunctionSpace) dolfinx.cpp.fem.Expression_complex64
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_expression_float32(arg0: int, arg1: List[dolfinx.cpp.fem.Function_float32], arg2: List[dolfinx.cpp.fem.Constant_float32], arg3: dolfinx.cpp.mesh.Mesh, arg4: dolfinx::fem::FunctionSpace) dolfinx.cpp.fem.Expression_float32
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_expression_float64(arg0: int, arg1: List[dolfinx.cpp.fem.Function_float64], arg2: List[dolfinx.cpp.fem.Constant_float64], arg3: dolfinx.cpp.mesh.Mesh, arg4: dolfinx::fem::FunctionSpace) dolfinx.cpp.fem.Expression_float64
Create Form from a pointer to ufc_form.
- dolfinx.cpp.fem.create_form_complex128(arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_complex128], arg3: List[dolfinx.cpp.fem.Constant_complex128], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) dolfinx.cpp.fem.Form_complex128
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_form_complex64(arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_complex64], arg3: List[dolfinx.cpp.fem.Constant_complex64], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) dolfinx.cpp.fem.Form_complex64
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_form_float32(arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_float32], arg3: List[dolfinx.cpp.fem.Constant_float32], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) dolfinx.cpp.fem.Form_float32
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_form_float64(arg0: int, arg1: List[dolfinx::fem::FunctionSpace], arg2: List[dolfinx.cpp.fem.Function_float64], arg3: List[dolfinx.cpp.fem.Constant_float64], arg4: Dict[dolfinx::fem::IntegralType, dolfinx.cpp.mesh.MeshTags_int32], arg5: dolfinx.cpp.mesh.Mesh) dolfinx.cpp.fem.Form_float64
Create Form from a pointer to ufcx_form.
- dolfinx.cpp.fem.create_sparsity_pattern(arg0: dolfinx.cpp.mesh.Topology, arg1: List[dolfinx::fem::DofMap], arg2: Set[dolfinx::fem::IntegralType]) dolfinx::la::SparsityPattern
Create a sparsity pattern.
- dolfinx.cpp.fem.insert_diagonal(*args, **kwargs)
Overloaded function.
insert_diagonal(arg0: dolfinx::la::MatrixCSR<double, std::allocator<double> >, arg1: dolfinx::fem::FunctionSpace, arg2: List[dolfinx::fem::DirichletBC<double>], arg3: float) -> None
insert_diagonal(arg0: dolfinx::la::MatrixCSR<float, std::allocator<float> >, arg1: dolfinx::fem::FunctionSpace, arg2: List[dolfinx::fem::DirichletBC<float>], arg3: float) -> None
insert_diagonal(arg0: dolfinx::la::MatrixCSR<std::complex<double>, std::allocator<std::complex<double> > >, arg1: dolfinx::fem::FunctionSpace, arg2: List[dolfinx::fem::DirichletBC<std::complex<double> >], arg3: complex) -> None
- dolfinx.cpp.fem.locate_dofs_geometrical(*args, **kwargs)
Overloaded function.
locate_dofs_geometrical(V: List[dolfinx::fem::FunctionSpace], marker: Callable[[numpy.ndarray[numpy.float64]], numpy.ndarray[bool]]) -> List[numpy.ndarray[2]]
locate_dofs_geometrical(V: dolfinx::fem::FunctionSpace, 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::fem::FunctionSpace], dim: int, entities: numpy.ndarray[numpy.int32], remote: bool = True) -> List[numpy.ndarray[2]]
locate_dofs_topological(V: dolfinx::fem::FunctionSpace, 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(arg0: dolfinx::fem::Form<double>) -> Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float64]]
Pack coefficients for a Form.
pack_coefficients(arg0: dolfinx::fem::Form<float>) -> Dict[Tuple[dolfinx::fem::IntegralType, int], numpy.ndarray[numpy.float32]]
Pack coefficients for a Form.
pack_coefficients(arg0: dolfinx::fem::Form<std::complex<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(arg0: dolfinx::fem::Form<double>) -> numpy.ndarray[numpy.float64]
Pack constants for a Form.
pack_constants(arg0: dolfinx::fem::Expression<double>) -> numpy.ndarray[numpy.float64]
Pack constants for an Expression.
pack_constants(arg0: dolfinx::fem::Form<float>) -> numpy.ndarray[numpy.float32]
Pack constants for a Form.
pack_constants(arg0: dolfinx::fem::Expression<float>) -> numpy.ndarray[numpy.float32]
Pack constants for an Expression.
pack_constants(arg0: dolfinx::fem::Form<std::complex<double> >) -> numpy.ndarray[numpy.complex128]
Pack constants for a Form.
pack_constants(arg0: dolfinx::fem::Expression<std::complex<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.float64], bcs: List[dolfinx::fem::DirichletBC<double>], x0: numpy.ndarray[numpy.float64] = None, scale: float = 1.0) -> None
set_bc(b: numpy.ndarray[numpy.float32], bcs: List[dolfinx::fem::DirichletBC<float>], x0: numpy.ndarray[numpy.float32] = None, scale: float = 1.0) -> None
set_bc(b: numpy.ndarray[numpy.complex128], bcs: List[dolfinx::fem::DirichletBC<std::complex<double> >], x0: numpy.ndarray[numpy.complex128] = None, scale: float = 1.0) -> None
- dolfinx.cpp.fem.transpose_dofmap(arg0: dolfinx.cpp.graph.AdjacencyList_int32, arg1: int) dolfinx.cpp.graph.AdjacencyList_int32
Build the index to (cell, local index) map from a dofmap ((cell, local index ) -> index).