Global discrete evaluator.
More...
#include <discrete_evaluator.hpp>
|
| template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ > |
| static std::vector< Assembly::ScalarDiscreteEvalData< DT_, Intern::dim_from_point_range< PointRange_ > > > | eval_fe_function (const Dist::Comm &comm, const PointRange_ &points, const LAFEM::DenseVector< DT_, IT_ > &vector, const Space_ &space) |
| | Evaluates a scalar finite-element function in all given points. More...
|
| |
| template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ > |
| static std::vector< Assembly::VectorDiscreteEvalData< DT_, Intern::dim_from_point_range< PointRange_ > > > | eval_fe_function (const Dist::Comm &comm, const PointRange_ &points, const LAFEM::DenseVectorBlocked< DT_, IT_, Intern::dim_from_point_range< PointRange_ > > &vector, const Space_ &space) |
| | Evaluates a vector-valued finite-element function in all given points. More...
|
| |
| template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ > |
| static std::vector< Assembly::VectorDiscreteEvalData< DT_, Intern::dim_from_point_range< PointRange_ > > > | eval_fe_gradient (const Dist::Comm &comm, const PointRange_ &points, const LAFEM::DenseVector< DT_, IT_ > &vector, const Space_ &space) |
| | Evaluates the gradient of a scalar finite-element function in all given points. More...
|
| |
| template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ > |
| static std::vector< Assembly::MatrixDiscreteEvalData< DT_, Intern::dim_from_point_range< PointRange_ >, Intern::dim_from_point_range< PointRange_ > > > | eval_fe_gradient (const Dist::Comm &comm, const PointRange_ &points, const LAFEM::DenseVectorBlocked< DT_, IT_, Intern::dim_from_point_range< PointRange_ > > &vector, const Space_ &space) |
| | Evaluates the gradient of a vector-valued finite-element function in all given points. More...
|
| |
|
| template<bool gradient_, typename PointRange_ , typename VectorType_ , typename Space_ > |
| static std::vector< typename Intern::DiscreteEvaluatorTypeHelper< PointRange_, VectorType_, Space_, gradient_ >::EvalType > | _remote_eval (const Dist::Comm &comm, const PointRange_ &points, const VectorType_ &vector, const Space_ &space) |
| | Common function for evaluating a scalar or vector-valued finite-element function on a distributed domain. More...
|
| |
| template<typename BoundingBoxType_ , typename MeshType_ > |
| static BoundingBoxType_ | get_local_bb (const MeshType_ &mesh) |
| | Get bounding box of local part of domain. More...
|
| |
| template<typename BoundingBoxType_ , typename PointType_ > |
| static bool | is_in_bb (const BoundingBoxType_ &bb, const PointType_ &p) |
| | Check if a point is in a bounding box. More...
|
| |
Global discrete evaluator.
This class implements various functions which can be used to evaluate discrete (finite-element) functions defined on a mesh/trafo in arbitrary points on a distributed domain.
- See also
- Assembly::DiscreteEvaluator
Definition at line 125 of file discrete_evaluator.hpp.
◆ _remote_eval()
template<bool gradient_, typename PointRange_ , typename VectorType_ , typename Space_ >
| static std::vector< typename Intern::DiscreteEvaluatorTypeHelper< PointRange_, VectorType_, Space_, gradient_ >::EvalType > FEAT::Global::DiscreteEvaluator::_remote_eval |
( |
const Dist::Comm & |
comm, |
|
|
const PointRange_ & |
points, |
|
|
const VectorType_ & |
vector, |
|
|
const Space_ & |
space |
|
) |
| |
|
inlinestaticprivate |
◆ eval_fe_function() [1/2]
template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ >
Evaluates a scalar finite-element function in all given points.
- Template Parameters
-
| PointRange_ | Type of point range |
| DT_ | Data type of coefficient vector and evaluation results |
| IT_ | Index type of coefficient vector |
| Space_ | Space type of finite-element function |
- Parameters
-
| [in] | comm | A transient reference to the communicator that the domain is distributed over. |
| [in] | points | A transient reference to a range of points in real world coordinates in which the finite element function is to be evaluated. |
| [in] | vector | The transient coefficient vector of the finite-element function. |
| [in] | space | The transient finite-element space corresponding to the vector. |
- Returns
- A vector of ScalarDiscreteEvalData objects that contain the evaluation results. One ScalarDiscreteEvalData object is returned per point in the point range. Each ScalarDiscreteEvalData object contains all values determined by all ranks that managed to evaluate the function in that point.
Definition at line 156 of file discrete_evaluator.hpp.
◆ eval_fe_function() [2/2]
template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ >
Evaluates a vector-valued finite-element function in all given points.
- Template Parameters
-
| PointRange_ | Type of point range |
| DT_ | Data type of coefficient vector and evaluation results |
| IT_ | Index type of coefficient vector |
| Space_ | Space type of finite-element function |
- Parameters
-
| [in] | comm | A transient reference to the communicator that the domain is distributed over. |
| [in] | points | A transient reference to a range of points in real world coordinates in which the finite element function is to be evaluated. |
| [in] | vector | The transient coefficient vector of the finite-element function. |
| [in] | space | The transient finite-element space corresponding to the vector. |
- Returns
- A vector of VectorDiscreteEvalData objects that contain the evaluation results. One VectorDiscreteEvalData object is returned per point in the point range. Each VectorDiscreteEvalData object contains all values determined by all ranks that managed to evaluate the function in that point.
Definition at line 188 of file discrete_evaluator.hpp.
◆ eval_fe_gradient() [1/2]
template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ >
Evaluates the gradient of a scalar finite-element function in all given points.
- Template Parameters
-
| PointRange_ | Type of point range |
| DT_ | Data type of coefficient vector and evaluation results |
| IT_ | Index type of coefficient vector |
| Space_ | Space type of finite-element function |
- Parameters
-
| [in] | comm | A transient reference to the communicator that the domain is distributed over. |
| [in] | points | A transient reference to a range of points in real world coordinates in which the finite element function is to be evaluated. |
| [in] | vector | The transient coefficient vector of the finite-element function. |
| [in] | space | The transient finite-element space corresponding to the vector. |
- Returns
- A vector of VectorDiscreteEvalData objects that contain the evaluation results. One VectorDiscreteEvalData object is returned per point in the point range. Each VectorDiscreteEvalData object contains all values determined by all ranks that managed to evaluate the function in that point.
Definition at line 225 of file discrete_evaluator.hpp.
◆ eval_fe_gradient() [2/2]
template<typename PointRange_ , typename DT_ , typename IT_ , typename Space_ >
| static std::vector< Assembly::MatrixDiscreteEvalData< DT_, Intern::dim_from_point_range< PointRange_ >, Intern::dim_from_point_range< PointRange_ > > > FEAT::Global::DiscreteEvaluator::eval_fe_gradient |
( |
const Dist::Comm & |
comm, |
|
|
const PointRange_ & |
points, |
|
|
const LAFEM::DenseVectorBlocked< DT_, IT_, Intern::dim_from_point_range< PointRange_ > > & |
vector, |
|
|
const Space_ & |
space |
|
) |
| |
|
inlinestatic |
Evaluates the gradient of a vector-valued finite-element function in all given points.
- Template Parameters
-
| PointRange_ | Type of point range |
| DT_ | Data type of coefficient vector and evaluation results |
| IT_ | Index type of coefficient vector |
| Space_ | Space type of finite-element function |
- Parameters
-
| [in] | comm | A transient reference to the communicator that the domain is distributed over. |
| [in] | points | A transient reference to a range of points in real world coordinates in which the finite element function is to be evaluated. |
| [in] | vector | The transient coefficient vector of the finite-element function. |
| [in] | space | The transient finite-element space corresponding to the vector. |
- Returns
- A vector of MatrixDiscreteEvalData objects that contain the evaluation results. One MatrixDiscreteEvalData object is returned per point in the point range. Each MatrixDiscreteEvalData object contains all values determined by all ranks that managed to evaluate the function in that point.
Definition at line 261 of file discrete_evaluator.hpp.
◆ get_local_bb()
template<typename BoundingBoxType_ , typename MeshType_ >
| static BoundingBoxType_ FEAT::Global::DiscreteEvaluator::get_local_bb |
( |
const MeshType_ & |
mesh | ) |
|
|
inlinestaticprivate |
◆ is_in_bb()
template<typename BoundingBoxType_ , typename PointType_ >
| static bool FEAT::Global::DiscreteEvaluator::is_in_bb |
( |
const BoundingBoxType_ & |
bb, |
|
|
const PointType_ & |
p |
|
) |
| |
|
inlinestaticprivate |
The documentation for this class was generated from the following file: