10#ifndef __FIELD_EVALUATOR_HPP__
11 #define __FIELD_EVALUATOR_HPP__
58 boost::shared_ptr<SPD>
59 getData(
const double *ptr =
nullptr,
const int nb_eval_points = 0,
70 buildTree(boost::shared_ptr<SetIntegrationPtsMethodData> spd_ptr,
71 const std::string finite_element) {
85 buildTree(boost::shared_ptr<SetIntegrationPtsMethodData> spd_ptr,
135 const std::string problem,
const std::string finite_element,
136 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
137 int lower_rank,
int upper_rank,
138 boost::shared_ptr<CacheTuple> cache_ptr,
140 return evalFEAtThePoint<D>(point, distance, problem, finite_element,
147 std::pair<boost::shared_ptr<MatrixDouble>,
148 boost::shared_ptr<MatrixDouble>>
173 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
199 const std::string problem,
const std::string finite_element,
200 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
202 BitRefLevel mask, boost::shared_ptr<CacheTuple> cache_ptr,
210 buildTreeImpl(boost::shared_ptr<SetIntegrationPtsMethodData> spd_ptr,
216 const double *
const point,
const double distance,
217 const std::string problem,
const std::string finite_element,
218 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
int lower_rank,
226 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
235 boost::shared_ptr<SetIntegrationPtsMethodData> spd_ptr,
240 boost::shared_ptr<SetIntegrationPtsMethodData> spd_ptr,
245 const double *
const point,
const double distance,
const std::string problem,
246 const std::string finite_element,
247 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
int lower_rank,
249 boost::shared_ptr<CacheTuple> cache_ptr,
MoFEMTypes bh,
254 const double *
const point,
const double distance,
const std::string problem,
255 const std::string finite_element,
256 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
int lower_rank,
258 boost::shared_ptr<CacheTuple> cache_ptr,
MoFEMTypes bh,
263FieldEvaluatorInterface::getDataOperator<2>(
265 const std::string finite_element,
266 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
int lower_rank,
272FieldEvaluatorInterface::getDataOperator<3>(
274 const std::string finite_element,
275 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr,
int lower_rank,
293 boost::shared_ptr<MoFEM::ForcesAndSourcesCore> fe_method_ptr,
294 const double *eval_points,
const int nb_eval_points,
const double eps,
297 void setEvalPoints(
const double *ptr,
const int nb_eval_points);
320 boost::shared_ptr<SetIntegrationPtsMethodData> data_ptr);
322 int order_col,
int order_data);
325 boost::weak_ptr<SetIntegrationPtsMethodData>
dataPtr;
332template <
typename VE,
typename SPD,
typename SP>
333boost::shared_ptr<SPD>
337 auto ve_method_ptr = boost::make_shared<VE>(m_field);
339 boost::make_shared<SPD>(ve_method_ptr, ptr, nb_eval_points,
eps, verb);
340 ve_method_ptr->setRuleHook = SP(spd_ptr);
VERBOSITY_LEVELS
Verbosity levels.
MoFEMTypes
Those types control how functions respond on arguments, f.e. error handling.
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
implementation of Data Operators for Forces and Sources
Deprecated interface functions.
boost::shared_ptr< MoFEM::ForcesAndSourcesCore > feMethodPtr
MatrixDouble shapeFunctions
void setEvalPoints(const double *ptr, const int nb_eval_points)
SetIntegrationPtsMethodData()=delete
boost::shared_ptr< AdaptiveKDTree > treePtr
friend FieldEvaluatorInterface
std::vector< EntityHandle > evalPointEntityHandle
const double * evalPoints
SetIntegrationPtsMethod()=delete
MoFEMErrorCode operator()(ForcesAndSourcesCore *fe_raw_ptr, int order_row, int order_col, int order_data)
boost::weak_ptr< SetIntegrationPtsMethodData > dataPtr
Field evaluator interface.
MoFEMErrorCode evalFEAtThePoint(const double *const point, const double distance, const std::string problem, const std::string finite_element, boost::shared_ptr< SetIntegrationPtsMethodData > data_ptr, int lower_rank, int upper_rank, boost::shared_ptr< CacheTuple > cache_ptr, MoFEMTypes bh=MF_EXIST, VERBOSITY_LEVELS verb=QUIET)
Evaluate field at arbitrary position.
MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, UnknownInterface **iface) const
MoFEMErrorCode evalFEAtThePoint(const double *const point, const double distance, const std::string problem, const std::string finite_element, boost::shared_ptr< SetIntegrationPtsMethodData > data_ptr, int lower_rank, int upper_rank, BitRefLevel bit, BitRefLevel mask, boost::shared_ptr< CacheTuple > cache_ptr, MoFEMTypes bh=MF_EXIST, VERBOSITY_LEVELS verb=QUIET)
Evaluate field at arbitrary position.
std::vector< std::pair< boost::shared_ptr< MatrixDouble >, boost::shared_ptr< MatrixDouble > > > MatDataPts
boost::shared_ptr< SPD > getData(const double *ptr=nullptr, const int nb_eval_points=0, const double eps=1e-12, VERBOSITY_LEVELS verb=QUIET)
Get the Data object.
MoFEMErrorCode buildTreeImpl(boost::shared_ptr< SetIntegrationPtsMethodData > spd_ptr, const std::string finite_element, BitRefLevel bit, BitRefLevel mask)
MoFEMErrorCode buildTree(boost::shared_ptr< SetIntegrationPtsMethodData > spd_ptr, const std::string finite_element)
Build spatial tree.
MoFEMErrorCode buildTree(boost::shared_ptr< SetIntegrationPtsMethodData > spd_ptr, const std::string finite_element, BitRefLevel bit, BitRefLevel mask)
Build spatial tree.
MoFEMErrorCode evalFEAtThePointImpl(const double *const point, const double distance, const std::string problem, const std::string finite_element, boost::shared_ptr< SetIntegrationPtsMethodData > data_ptr, int lower_rank, int upper_rank, BitRefLevel bit, BitRefLevel mask, boost::shared_ptr< CacheTuple > cache_ptr, MoFEMTypes bh=MF_EXIST, VERBOSITY_LEVELS verb=QUIET)
ForcesAndSourcesCore::UserDataOperator * getDataOperatorImpl(MatDataPts mat_data_pts, const std::string finite_element, boost::shared_ptr< SetIntegrationPtsMethodData > data_ptr, int lower_rank, int upper_rank, BitRefLevel bit, BitRefLevel mask, MoFEMTypes bh=MF_EXIST, VERBOSITY_LEVELS verb=QUIET, DataLayout data_layout=DataLayout::GaussByCoeffs)
ForcesAndSourcesCore::UserDataOperator * getDataOperator(MatDataPts mat_data_pts, const std::string finite_element, boost::shared_ptr< SetIntegrationPtsMethodData > data_ptr, int lower_rank, int upper_rank, BitRefLevel bit, BitRefLevel mask, MoFEMTypes bh=MF_EXIST, VERBOSITY_LEVELS verb=QUIET, DataLayout data_layout=DataLayout::GaussByCoeffs)
Evaluate field values at integration points of finite elements to which operator is pushed.
structure to get information from mofem into EntitiesFieldData
base class for all interface classes