dolfin.cpp.function¶

Function module

Functions

 assign(arg0, arg1) interpolate(arg0, arg1) Create a dolfin::Expression object from a pointer integer, typically returned by a just-in-time compiler

Classes

 Constant Expression An Expression is a function (field) that can appear as a coefficient in a form FacetArea Function A finite element function FunctionAXPY FunctionAssigner FunctionSpace GenericFunction HierarchicalFunction some description LagrangeInterpolator MeshCoordinates MultiMeshFunction MultiMeshFunctionSpace MultiMeshSubSpace ufc_cell ufc_function ufc_shape
class dolfin.cpp.function.Constant
assign(*args, **kwargs)

1. assign(self: dolfin.cpp.function.Constant, arg0: dolfin.cpp.function.Constant) -> None

2. assign(self: dolfin.cpp.function.Constant, arg0: float) -> None

str(self: dolfin.cpp.function.Constant, arg0: bool) → str
values(self: dolfin.cpp.function.Constant) → numpy.ndarray[float64]
class dolfin.cpp.function.Expression

An Expression is a function (field) that can appear as a coefficient in a form

get_generic_function(self: dolfin.cpp.function.Expression, arg0: str) → dolfin.cpp.function.GenericFunction
get_property(self: dolfin.cpp.function.Expression, arg0: str) → float
set_property(self: dolfin.cpp.function.Expression, arg0: str, arg1: object) → None
value_dimension(self: dolfin.cpp.function.Expression, arg0: int) → int
class dolfin.cpp.function.FacetArea
class dolfin.cpp.function.Function

A finite element function

extrapolate(*args, **kwargs)

1. extrapolate(self: dolfin.cpp.function.Function, arg0: dolfin.cpp.function.Function) -> None

2. extrapolate(self: dolfin.cpp.function.Function, arg0: object) -> None

get_allow_extrapolation(self: dolfin.cpp.function.Function) → bool
interpolate(*args, **kwargs)

1. interpolate(self: dolfin.cpp.function.Function, arg0: dolfin.cpp.function.GenericFunction) -> None

Interpolate the function u

1. interpolate(self: dolfin.cpp.function.Function, arg0: object) -> None

Interpolate the function u

set_allow_extrapolation(self: dolfin.cpp.function.Function, arg0: bool) → None
sub(self: dolfin.cpp.function.Function, arg0: int) → dolfin.cpp.function.Function
vector(self: dolfin.cpp.function.Function) → dolfin::GenericVector

Return the vector associated with the finite element Function

class dolfin.cpp.function.FunctionSpace
collapse(self: dolfin.cpp.function.FunctionSpace) → Tuple[dolfin.cpp.function.FunctionSpace, Dict[int, int]]
component(self: dolfin.cpp.function.FunctionSpace) → List[int]
contains(self: dolfin.cpp.function.FunctionSpace, arg0: dolfin.cpp.function.FunctionSpace) → bool
dim(self: dolfin.cpp.function.FunctionSpace) → int
dofmap(self: dolfin.cpp.function.FunctionSpace) → dolfin::GenericDofMap
element(self: dolfin.cpp.function.FunctionSpace) → dolfin::FiniteElement
extract_sub_space(self: dolfin.cpp.function.FunctionSpace, arg0: List[int]) → dolfin.cpp.function.FunctionSpace
mesh(self: dolfin.cpp.function.FunctionSpace) → dolfin::Mesh
set_x(self: dolfin.cpp.function.FunctionSpace, arg0: dolfin::GenericVector, arg1: float, arg2: int) → None
sub(self: dolfin.cpp.function.FunctionSpace, arg0: int) → dolfin.cpp.function.FunctionSpace
tabulate_dof_coordinates(self: dolfin.cpp.function.FunctionSpace) → numpy.ndarray[float64]
class dolfin.cpp.function.GenericFunction

Bases: dolfin.cpp.function.ufc_function, dolfin.cpp.common.Variable

compute_vertex_values(*args, **kwargs)

1. compute_vertex_values(self: dolfin.cpp.function.GenericFunction, arg0: dolfin::Mesh) -> numpy.ndarray[float64]

Compute values at all mesh vertices

1. compute_vertex_values(self: dolfin.cpp.function.GenericFunction) -> numpy.ndarray[float64]

Compute values at all mesh vertices by using the mesh function.function_space().mesh()

eval(*args, **kwargs)

1. eval(self: dolfin.cpp.function.GenericFunction, arg0: numpy.ndarray[float64[m, 1], flags.writeable], arg1: numpy.ndarray[float64[m, 1]], arg2: dolfin::Cell) -> None

Evaluate GenericFunction (cell version)

1. eval(self: dolfin.cpp.function.GenericFunction, arg0: numpy.ndarray[float64[m, 1], flags.writeable], arg1: numpy.ndarray[float64[m, 1]], arg2: dolfin.cpp.function.ufc_cell) -> None

Evaluate GenericFunction (cell version)

1. eval(self: dolfin.cpp.function.GenericFunction, values: numpy.ndarray[float64[m, 1], flags.writeable], x: numpy.ndarray[float64[m, 1]]) -> None

Evaluate GenericFunction

function_space(self: dolfin.cpp.function.GenericFunction) → dolfin::FunctionSpace
restrict(self: dolfin.cpp.function.GenericFunction, arg0: dolfin::FiniteElement, arg1: dolfin::Cell) → numpy.ndarray[float64[m, 1]]
value_dimension(self: dolfin.cpp.function.GenericFunction, arg0: int) → int
value_rank(self: dolfin.cpp.function.GenericFunction) → int
value_size(self: dolfin.cpp.function.GenericFunction) → int
class dolfin.cpp.function.HierarchicalFunction

Bases: pybind11_builtins.pybind11_object

some description

leaf_node(self: dolfin.cpp.function.HierarchicalFunction) → dolfin::Function
root_node(self: dolfin.cpp.function.HierarchicalFunction) → dolfin::Function
class dolfin.cpp.function.MeshCoordinates
class dolfin.cpp.function.MultiMeshFunction
assign_part(self: dolfin.cpp.function.MultiMeshFunction, arg0: int, arg1: dolfin.cpp.function.Function) → None
part(*args, **kwargs)

vector(self: dolfin.cpp.function.MultiMeshFunction) → dolfin::GenericVector
dolfin.cpp.function.assign(arg0: object, arg1: object) → None
dolfin.cpp.function.interpolate(arg0: dolfin.cpp.function.GenericFunction, arg1: dolfin::FunctionSpace) → dolfin.cpp.function.Function
dolfin.cpp.function.make_dolfin_expression(arg0: int) → dolfin::Expression