#include <ContactDOFSetSize.h>
|
const MooseVariableFEBase & | _var |
| MOOSE variable we compute the contact set from. More...
|
|
const MeshBase & | _mesh |
| The libmesh mesh. More...
|
|
const SubdomainID | _subdomain_id |
| The subdomain over which to query degrees of freedom. More...
|
|
const Real | _tolerance |
| The tolerance used to decide whether the variable indicates contact. More...
|
|
unsigned int | _count |
| Represents the number of values in contact. More...
|
|
Definition at line 25 of file ContactDOFSetSize.h.
◆ ContactDOFSetSize()
ContactDOFSetSize::ContactDOFSetSize |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 37 of file ContactDOFSetSize.C.
38 : GeneralPostprocessor(parameters),
39 _var(_fe_problem.getVariable(_tid,
40 getParam<VariableName>(
"variable"),
41 Moose::VarKindType::VAR_NONLINEAR,
42 Moose::VarFieldType::VAR_FIELD_STANDARD)),
43 _mesh(_fe_problem.mesh().getMesh()),
44 _subdomain_id(_fe_problem.mesh().getSubdomainID(getParam<SubdomainName>(
"subdomain"))),
◆ execute()
void ContactDOFSetSize::execute |
( |
| ) |
|
|
override |
Definition at line 56 of file ContactDOFSetSize.C.
58 AllLocalDofIndicesThread aldit(_fe_problem.getNonlinearSystemBase().system(), {
_var.name()});
64 ConstElemRange range(elem_begin, elem_end);
66 Threads::parallel_reduce(range, aldit);
68 auto && solution = _fe_problem.getNonlinearSystemBase().solution();
70 for (
auto dof : aldit._all_dof_indices)
75 _console << std::endl <<
"The number of nodes in contact is " <<
_count << std::endl << std::endl;
◆ getValue()
PostprocessorValue ContactDOFSetSize::getValue |
( |
| ) |
|
|
override |
◆ initialize()
void ContactDOFSetSize::initialize |
( |
| ) |
|
|
override |
◆ _count
unsigned int ContactDOFSetSize::_count |
|
private |
◆ _mesh
const MeshBase& ContactDOFSetSize::_mesh |
|
private |
◆ _subdomain_id
const SubdomainID ContactDOFSetSize::_subdomain_id |
|
private |
◆ _tolerance
const Real ContactDOFSetSize::_tolerance |
|
private |
◆ _var
const MooseVariableFEBase& ContactDOFSetSize::_var |
|
private |
The documentation for this class was generated from the following files: