Flow123d
JS_before_hm-2154-g185f171e0
|
Go to the documentation of this file.
18 #ifndef ASSEMBLY_OUTPUT_HH_
19 #define ASSEMBLY_OUTPUT_HH_
21 #include <unordered_map>
39 template <
unsigned int dim>
76 stream_->update_time(f_acc->time());
99 template <
unsigned int dim>
107 static constexpr
const char *
name() {
return "AssemblyOutputElemData"; }
119 unsigned int element_patch_idx, field_value_cache_position, val_idx;
121 for (
unsigned int i=0; i<bulk_integral_data.
permanent_size(); ++i) {
123 auto p = *( this->
bulk_points(element_patch_idx).begin() );
125 val_idx = this->
stream_->get_output_mesh_ptr()->get_loc_elem_idx(bulk_integral_data[i].cell.elm_idx());
126 this->
offsets_[field_value_cache_position] = val_idx;
129 f_acc->fill_data_value(this->
offsets_);
133 template <
template<
IntDim...>
class DimAssembly>
141 template <
unsigned int dim>
149 static constexpr
const char *
name() {
return "AssemblyOutputNodeData"; }
155 for(
unsigned int i = 0; i<RefElement<dim>::n_nodes; i++)
175 unsigned int element_patch_idx, field_value_cache_position, val_idx;
177 for (
unsigned int i=0; i<bulk_integral_data.
permanent_size(); ++i) {
179 val_idx = (*offset_vec_)[ this->
stream_->get_output_mesh_ptr()->get_loc_elem_idx(bulk_integral_data[i].cell.elm_idx()) ];
180 auto p = *( this->
bulk_points(element_patch_idx).begin() );
182 for (
uint j=0; j<bulk_integral_data[i].cell.dim()+1; ++j) {
183 this->
offsets_[field_value_cache_position+j] = val_idx+j;
187 f_acc->fill_data_value(this->
offsets_);
194 template <
template<
IntDim...>
class DimAssembly>
static unsigned int get()
Return number of stored elements.
void initialize(ElementCacheMap *element_cache_map)
Initialize auxiliary vectors and other data members.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc.
static constexpr const char * name()
void assemble_cell_integrals(const RevertableList< BulkIntegralData > &bulk_integral_data)
Assembles the cell integrals for the given dimension.
unsigned int position_in_cache(unsigned mesh_elm_idx, bool bdr=false) const
Return position of element stored in ElementCacheMap.
Directing class of FieldValueCache.
Class FEValues calculates finite element data on the actual cells such as shape function values,...
std::size_t permanent_size() const
Return permanent size of list.
std::vector< int > offsets_
Holds indices (offsets) of cached data to output data vector.
Range< FieldListAccessor > fields_range() const
Returns range of Fields held in field_list.
~AssemblyOutputNodeData()
Destructor.
AssemblyOutputBase(EqFields *eq_fields, EqData *eq_data)
Constructor.
GenericAssemblyBase::BulkIntegralData BulkIntegralData
Definitions of basic Lagrangean finite elements with polynomial shape functions.
std::shared_ptr< OutputTime > stream_
Output stream.
static constexpr const char * name()
Definitions of particular quadrature rules on simplices.
AssemblyOutputNodeData(EqFields *eq_fields, EqData *eq_data)
Constructor.
Armor::Array< double >::ArrayMatSet set(uint i)
std::shared_ptr< std::vector< unsigned int > > offset_vec_
Holds offsets of individual local elements.
double weight(unsigned int i) const
Returns the ith weight.
int element_eval_point(unsigned int i_elem_in_cache, unsigned int i_eval_point) const
~AssemblyOutputElemData()
Destructor.
FieldSet used_fields_
Sub field set contains fields performed to output.
Container for various descendants of FieldCommonBase.
void end() override
Implements AssemblyBase::end.
void set_output_data(const FieldSet &used, std::shared_ptr< OutputTime > stream)
Sets output data members.
Range< BulkPoint > bulk_points(unsigned int element_patch_idx) const
Return BulkPoint range of appropriate dimension.
static LocalPoint node_coords(unsigned int nid)
void set_output_data(const FieldSet &used, std::shared_ptr< OutputTime > stream)
Sets output data members.
void assemble_cell_integrals(const RevertableList< BulkIntegralData > &bulk_integral_data)
Assembles the cell integrals for the given dimension.
int active_integrals_
Holds mask of active integrals.
AssemblyOutputElemData(EqFields *eq_fields, EqData *eq_data)
Constructor.
EqFields * eq_fields_
Data objects shared with EquationOutput.
AssemblyOutputBase(unsigned int quad_order, EqFields *eq_fields, EqData *eq_data)
Constructor.
Base class for quadrature rules on simplices in arbitrary dimensions.
Generic class of assemblation.
ElementCacheMap * element_cache_map_
ElementCacheMap shared with GenericAssembly object.
GenericAssemblyBase::BulkIntegralData BulkIntegralData
Quadrature * quad_
Quadrature used in assembling methods.
unsigned int IntDim
A dimension index type.