https://mooseframework.inl.gov
StoreVariableByElemIDSideUserObject.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "SideUserObject.h"
13 
18 {
19 public:
21 
23 
24  virtual void initialize() override;
25  virtual void execute() override;
26  virtual void finalize() override;
27  virtual void threadJoin(const UserObject & y) override;
28 
34  const std::vector<ADReal> & getVariableValues(dof_id_type elem_id) const;
35 
36 protected:
38  std::map<dof_id_type, std::vector<ADReal>> _elem_id_to_var_values;
39 
42 };
StoreVariableByElemIDSideUserObject(const InputParameters &parameters)
const std::vector< ADReal > & getVariableValues(dof_id_type elem_id) const
Gets the variable values at each quadrature point on the provided element.
Stores variable values at each quadrature point on a side by element ID.
virtual void threadJoin(const UserObject &y) override
const std::vector< double > y
const ADVariableValue & _u
Variable value.
const InputParameters & parameters() const
std::map< dof_id_type, std::vector< ADReal > > _elem_id_to_var_values
Map of element ID to variable values at each side quadrature point.
uint8_t dof_id_type