Flow123d  DF_patch_fe_values-dbc06cd
Public Member Functions | List of all members
Op::PtCoords< dim, Domain, spacedim > Class Template Reference

#include <op_function.hh>

Inheritance diagram for Op::PtCoords< dim, Domain, spacedim >:
Inheritance graph
[legend]
Collaboration diagram for Op::PtCoords< dim, Domain, spacedim >:
Collaboration graph
[legend]

Public Member Functions

 PtCoords (PatchFEValues< spacedim > &pfev, const Quadrature *quad)
 Constructor. More...
 
void eval () override
 Reinit function of operation. Implementation in descendants. More...
 
- Public Member Functions inherited from PatchOp< 3 >
 PatchOp (uint dim, PatchFEValues< spacedim > &pfev, const Quadrature *quad, std::initializer_list< uint > shape, uint n_dofs=1)
 
virtual ~PatchOp ()
 Destructor. More...
 
std::vector< uintset_shape_vec (std::initializer_list< uint > shape) const
 Aligns shape_vec to 2 items (equal to matrix number of dimensions) More...
 
uint n_comp () const
 
ElemDomain domain () const
 Getter for bulk_side flag. More...
 
uint n_dofs () const
 Getter for n_dofs_. More...
 
PatchOp< spacedim > * input_ops (uint i_op) const
 Return pointer to operation of i_op index in input operation vector. More...
 
const std::vector< uint > & shape () const
 Getter for shape_. More...
 
std::string format_shape () const
 
void allocate_result (size_t data_size, PatchArena &arena)
 
void allocate_const_result (ArenaVec< double > &value_vec)
 
Eigen::Map< Eigen::Matrix< ArenaVec< double >, Eigen::Dynamic, Eigen::Dynamic > > result_matrix ()
 Return map referenced result as Eigen::Vector. More...
 
Eigen::Map< Eigen::Matrix< ArenaVec< double >, Eigen::Dynamic, Eigen::Dynamic > > result_sub_matrix (uint i_dof)
 Return map referenced result of DOF values as Eigen::Matrix. More...
 
Eigen::Vector< ArenaVec< double >, Eigen::Dynamic > & raw_result ()
 Return map referenced result as Eigen::Vector. More...
 
const Eigen::Vector< ArenaVec< double >, Eigen::Dynamic > & raw_result () const
 Same as previous but return const reference. More...
 
PatchPointValues< spacedim > & ppv () const
 Return reference of PatchPointValues. More...
 
ValueType elem_value (uint point_idx) const
 
ValueType point_value (uint point_idx, uint i_dof=0) const
 
unsigned int quad_size () const
 Return size of quadrature. More...
 
PatchArenapatch_arena () const
 return reference to patch arena More...
 

Additional Inherited Members

- Protected Attributes inherited from PatchOp< 3 >
uint dim_
 Dimension. More...
 
ElemDomain domain_
 Flag: BulkOp = 0, SideOp = 1. More...
 
std::vector< uintshape_
 Shape of stored data (size of vector or number of rows and cols of matrix) More...
 
Eigen::Vector< ArenaVec< double >, Eigen::Dynamic > result_
 Result matrix of operation. More...
 
std::vector< PatchOp< spacedim > * > input_ops_
 Indices of operations in PatchPointValues::operations_ vector on which PatchOp is depended. More...
 
uint n_dofs_
 Number of DOFs of FE operations (or 1 in case of element operations) More...
 
PatchFEValues< spacedim > * patch_fe_
 Pointer to PatchFEValues object. More...
 
const Quadraturequad_
 Pointer to Quadrature. More...
 

Detailed Description

template<unsigned int dim, class Domain, unsigned int spacedim = 3>
class Op::PtCoords< dim, Domain, spacedim >

Evaluates coordinates of quadrature points

Important note !!! Usage of this operation is currently in L2 error calculation in DarcyFlow output. It should not be used by any other operation. It should be unified with Field Coords in future.

Definition at line 327 of file op_function.hh.

Constructor & Destructor Documentation

◆ PtCoords()

template<unsigned int dim, class Domain , unsigned int spacedim = 3>
Op::PtCoords< dim, Domain, spacedim >::PtCoords ( PatchFEValues< spacedim > &  pfev,
const Quadrature quad 
)
inline

Constructor.

Definition at line 330 of file op_function.hh.

Member Function Documentation

◆ eval()

template<unsigned int dim, class Domain , unsigned int spacedim = 3>
void Op::PtCoords< dim, Domain, spacedim >::eval ( )
inlineoverridevirtual

Reinit function of operation. Implementation in descendants.

Implements PatchOp< 3 >.

Definition at line 338 of file op_function.hh.


The documentation for this class was generated from the following file: