www.mooseframework.org
XFEMPressure.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef XFEMPRESSURE_H
8 #define XFEMPRESSURE_H
9 
10 // Moose Includes
11 #include "DiracKernel.h"
12 
13 class Function;
14 
15 class XFEMPressure : public DiracKernel
16 {
17 public:
18  XFEMPressure(const InputParameters & parameters);
19 
20  virtual void addPoints();
21  virtual Real computeQpResidual();
22 
23 protected:
24  const int _component;
25  const Real _factor;
26  Function * const _function;
27 
28  std::map<unsigned int, MooseSharedPointer<ElementPairLocator>> * _element_pair_locators;
29  std::map<const Elem *, std::map<unsigned int, Point>> _elem_qp_normal;
30  std::map<const Elem *, std::map<unsigned int, Real>> _elem_qp_JxW;
31 };
32 
33 template <>
34 InputParameters validParams<XFEMPressure>();
35 
36 #endif // XFEMPRESSURE_H
std::map< const Elem *, std::map< unsigned int, Point > > _elem_qp_normal
Definition: XFEMPressure.h:29
const int _component
Definition: XFEMPressure.h:24
std::map< const Elem *, std::map< unsigned int, Real > > _elem_qp_JxW
Definition: XFEMPressure.h:30
XFEMPressure(const InputParameters &parameters)
Definition: XFEMPressure.C:24
InputParameters validParams< XFEMPressure >()
Definition: XFEMPressure.C:15
std::map< unsigned int, MooseSharedPointer< ElementPairLocator > > * _element_pair_locators
Definition: XFEMPressure.h:28
const Real _factor
Definition: XFEMPressure.h:25
virtual void addPoints()
Definition: XFEMPressure.C:35
Function *const _function
Definition: XFEMPressure.h:26
virtual Real computeQpResidual()
Definition: XFEMPressure.C:72