www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
InterfaceDiffusionBoundaryTerm Class Reference

Add weak form surface terms of the Diffusion equation for two different variables across a subdomain boundary. More...

#include <InterfaceDiffusionBoundaryTerm.h>

Inheritance diagram for InterfaceDiffusionBoundaryTerm:
[legend]

Public Member Functions

 InterfaceDiffusionBoundaryTerm (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual (Moose::DGResidualType type) override
 
virtual Real computeQpJacobian (Moose::DGJacobianType type) override
 

Protected Attributes

const Real _D
 diffusion coefficient More...
 
const Real _D_neighbor
 neighbor diffusion coefficient More...
 

Detailed Description

Add weak form surface terms of the Diffusion equation for two different variables across a subdomain boundary.

Definition at line 24 of file InterfaceDiffusionBoundaryTerm.h.

Constructor & Destructor Documentation

◆ InterfaceDiffusionBoundaryTerm()

InterfaceDiffusionBoundaryTerm::InterfaceDiffusionBoundaryTerm ( const InputParameters &  parameters)

Definition at line 24 of file InterfaceDiffusionBoundaryTerm.C.

25  : InterfaceDiffusionBase(parameters)
26 {
27 }
InterfaceDiffusionBase(const InputParameters &parameters)

Member Function Documentation

◆ computeQpJacobian()

Real InterfaceDiffusionBoundaryTerm::computeQpJacobian ( Moose::DGJacobianType  type)
overrideprotectedvirtual

Definition at line 46 of file InterfaceDiffusionBoundaryTerm.C.

47 {
48  switch (type)
49  {
50  case Moose::ElementElement:
51  return -_D * _grad_phi[_j][_qp] * _normals[_qp] * _test[_i][_qp];
52 
53  case Moose::NeighborNeighbor:
54  return -_D_neighbor * _grad_phi_neighbor[_j][_qp] * -_normals[_qp] * _test_neighbor[_i][_qp];
55 
56  case Moose::ElementNeighbor:
57  return 0.0;
58 
59  case Moose::NeighborElement:
60  return 0.0;
61  }
62 
63  mooseError("Internal error.");
64 }
const Real _D_neighbor
neighbor diffusion coefficient
const Real _D
diffusion coefficient

◆ computeQpResidual()

Real InterfaceDiffusionBoundaryTerm::computeQpResidual ( Moose::DGResidualType  type)
overrideprotectedvirtual

Definition at line 30 of file InterfaceDiffusionBoundaryTerm.C.

31 {
32  // add weak form surface terms for the diffusion equation
33  switch (type)
34  {
35  case Moose::Element:
36  return -_D * _grad_u[_qp] * _normals[_qp] * _test[_i][_qp];
37 
38  case Moose::Neighbor:
39  return -_D_neighbor * _grad_neighbor_value[_qp] * -_normals[_qp] * _test_neighbor[_i][_qp];
40  }
41 
42  mooseError("Internal error.");
43 }
const Real _D_neighbor
neighbor diffusion coefficient
const Real _D
diffusion coefficient

Member Data Documentation

◆ _D

const Real InterfaceDiffusionBase::_D
protectedinherited

◆ _D_neighbor

const Real InterfaceDiffusionBase::_D_neighbor
protectedinherited

The documentation for this class was generated from the following files: