Reference documentation for deal.II version 8.5.1
Public Member Functions | Private Attributes | List of all members
internal::DataOut::DataEntry< DoFHandlerType, VectorType > Class Template Reference
Inheritance diagram for internal::DataOut::DataEntry< DoFHandlerType, VectorType >:
[legend]

Public Member Functions

 DataEntry (const DoFHandlerType *dofs, const VectorType *data, const std::vector< std::string > &names, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation)
 
 DataEntry (const DoFHandlerType *dofs, const VectorType *data, const DataPostprocessor< DoFHandlerType::space_dimension > *data_postprocessor)
 
virtual double get_cell_data_value (const unsigned int cell_number) const
 
virtual void get_function_values (const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &fe_patch_values, std::vector< double > &patch_values) const
 
virtual void get_function_values (const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &fe_patch_values, std::vector<::Vector< double > > &patch_values_system) const
 
virtual void get_function_gradients (const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &fe_patch_values, std::vector< Tensor< 1, DoFHandlerType::space_dimension > > &patch_gradients) const
 
virtual void get_function_gradients (const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &fe_patch_values, std::vector< std::vector< Tensor< 1, DoFHandlerType::space_dimension > > > &patch_gradients_system) const
 
virtual void get_function_hessians (const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &fe_patch_values, std::vector< Tensor< 2, DoFHandlerType::space_dimension > > &patch_hessians) const
 
virtual void get_function_hessians (const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &fe_patch_values, std::vector< std::vector< Tensor< 2, DoFHandlerType::space_dimension > > > &patch_hessians_system) const
 
virtual void clear ()
 
virtual std::size_t memory_consumption () const
 
- Public Member Functions inherited from internal::DataOut::DataEntryBase< DoFHandlerType >
 DataEntryBase (const DoFHandlerType *dofs, const std::vector< std::string > &names, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation)
 
 DataEntryBase (const DoFHandlerType *dofs, const DataPostprocessor< DoFHandlerType::space_dimension > *data_postprocessor)
 
virtual ~DataEntryBase ()
 

Private Attributes

const VectorType * vector
 

Additional Inherited Members

- Public Attributes inherited from internal::DataOut::DataEntryBase< DoFHandlerType >
SmartPointer< const DoFHandlerType > dof_handler
 
const std::vector< std::string > names
 
const std::vector< DataComponentInterpretation::DataComponentInterpretationdata_component_interpretation
 
SmartPointer< const ::DataPostprocessor< DoFHandlerType::space_dimension > > postprocessor
 
unsigned int n_output_variables
 

Detailed Description

template<typename DoFHandlerType, typename VectorType>
class internal::DataOut::DataEntry< DoFHandlerType, VectorType >

Class that stores a pointer to a vector of type equal to the template argument, and provides the functions to extract data from it.

Author
Wolfgang Bangerth, 2004

Definition at line 378 of file data_out_dof_data.cc.

Constructor & Destructor Documentation

◆ DataEntry() [1/2]

template<typename DoFHandlerType , typename VectorType >
internal::DataOut::DataEntry< DoFHandlerType, VectorType >::DataEntry ( const DoFHandlerType *  dofs,
const VectorType *  data,
const std::vector< std::string > &  names,
const std::vector< DataComponentInterpretation::DataComponentInterpretation > &  data_component_interpretation 
)

Constructor. Give a list of names for the individual components of the vector and their interpretation as scalar or vector data. This constructor assumes that no postprocessor is going to be used.

Definition at line 495 of file data_out_dof_data.cc.

◆ DataEntry() [2/2]

template<typename DoFHandlerType , typename VectorType >
internal::DataOut::DataEntry< DoFHandlerType, VectorType >::DataEntry ( const DoFHandlerType *  dofs,
const VectorType *  data,
const DataPostprocessor< DoFHandlerType::space_dimension > *  data_postprocessor 
)

Constructor when a data postprocessor is going to be used. In that case, the names and vector declarations are going to be acquired from the postprocessor.

Definition at line 508 of file data_out_dof_data.cc.

Member Function Documentation

◆ get_cell_data_value()

template<typename DoFHandlerType , typename VectorType >
double internal::DataOut::DataEntry< DoFHandlerType, VectorType >::get_cell_data_value ( const unsigned int  cell_number) const
virtual

Assuming that the stored vector is a cell vector, extract the given element from it.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 541 of file data_out_dof_data.cc.

◆ get_function_values() [1/2]

template<typename DoFHandlerType , typename VectorType >
void internal::DataOut::DataEntry< DoFHandlerType, VectorType >::get_function_values ( const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &  fe_patch_values,
std::vector< double > &  patch_values 
) const
virtual

Given a FEValuesBase object, extract the values on the present cell from the vector we actually store.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 594 of file data_out_dof_data.cc.

◆ get_function_values() [2/2]

template<typename DoFHandlerType , typename VectorType >
void internal::DataOut::DataEntry< DoFHandlerType, VectorType >::get_function_values ( const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &  fe_patch_values,
std::vector<::Vector< double > > &  patch_values_system 
) const
virtual

Given a FEValuesBase object, extract the values on the present cell from the vector we actually store. This function does the same as the one above but for vector-valued finite elements.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 551 of file data_out_dof_data.cc.

◆ get_function_gradients() [1/2]

template<typename DoFHandlerType , typename VectorType >
void internal::DataOut::DataEntry< DoFHandlerType, VectorType >::get_function_gradients ( const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &  fe_patch_values,
std::vector< Tensor< 1, DoFHandlerType::space_dimension > > &  patch_gradients 
) const
virtual

Given a FEValuesBase object, extract the gradients on the present cell from the vector we actually store.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 681 of file data_out_dof_data.cc.

◆ get_function_gradients() [2/2]

template<typename DoFHandlerType , typename VectorType >
void internal::DataOut::DataEntry< DoFHandlerType, VectorType >::get_function_gradients ( const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &  fe_patch_values,
std::vector< std::vector< Tensor< 1, DoFHandlerType::space_dimension > > > &  patch_gradients_system 
) const
virtual

Given a FEValuesBase object, extract the gradients on the present cell from the vector we actually store. This function does the same as the one above but for vector-valued finite elements.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 635 of file data_out_dof_data.cc.

◆ get_function_hessians() [1/2]

template<typename DoFHandlerType , typename VectorType >
void internal::DataOut::DataEntry< DoFHandlerType, VectorType >::get_function_hessians ( const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &  fe_patch_values,
std::vector< Tensor< 2, DoFHandlerType::space_dimension > > &  patch_hessians 
) const
virtual

Given a FEValuesBase object, extract the second derivatives on the present cell from the vector we actually store.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 769 of file data_out_dof_data.cc.

◆ get_function_hessians() [2/2]

template<typename DoFHandlerType , typename VectorType >
void internal::DataOut::DataEntry< DoFHandlerType, VectorType >::get_function_hessians ( const FEValuesBase< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &  fe_patch_values,
std::vector< std::vector< Tensor< 2, DoFHandlerType::space_dimension > > > &  patch_hessians_system 
) const
virtual

Given a FEValuesBase object, extract the second derivatives on the present cell from the vector we actually store. This function does the same as the one above but for vector-valued finite elements.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 723 of file data_out_dof_data.cc.

◆ clear()

template<typename DoFHandlerType , typename VectorType >
void internal::DataOut::DataEntry< DoFHandlerType, VectorType >::clear ( )
virtual

Clear all references to the vectors.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 821 of file data_out_dof_data.cc.

◆ memory_consumption()

template<typename DoFHandlerType , typename VectorType >
std::size_t internal::DataOut::DataEntry< DoFHandlerType, VectorType >::memory_consumption ( ) const
virtual

Determine an estimate for the memory consumption (in bytes) of this object.

Implements internal::DataOut::DataEntryBase< DoFHandlerType >.

Definition at line 811 of file data_out_dof_data.cc.

Member Data Documentation

◆ vector

template<typename DoFHandlerType, typename VectorType>
const VectorType* internal::DataOut::DataEntry< DoFHandlerType, VectorType >::vector
private

Pointer to the data vector. Note that ownership of the vector pointed to remains with the caller of this class.

Definition at line 488 of file data_out_dof_data.cc.


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