https://mooseframework.inl.gov
Loading...
Searching...
No Matches
HFEMDiffusion.C
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#include "HFEMDiffusion.h"
11
13
16{
18 params.addClassDescription("Imposes the constraints on internal sides with HFEM.");
19 return params;
20}
21
23
24Real
26{
27 switch (type)
28 {
29 case Moose::Element:
30 return -_lambda[_qp] * _test[_i][_qp];
31
32 case Moose::Neighbor:
33 return _lambda[_qp] * _test_neighbor[_i][_qp];
34 }
35 return 0;
36}
37
38Real
43
44Real
49
50Real
52{
53 switch (type)
54 {
56 return -_test_lambda[_i][_qp] * _phi[_j][_qp];
57
60
62 return -_phi_lambda[_j][_qp] * _test[_i][_qp];
63
66
67 default:
68 break;
69 }
70
71 return 0;
72}
registerMooseObject("MooseApp", HFEMDiffusion)
unsigned int _i
unsigned int _qp
unsigned int _j
const VariableTestValue & _test_neighbor
Side test function.
Definition DGKernel.h:110
const VariableValue & _u
Holds the current solution at the current quadrature point on the face.
Definition DGKernel.h:94
const VariableValue & _u_neighbor
Holds the current solution at the current quadrature point.
Definition DGKernel.h:114
const VariablePhiValue & _phi_neighbor
Side shape function.
Definition DGKernel.h:106
const VariableTestValue & _test
test functions
Definition DGKernel.h:102
const VariablePhiValue & _phi
Shape functions.
Definition DGKernel.h:98
The DGKernel class is responsible for calculating the residuals for various physics on internal sides...
const VariableValue & _lambda
Holds the current solution at the current quadrature point on the face.
static InputParameters validParams()
Factory constructor initializes all internal references needed for residual computation.
const VariablePhiValue & _phi_lambda
Shape functions.
const VariableTestValue & _test_lambda
test functions
HFEMDiffusion(const InputParameters &parameters)
virtual Real computeQpResidual(Moose::DGResidualType type) override
This is the virtual that derived classes should override for computing the residual on neighboring el...
virtual Real computeLowerDQpResidual() override
Method for computing the Lower part of residual at quadrature points, to be filled in residual.
virtual Real computeLowerDQpJacobian(Moose::ConstraintJacobianType type) override
Computes one of the five pieces of Jacobian involving lower-d at quadrature points.
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
This is the virtual that derived classes should override for computing the Jacobian on neighboring el...
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
const std::string & type() const
Get the type of this class.
Definition MooseBase.h:93
DGResidualType
Definition MooseTypes.h:798
@ Element
Definition MooseTypes.h:799
@ Neighbor
Definition MooseTypes.h:800
ConstraintJacobianType
Definition MooseTypes.h:851
@ PrimaryLower
Definition MooseTypes.h:860
@ LowerSecondary
Definition MooseTypes.h:857
@ LowerPrimary
Definition MooseTypes.h:858
@ SecondaryLower
Definition MooseTypes.h:859
DGJacobianType
Definition MooseTypes.h:804