FEniCSContinuous#
- class cuqipy_fenics.geometry.FEniCSContinuous(function_space, labels=['x', 'y'])#
- __init__(function_space, labels=['x', 'y'])#
Methods
__init__
(function_space[, labels])fun2par
(fun)Maps the function values (FEniCS object) to the corresponding parameters (ndarray).
fun2vec
(fun)Maps the function value (FEniCS object) to the corresponding vector representation of the function (ndarray of the function DOF values).
gradient
(direction[, wrt, is_direction_par, ...])Computes the gradient of the par2fun map with respect to the parameters in the direction direction evaluated at the point wrt
par2fun
(par)The parameter to function map used to map parameters to function values in e.g. plotting.
plot
(values[, is_par, plot_par])Plots a function over the set defined by the geometry object.
plot_envelope
(lo_values, hi_values[, ...])Plots an envelope from lower and upper bounds over the set defined by the geometry object.
vec2fun
(funvec)Maps the vector representation of the function (ndarray of the function DOF values) to the function value (FEniCS object).
Attributes
The dimension of the geometry (function space).
Flag to indicate whether the function value is an array.
The shape of the geometry (function space).
The dimension of the geometry (dimension of the vector representation of the function value).
The shape of the geometry (shape of the vector representation of the function value).
The dimension of the geometry (parameter space).
The shape of the parameter space.