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 21 of file InterfaceDiffusionBoundaryTerm.h.

Constructor & Destructor Documentation

InterfaceDiffusionBoundaryTerm::InterfaceDiffusionBoundaryTerm ( const InputParameters &  parameters)

Definition at line 19 of file InterfaceDiffusionBoundaryTerm.C.

20  : InterfaceDiffusionBase(parameters)
21 {
22 }
InterfaceDiffusionBase(const InputParameters &parameters)

Member Function Documentation

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

Definition at line 41 of file InterfaceDiffusionBoundaryTerm.C.

42 {
43  switch (type)
44  {
45  case Moose::ElementElement:
46  return -_D * _grad_phi[_j][_qp] * _normals[_qp] * _test[_i][_qp];
47 
48  case Moose::NeighborNeighbor:
49  return -_D_neighbor * _grad_phi_neighbor[_j][_qp] * -_normals[_qp] * _test_neighbor[_i][_qp];
50 
51  case Moose::ElementNeighbor:
52  return 0.0;
53 
54  case Moose::NeighborElement:
55  return 0.0;
56  }
57 
58  mooseError("Internal error.");
59 }
const Real _D_neighbor
neighbor diffusion coefficient
const Real _D
diffusion coefficient
Real InterfaceDiffusionBoundaryTerm::computeQpResidual ( Moose::DGResidualType  type)
overrideprotectedvirtual

Definition at line 25 of file InterfaceDiffusionBoundaryTerm.C.

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

Member Data Documentation

const Real InterfaceDiffusionBase::_D
protectedinherited
const Real InterfaceDiffusionBase::_D_neighbor
protectedinherited

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