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

Allows specification of Dirichlet BCs on an evolving boundary RichardsExcav is applied on a sideset, and the function excav_geom_function tells moose where on the sideset to apply the BC through the shouldApply() function. More...

#include <RichardsExcav.h>

Inheritance diagram for RichardsExcav:
[legend]

Public Member Functions

 RichardsExcav (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual bool shouldApply ()
 if excav_geom_function is != 0 at the point on the boundary then apply the dirichlet BC More...
 

Protected Attributes

Real _p_excav
 The variable will be made equal to _p_excav at the "active" points on the boundary. More...
 
Function & _func
 Controls which points are "active" on the boundary An "active" point is where _func != 0, and at these points the Dirichlet condition variable = _p_excav will be applied. More...
 

Detailed Description

Allows specification of Dirichlet BCs on an evolving boundary RichardsExcav is applied on a sideset, and the function excav_geom_function tells moose where on the sideset to apply the BC through the shouldApply() function.

Definition at line 26 of file RichardsExcav.h.

Constructor & Destructor Documentation

RichardsExcav::RichardsExcav ( const InputParameters &  parameters)

Definition at line 30 of file RichardsExcav.C.

31  : NodalBC(parameters),
32  _p_excav(getParam<Real>("p_excav")),
33  _func(getFunction("excav_geom_function"))
34 {
35 }
Real _p_excav
The variable will be made equal to _p_excav at the "active" points on the boundary.
Definition: RichardsExcav.h:44
Function & _func
Controls which points are "active" on the boundary An "active" point is where _func != 0...
Definition: RichardsExcav.h:52

Member Function Documentation

Real RichardsExcav::computeQpResidual ( )
protectedvirtual

Definition at line 47 of file RichardsExcav.C.

48 {
49  return _u[_qp] - _p_excav;
50 }
Real _p_excav
The variable will be made equal to _p_excav at the "active" points on the boundary.
Definition: RichardsExcav.h:44
bool RichardsExcav::shouldApply ( )
protectedvirtual

if excav_geom_function is != 0 at the point on the boundary then apply the dirichlet BC

Definition at line 38 of file RichardsExcav.C.

39 {
40  if (_func.value(_t, *_current_node) == 0.0)
41  return false;
42  else
43  return true;
44 }
Function & _func
Controls which points are "active" on the boundary An "active" point is where _func != 0...
Definition: RichardsExcav.h:52

Member Data Documentation

Function& RichardsExcav::_func
protected

Controls which points are "active" on the boundary An "active" point is where _func != 0, and at these points the Dirichlet condition variable = _p_excav will be applied.

Definition at line 52 of file RichardsExcav.h.

Referenced by shouldApply().

Real RichardsExcav::_p_excav
protected

The variable will be made equal to _p_excav at the "active" points on the boundary.

Definition at line 44 of file RichardsExcav.h.

Referenced by computeQpResidual().


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