www.mooseframework.org
XFEMPressure.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 // Moose Includes
13 #include "DiracKernel.h"
14 
15 class Function;
16 
17 class XFEMPressure : public DiracKernel
18 {
19 public:
21 
23 
24  virtual void addPoints();
25  virtual Real computeQpResidual();
26 
27 protected:
28  const int _component;
29  const Real _factor;
30  const Function * const _function;
31 
32  const std::map<BoundaryID, std::shared_ptr<ElementPairLocator>> & _element_pair_locators;
33  std::map<const Elem *, std::map<unsigned int, Point>> _elem_qp_normal;
34  std::map<const Elem *, std::map<unsigned int, Real>> _elem_qp_JxW;
35 };
const Function *const _function
Definition: XFEMPressure.h:30
std::map< const Elem *, std::map< unsigned int, Point > > _elem_qp_normal
Definition: XFEMPressure.h:33
const int _component
Definition: XFEMPressure.h:28
std::map< const Elem *, std::map< unsigned int, Real > > _elem_qp_JxW
Definition: XFEMPressure.h:34
const std::map< BoundaryID, std::shared_ptr< ElementPairLocator > > & _element_pair_locators
Definition: XFEMPressure.h:32
XFEMPressure(const InputParameters &parameters)
Definition: XFEMPressure.C:31
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _factor
Definition: XFEMPressure.h:29
const InputParameters & parameters() const
virtual void addPoints()
Definition: XFEMPressure.C:41
static InputParameters validParams()
Definition: XFEMPressure.C:21
virtual Real computeQpResidual()
Definition: XFEMPressure.C:70