https://mooseframework.inl.gov
Loading...
Searching...
No Matches
contact
include
postprocessors
MortarContactForce.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 "
GeneralPostprocessor.h
"
13
14
#include <unordered_map>
15
16
class
WeightedGapUserObject
;
17
class
AutomaticMortarGeneration
;
18
class
MooseMesh
;
19
23
class
MortarContactForce
:
public
GeneralPostprocessor
24
{
25
public
:
26
static
InputParameters
validParams
();
27
28
MortarContactForce
(
const
InputParameters
&
parameters
);
29
30
virtual
void
initialize
()
override
;
31
virtual
void
execute
()
override
;
32
virtual
void
finalize
()
override
;
33
virtual
PostprocessorValue
getValue
()
const override
;
34
35
protected
:
37
const
WeightedGapUserObject
&
_weighted_gap_uo
;
38
40
const
unsigned
int
_component
;
41
43
const
MooseMesh
&
_displaced_mesh
;
44
46
const
AutomaticMortarGeneration
&
_amg
;
47
49
const
std::unordered_map<dof_id_type, std::vector<const Elem *>> &
_node_to_elems
;
50
52
RealVectorValue
_force
;
53
};
GeneralPostprocessor.h
PostprocessorValue
Real PostprocessorValue
AutomaticMortarGeneration
GeneralPostprocessor
GeneralPostprocessor::parameters
const InputParameters & parameters() const
MortarContactForce
Normal contact force of one mortar contact pair, from its weighted gap user object.
Definition
MortarContactForce.h:24
MortarContactForce::getValue
virtual PostprocessorValue getValue() const override
Definition
MortarContactForce.C:92
MortarContactForce::_weighted_gap_uo
const WeightedGapUserObject & _weighted_gap_uo
Weighted gap user object of the pair.
Definition
MortarContactForce.h:37
MortarContactForce::validParams
static InputParameters validParams()
Definition
MortarContactForce.C:22
MortarContactForce::finalize
virtual void finalize() override
Definition
MortarContactForce.C:83
MortarContactForce::initialize
virtual void initialize() override
Definition
MortarContactForce.C:56
MortarContactForce::_displaced_mesh
const MooseMesh & _displaced_mesh
Displaced mesh, on which the pair's mortar interface lives.
Definition
MortarContactForce.h:43
MortarContactForce::_component
const unsigned int _component
Component to report (0, 1, 2), or 3 for the magnitude.
Definition
MortarContactForce.h:40
MortarContactForce::_amg
const AutomaticMortarGeneration & _amg
Mortar interface of the pair, which holds the nodal normals.
Definition
MortarContactForce.h:46
MortarContactForce::_force
RealVectorValue _force
Contact force.
Definition
MortarContactForce.h:52
MortarContactForce::_node_to_elems
const std::unordered_map< dof_id_type, std::vector< const Elem * > > & _node_to_elems
Map from a secondary node to its lower-dimensional secondary elements.
Definition
MortarContactForce.h:49
MortarContactForce::execute
virtual void execute() override
Definition
MortarContactForce.C:62
WeightedGapUserObject
Creates dof object to weighted gap map.
Definition
WeightedGapUserObject.h:18
InputParameters
MooseMesh
Generated on Wed Nov 11 2026 20:25:33 for https://mooseframework.inl.gov by
1.9.8