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) |
| Move constructor.
|
|
virtual | ~Function () |
| Destructor.
|
|
Function & | operator= (Function &&v) noexcept |
| 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 the Function) to a stand-alone Function. More...
|
|
std::shared_ptr< const FunctionSpace > | function_space () const |
| Return shared pointer to function space. More...
|
|
Vec | vector () const |
| Return vector of expansion coefficients as a PETSc Vec. Throws an exception a PETSc Vec cannot be created due to a type mismatch. 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) |
| Interpolate a Function (on possibly non-matching meshes) More...
|
|
void | interpolate (const std::function< Eigen::Array< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >(const Eigen::Ref< const Eigen::Array< double, 3, Eigen::Dynamic, Eigen::RowMajor >> &)> &f) |
| Interpolate an expression. More...
|
|
void | eval (const Eigen::Ref< const Eigen::Array< double, Eigen::Dynamic, 3, Eigen::RowMajor >> &x, const tcb::span< const std::int32_t > &cells, Eigen::Ref< Eigen::Array< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >> u) const |
| Evaluate the Function at points. More...
|
|
Eigen::Array< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > | compute_point_values () const |
| Compute values at all mesh 'nodes'. More...
|
|
std::size_t | id () const |
| ID.
|
|
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 \).