Navigation

Operators and Keywords

Function List:

C++ API

fem-fenics

pkg for the resolution of partial differential equations based on fenics

Select category:

Import problem defined with ufl

import_ufl_BilinearForm
Import a BilinearForm from a ufl file.
import_ufl_LinearForm
Import a LinearForm from a ufl file.
import_ufl_Functional
Import a Functional from a ufl file.
import_ufl_FunctionSpace
Import a FunctionSpace from a ufl file.
import_ufl_Problem
Import a Variational Problem from a ufl file.
ufl
Writes the given line to a ufl file.

Problem geometry and FE space

Mesh
Construct a mesh from file or from (p, e, t) format.
FunctionSpace
Generate a FunctionSpace on a specific mesh.
SubDomain
Initialize a SubDomain with a function handle, INSIDE, and a binary flag.
mark
Mark MESHFUNCTION with NUMBER on the entities contained in SUBDOMAIN.

Problem variables

Constant
Creates a constant object over all the mesh elements with the value specified.
Expression
Creates an object with the value specified as a function handle.
Function
Initialize an object with the values specified in a vector or extracting a component from a vectorial field.
MeshFunction
Initialize a MeshFunction with the values contained in a file.
DirichletBC
Specify essential boundary condition on a specific side.
interpolate
Interpolate a function on a FunctionSpace.

Definition of the abstract Variational problem

BilinearForm
Construct a BilinearForm previously imported from ufl.
LinearForm
Construct a Functional previously imported from a ufl file.
ResidualForm
Construct a ResidualForm previously imported from a ufl file with the function import_ufl_LinearForm.
JacobianForm
Construct a JacobianForm previously imported from a ufl file with the function import_ufl_BilinearForm.
Functional
Construct a Functional previously imported from a ufl file.

Creation of the discretized problem

linear_algebra_backend
Query or set the internal variable that specifies the linear algebra back-end to use when assembling systems, matrices or vectors.
assemble
Construct the discretization of a Form and apply essential BC.
assemble_system
Construct the discretization of a system and apply essential BC.

Post processing

@function/save
Save a function in vtu format.
@function/plot
Plot a Function.
@mesh/plot
Plot a Mesh.
@function/feval
Evaluate a function at a specific point of the domain and return the value.
@meshfunction/save
Save a meshfunction in XDMF format.

MPI

barrier
Set an MPI barrier.
is_master_node
Return true if called on node zero.

Miscellaneous

import_meshfunction_type
Compile a wrapper for dolfin::MeshFunction

Package: fem-fenics