Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FEniCS/dolfinx
/ functions
Functions
2,084 in github.com/FEniCS/dolfinx
⨍
Functions
2,084
◇
Types & classes
247
↳
Endpoints
10
↓ 1,654 callers
Method
size
-----------------------------------------------------------------------------
cpp/dolfinx/la/petsc.cpp:435
↓ 1,235 callers
Method
data
Underlying matrix entry data.
python/dolfinx/la/__init__.py:248
↓ 531 callers
Method
array
Local representation of the vector.
python/dolfinx/la/__init__.py:88
↓ 364 callers
Function
functionspace
Create a finite element function space. Args: mesh: Mesh that space is defined on. element: Finite element description. Retu
python/dolfinx/fem/function.py:645
↓ 292 callers
Method
interpolate
Interpolate an expression. Args: u0: Callable function, Expression or Function to interpolate. cells0:
python/dolfinx/fem/function.py:496
↓ 243 callers
Method
topology
TODO: Is there any use for this? In many situations one has to get the topology of a const Mesh, which is done by Mesh::topology_mutable. Note that th
cpp/dolfinx/mesh/Mesh.h:69
↓ 241 callers
Function
form
Create a Form or list of Forms. Args: form: A UFL form or iterable of UFL forms. dtype: Scalar type to use for the compiled form.
python/dolfinx/fem/forms.py:329
↓ 235 callers
Method
index_map
Index map for the parallel distribution of the mesh entities. Args: dim: Topological dimension. Returns: Ind
python/dolfinx/mesh.py:235
↓ 223 callers
Method
size
-----------------------------------------------------------------------------
cpp/dolfinx/common/MPI.cpp:72
↓ 185 callers
Method
size_local
-----------------------------------------------------------------------------
cpp/dolfinx/common/IndexMap.cpp:933
↓ 180 callers
Function
create_unit_square
Create a mesh of a unit square. Args: comm: MPI communicator. nx: Number of cells in the "x" direction. ny: Number of cel
python/dolfinx/mesh.py:1113
↓ 170 callers
Method
insert
-----------------------------------------------------------------------------
cpp/dolfinx/la/SparsityPattern.cpp:142
↓ 163 callers
Method
sub
Return a sub-function (a view into the ``Function``). Sub-functions are indexed ``i = 0, ..., N-1``, where ``N`` is the number of sub
python/dolfinx/fem/function.py:584
↓ 154 callers
Method
links
@brief Get the links (edges) for given node. @param[in] node Node index. @return Array of outgoing links for the node. The length will be `AdjacencyLi
cpp/dolfinx/graph/AdjacencyList.h:155
↓ 150 callers
Method
get
-----------------------------------------------------------------------------
cpp/dolfinx/common/Table.cpp:55
↓ 147 callers
Function
transform
(x)
python/test/unit/fem/test_interpolate_geometry.py:95
↓ 128 callers
Method
norm
-----------------------------------------------------------------------------
cpp/dolfinx/la/petsc.cpp:578
↓ 127 callers
Method
index_map
-----------------------------------------------------------------------------
cpp/dolfinx/mesh/Topology.cpp:843
↓ 124 callers
Method
scatter_reverse
Scatter ghost entries to owner. Args: mode: Control how scattered values are set/accumulated by owner.
python/dolfinx/la/__init__.py:116
↓ 123 callers
Function
check_error
(u_ex, uh)
python/test/unit/fem/test_problems.py:57
↓ 120 callers
Method
geometry
Mesh geometry.
python/dolfinx/mesh.py:440
↓ 118 callers
Function
coord_to_vertex
(x, y, z)
python/test/unit/mesh/test_higher_order_mesh.py:63
↓ 111 callers
Function
create_unit_cube
Create a mesh of a unit cube. Args: comm: MPI communicator. nx: Number of cells in "x" direction. ny: Number of cells in
python/dolfinx/mesh.py:1206
↓ 107 callers
Method
Function
@brief Create function on given function space. @param[in] V The function space
cpp/dolfinx/fem/Function.h:57
↓ 101 callers
Method
create_connectivity
Build entity connectivity ``d0 -> d1``. Args: d0: Dimension of entities connectivity is from. d1: Dimension of entiti
python/dolfinx/mesh.py:173
↓ 97 callers
Method
connectivity
-----------------------------------------------------------------------------
cpp/dolfinx/mesh/Topology.cpp:864
↓ 95 callers
Method
num_nodes
@brief Get the number of nodes. @return The number of nodes in the adjacency list
cpp/dolfinx/graph/AdjacencyList.h:140
↓ 90 callers
Function
assemble_scalar
Assemble functional. The returned value is local and not accumulated across processes. Args: M: The functional to compute. c
python/dolfinx/fem/assemble.py:136
↓ 90 callers
Method
basix_cell
Return the Basix cell type.
python/dolfinx/mesh.py:416
↓ 84 callers
Method
links
Retrieve the links of a node. Note: This is available only for adjacency lists with no additional link (edge) data.
python/dolfinx/graph.py:75
↓ 83 callers
Method
num_ghosts
-----------------------------------------------------------------------------
cpp/dolfinx/common/IndexMap.cpp:931
↓ 82 callers
Method
mesh
@brief Common mesh for the form (the 'integration domain'). @return The integration domain mesh.
cpp/dolfinx/fem/Form.h:362
↓ 79 callers
Method
dim
-----------------------------------------------------------------------------
cpp/dolfinx/mesh/Topology.cpp:803
↓ 79 callers
Method
x
@brief Underlying vector (const version).
cpp/dolfinx/fem/Function.h:153
↓ 72 callers
Method
scatter_forward
Update ghost entries.
python/dolfinx/la/__init__.py:112
↓ 71 callers
Method
function_space
@brief Access the function space. @return The function space.
cpp/dolfinx/fem/Function.h:147
↓ 68 callers
Function
assemble_matrix
Assemble a bilinear form into a matrix. The following cases are supported: 1. If ``a`` is a single bilinear form, the form is assembled
python/dolfinx/fem/petsc.py:336
↓ 68 callers
Method
connectivity
Return connectivity. Connectivity from entities of dimension ``d0`` to entities of dimension ``d1``. Args: d0: D
python/dolfinx/mesh.py:150
↓ 67 callers
Method
form
Update ghost values of solution vector.
python/test/unit/nls/test_newton.py:32
↓ 65 callers
Method
Mesh
cpp/dolfinx/mesh/Mesh.h:38
↓ 65 callers
Function
dirichletbc
Representation of Dirichlet boundary condition. Args: value: Lifted boundary values function. It must have a ``dtype`` proper
python/dolfinx/fem/bcs.py:176
↓ 65 callers
Method
element
The finite element
cpp/dolfinx/fem/FunctionSpace.h:367
↓ 65 callers
Method
topology_mutable
@brief Get mesh topology if one really needs the mutable version. @return The topology object associated with the mesh.
cpp/dolfinx/mesh/Mesh.h:77
↓ 61 callers
Function
locate_dofs_topological
Locate degrees-of-freedom belonging to mesh entities topologically. Args: V: Function space(s) in which to search for degree-of-freedom
python/dolfinx/fem/bcs.py:59
↓ 60 callers
Method
element
Function space finite element.
python/dolfinx/fem/function.py:825
↓ 59 callers
Method
comm
-----------------------------------------------------------------------------
cpp/dolfinx/common/IndexMap.cpp:1008
↓ 59 callers
Method
comm
-----------------------------------------------------------------------------
cpp/dolfinx/la/slepc.cpp:202
↓ 56 callers
Method
dim
cpp/dolfinx/fem/CoordinateElement.cpp:205
↓ 55 callers
Method
dofmaps
@brief Degree-of-freedom map associated with each coordinate map element in the geometry. @return A list of dofmap arrays, each with shape `(num_cells
cpp/dolfinx/mesh/Geometry.h:127
↓ 55 callers
Method
value
The value of the constant.
python/dolfinx/fem/function.py:73
↓ 55 callers
Method
write_function
Write a functions to file with a given time.
python/dolfinx/io/utils.py:136
↓ 54 callers
Method
set
Set array entries that are constrained by a Dirichlet condition. Entries in ``x`` that are constrained by a Dirichlet boundary condit
python/dolfinx/fem/bcs.py:134
↓ 53 callers
Method
get
Get the underlying MPI communicator
python/dolfinx/wrappers/dolfinx_wrappers/MPICommWrapper.h:34
↓ 51 callers
Function
locate_entities
Compute mesh entities satisfying a geometric marking function. Args: msh: Mesh to locate entities on. dim: Topological dimension
python/dolfinx/mesh.py:635
↓ 50 callers
Function
create_mesh
Create a mesh from topology and geometry arrays. Args: comm: MPI communicator to define the mesh on. cells: Cells of the mesh. ``
python/dolfinx/mesh.py:785
↓ 50 callers
Method
function_spaces
Function spaces on which this form is defined.
python/dolfinx/fem/forms.py:98
↓ 49 callers
Function
as_nbarray
python/dolfinx/wrappers/dolfinx_wrappers/array.h:32
↓ 49 callers
Method
write_mesh
Write mesh to file for a given time.
python/dolfinx/io/utils.py:132
↓ 48 callers
Method
cell_dofs
@brief Local-to-global mapping of dofs on a cell @param[in] c The cell index @return Local-global dof map for the cell (using process-local indices)
cpp/dolfinx/fem/DofMap.h:127
↓ 46 callers
Method
create_entities
Create entities of given topological dimension. Args: dim: Topological dimension of entities to create. num_threads:
python/dolfinx/mesh.py:182
↓ 43 callers
Function
locate_entities_boundary
Mesh entities connected to a boundary facet a geometric condition. Compute indices of all mesh entities that are attached to an owned boundar
python/dolfinx/mesh.py:652
↓ 42 callers
Method
create_connectivity
-----------------------------------------------------------------------------
cpp/dolfinx/mesh/Topology.cpp:983
↓ 41 callers
Function
create_cell_partitioner
Create a function to partition a mesh. Args: part: Partition function. mode: Ghosting mode to use. max_facet_to_cell_link
python/dolfinx/mesh.py:92
↓ 41 callers
Method
num_links
@brief Number of connections for given node. @param[in] node Node index. @return The number of outgoing links (edges) from the node.
cpp/dolfinx/graph/AdjacencyList.h:145
↓ 41 callers
Method
solve
Solve non-linear problem into function ``u``. Returns the number of iterations and if the solver converged.
python/dolfinx/nls/petsc.py:65
↓ 40 callers
Method
bs
-----------------------------------------------------------------------------
cpp/dolfinx/fem/DofMap.cpp:170
↓ 39 callers
Method
form
Function called before the residual or Jacobian is computed. This is usually used to update ghost values. Args: x: The ve
python/dolfinx/fem/petsc.py:1501
↓ 38 callers
Method
size_global
-----------------------------------------------------------------------------
cpp/dolfinx/common/IndexMap.cpp:938
↓ 37 callers
Method
dofmap
@brief DofMap for the geometry. @return A 2D array with shape `(num_cells, dofs_per_cell)`. @deprecated Use dofmaps().front() instead.
cpp/dolfinx/mesh/Geometry.h:113
↓ 36 callers
Function
set
cpp/dolfinx/la/petsc.h:144
↓ 35 callers
Method
write
Write data to file for a given time.
python/dolfinx/io/utils.py:107
↓ 34 callers
Method
ghosts
-----------------------------------------------------------------------------
cpp/dolfinx/common/IndexMap.cpp:940
↓ 33 callers
Method
entity_types
Entity types in the topology for all topological dimensions.
python/dolfinx/mesh.py:206
↓ 33 callers
Method
find
@brief Find all entities with a given tag value @param[in] value The value @return Indices of tagged entities. The indices are sorted.
cpp/dolfinx/mesh/MeshTags.h:86
↓ 32 callers
Method
add_mesh
cpp/dolfinx/io/xdmf_mesh.cpp:217
↓ 32 callers
Function
exterior_facet_indices
Compute the indices of exterior facets that are owned by the caller. An exterior facet (co-dimension 1) is one that is connected globally to
python/dolfinx/mesh.py:1265
↓ 32 callers
Method
index_map_bs
-----------------------------------------------------------------------------
cpp/dolfinx/fem/DofMap.cpp:279
↓ 32 callers
Method
space_dimension
cpp/dolfinx/fem/FiniteElement.cpp:291
↓ 32 callers
Method
squared_norm
Compute the squared Frobenius norm. Note: This operation is collective and requires communication.
python/dolfinx/la/__init__.py:239
↓ 31 callers
Method
copy
Create a copy of the Function. The function space is shared and the degree-of-freedom vector is copied. Returns:
python/dolfinx/fem/function.py:546
↓ 31 callers
Method
finalize
-----------------------------------------------------------------------------
cpp/dolfinx/la/SparsityPattern.cpp:233
↓ 31 callers
Function
mixed_element
Blocked problem using a {py:class}`basix.ufl.mixed_element`.
python/demo/demo_matrix-free-petsc.py:361
↓ 30 callers
Method
cmaps
The coordinate maps.
python/dolfinx/mesh.py:296
↓ 29 callers
Method
mat
-----------------------------------------------------------------------------
cpp/dolfinx/la/petsc.cpp:563
↓ 27 callers
Method
comm
-----------------------------------------------------------------------------
cpp/dolfinx/io/XDMFFile.cpp:479
↓ 26 callers
Method
add
Add a block of values in the matrix.
python/dolfinx/la/__init__.py:207
↓ 26 callers
Function
apply_lifting
Modify a vector to account for Dirichlet boundary conditions. See :func:`dolfinx.fem.apply_lifting` for a mathematical descriptions of the li
python/dolfinx/fem/petsc.py:517
↓ 26 callers
Method
cell_type
-----------------------------------------------------------------------------
cpp/dolfinx/mesh/Topology.cpp:813
↓ 26 callers
Method
dofmap
The dofmap
cpp/dolfinx/fem/FunctionSpace.h:386
↓ 26 callers
Method
find
Get a list of all entity indices with a given value. Args: value: Tag value to search for. Returns: Indices
python/dolfinx/mesh.py:499
↓ 26 callers
Method
local_range
-----------------------------------------------------------------------------
cpp/dolfinx/la/petsc.cpp:453
↓ 26 callers
Method
locate_dofs_topological
-----------------------------------------------------------------------------
cpp/dolfinx/fem/DirichletBC.cpp:199
↓ 25 callers
Function
assemble_vector
Assemble simple linear form over a mesh into the array b.
python/test/unit/fem/test_custom_assembler.py:51
↓ 25 callers
Function
bb_tree
Create a bounding box tree for use in collision detection. Args: mesh: The mesh. dim: Dimension of the mesh entities to build bou
python/dolfinx/geometry.py:117
↓ 25 callers
Method
cell_dofs
Cell local-global dof map. Args: cell_index: The cell index. Returns: Local-global dof map for the cell (usi
python/dolfinx/fem/dofmap.py:34
↓ 25 callers
Method
collapse
Create a collapsed version of this Function.
python/dolfinx/fem/function.py:618
↓ 25 callers
Method
contains
Check if a space is contained in, or is the same as, this space. Args: V: The space to check to for inclusion. Returns:
python/dolfinx/fem/function.py:800
↓ 25 callers
Method
local_to_global
-----------------------------------------------------------------------------
cpp/dolfinx/common/IndexMap.cpp:945
↓ 25 callers
Method
topology
Mesh topology.
python/dolfinx/mesh.py:435
↓ 24 callers
Method
block_size
cpp/dolfinx/fem/FiniteElement.cpp:359
next →
1–100 of 2,084, ranked by callers