www.mooseframework.org
ContactDOFSetSize.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "GeneralPostprocessor.h"
13 
14 // Forward Declarations
15 class ContactDOFSetSize;
16 class MooseVariableFEBase;
17 namespace libMesh
18 {
19 class MeshBase;
20 }
21 
22 template <>
23 InputParameters validParams<ContactDOFSetSize>();
24 
25 class ContactDOFSetSize : public GeneralPostprocessor
26 {
27 public:
28  ContactDOFSetSize(const InputParameters & parameters);
29 
30  void initialize() override;
31  void execute() override;
32 
33  PostprocessorValue getValue() override;
34 
35 private:
37  const MooseVariableFEBase & _var;
38 
40  const MeshBase & _mesh;
41 
43  const SubdomainID _subdomain_id;
44 
46  const Real _tolerance;
47 
49  unsigned int _count;
50 };
ContactDOFSetSize::_tolerance
const Real _tolerance
The tolerance used to decide whether the variable indicates contact.
Definition: ContactDOFSetSize.h:46
libMesh
Definition: RANFSNormalMechanicalContact.h:24
ContactDOFSetSize
Definition: ContactDOFSetSize.h:25
ContactDOFSetSize::getValue
PostprocessorValue getValue() override
Definition: ContactDOFSetSize.C:79
ContactDOFSetSize::execute
void execute() override
Definition: ContactDOFSetSize.C:56
validParams< ContactDOFSetSize >
InputParameters validParams< ContactDOFSetSize >()
Definition: ContactDOFSetSize.C:25
ContactDOFSetSize::initialize
void initialize() override
Definition: ContactDOFSetSize.C:50
ContactDOFSetSize::_mesh
const MeshBase & _mesh
The libmesh mesh.
Definition: ContactDOFSetSize.h:40
ContactDOFSetSize::_var
const MooseVariableFEBase & _var
MOOSE variable we compute the contact set from.
Definition: ContactDOFSetSize.h:37
ContactDOFSetSize::_count
unsigned int _count
Represents the number of values in contact.
Definition: ContactDOFSetSize.h:49
ContactDOFSetSize::_subdomain_id
const SubdomainID _subdomain_id
The subdomain over which to query degrees of freedom.
Definition: ContactDOFSetSize.h:43
ContactDOFSetSize::ContactDOFSetSize
ContactDOFSetSize(const InputParameters &parameters)
Definition: ContactDOFSetSize.C:37