#include <NodalArea.h>
Definition at line 14 of file NodalArea.h.
◆ NodalArea()
NodalArea::NodalArea |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 30 of file NodalArea.C.
31 : SideIntegralVariableUserObject(parameters),
32 _phi(_variable->phiFace()),
◆ ~NodalArea()
NodalArea::~NodalArea |
( |
| ) |
|
|
virtual |
◆ computeQpIntegral()
Real NodalArea::computeQpIntegral |
( |
| ) |
|
|
protectedvirtual |
◆ execute()
void NodalArea::execute |
( |
| ) |
|
|
virtual |
Definition at line 66 of file NodalArea.C.
68 std::vector<Real> nodeAreas(
_phi.size());
69 for (
unsigned qp(0); qp < _qrule->n_points(); ++qp)
71 for (
unsigned j(0); j <
_phi.size(); ++j)
73 nodeAreas[j] += (
_phi[j][qp] * _JxW[qp] * _coord[qp]);
76 for (
unsigned j(0); j <
_phi.size(); ++j)
78 const Real area = nodeAreas[j];
◆ finalize()
void NodalArea::finalize |
( |
| ) |
|
|
virtual |
Definition at line 87 of file NodalArea.C.
90 const std::map<const Node *, Real>::iterator it_end =
_node_areas.end();
91 for (std::map<const Node *, Real>::iterator it =
_node_areas.begin(); it != it_end; ++it)
93 const Node *
const node = it->first;
94 dof_id_type dof = node->dof_number(
_system.number(), _variable->number(), 0);
99 for (std::map<const Node *, Real>::iterator it =
_node_areas.begin(); it != it_end; ++it)
101 const Node *
const node = it->first;
102 dof_id_type dof = node->dof_number(
_system.number(), _variable->number(), 0);
◆ initialize()
void NodalArea::initialize |
( |
| ) |
|
|
virtual |
◆ nodalArea()
Real NodalArea::nodalArea |
( |
const Node * |
node | ) |
const |
◆ threadJoin()
void NodalArea::threadJoin |
( |
const UserObject & |
uo | ) |
|
|
virtual |
Definition at line 41 of file NodalArea.C.
43 const NodalArea & na = dynamic_cast<const NodalArea &>(fred);
45 std::map<const Node *, Real>::const_iterator it = na.
_node_areas.begin();
46 const std::map<const Node *, Real>::const_iterator it_end = na.
_node_areas.end();
47 for (; it != it_end; ++it)
◆ _aux_solution
NumericVector<Number>& NodalArea::_aux_solution |
|
protected |
◆ _commMap
std::map<unsigned, unsigned> NodalArea::_commMap |
|
protected |
◆ _commVec
std::vector<Real> NodalArea::_commVec |
|
protected |
◆ _node_areas
std::map<const Node *, Real> NodalArea::_node_areas |
|
protected |
◆ _phi
const VariablePhiValue& NodalArea::_phi |
|
protected |
◆ _system
SystemBase& NodalArea::_system |
|
protected |
The documentation for this class was generated from the following files: