This class represents a function \( u_h \) in a finite element function space \( V_h \), given by.
More...
|
| Function (std::shared_ptr< const FunctionSpace > V) |
| Create function on given function space. More...
|
|
| Function (std::shared_ptr< const FunctionSpace > V, std::shared_ptr< la::Vector< T >> x) |
| Create function on given function space with a given vector. More...
|
|
| Function (const Function &v)=delete |
|
| Function (Function &&v)=default |
| Move constructor.
|
|
| ~Function ()=default |
| Destructor.
|
|
Function & | operator= (Function &&v)=default |
| Move assignment.
|
|
Function & | operator= (const Function &v)=delete |
|
Function | sub (int i) const |
| Extract subfunction (view into the Function) More...
|
|
Function | collapse () const |
| Collapse a subfunction (view into a Function) to a stand-alone Function. More...
|
|
std::shared_ptr< const FunctionSpace > | function_space () const |
| Access the function space. More...
|
|
std::shared_ptr< const la::Vector< T > > | x () const |
| Underlying vector.
|
|
std::shared_ptr< la::Vector< T > > | x () |
| Underlying vector.
|
|
void | interpolate (const Function< T > &v, std::span< const std::int32_t > cells) |
| Interpolate a Function. More...
|
|
void | interpolate (const Function< T > &v) |
| Interpolate a Function. More...
|
|
void | interpolate (const std::function< xt::xarray< T >(const xt::xtensor< double, 2 > &)> &f, std::span< const std::int32_t > cells) |
| Interpolate an expression function on a list of cells. More...
|
|
void | interpolate (const std::function< xt::xarray< T >(const xt::xtensor< double, 2 > &)> &f) |
| Interpolate an expression function on the whole domain. More...
|
|
void | interpolate (const Expression< T > &e, std::span< const std::int32_t > cells) |
| Interpolate an Expression (based on UFL) More...
|
|
void | interpolate (const Expression< T > &e) |
| Interpolate an Expression (based on UFL) on all cells. More...
|
|
void | eval (std::span< const double > x, std::array< std::size_t, 2 > xshape, std::span< const std::int32_t > cells, std::span< T > u, std::array< std::size_t, 2 > ushape) const |
| Evaluate the Function at points. More...
|
|
template<typename T>
class dolfinx::fem::Function< T >
This class represents a function \( u_h \) in a finite element function space \( V_h \), given by.
\[ u_h = \sum_{i=1}^{n} U_i \phi_i \]
where \( \{\phi_i\}_{i=1}^{n} \) is a basis for \( V_h \), and \( U \) is a vector of expansion coefficients for \( u_h \).