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

#include <InertialForce.h>

Inheritance diagram for InertialForce:
[legend]

Public Member Functions

 InertialForce (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Private Attributes

const MaterialProperty< Real > & _density
 
const VariableValue & _u_old
 
const VariableValue & _vel_old
 
const VariableValue & _accel_old
 
const Real _beta
 
const Real _gamma
 
const MaterialProperty< Real > & _eta
 
const Real _alpha
 

Detailed Description

Definition at line 19 of file InertialForce.h.

Constructor & Destructor Documentation

InertialForce::InertialForce ( const InputParameters &  parameters)

Definition at line 37 of file InertialForce.C.

38  : Kernel(parameters),
39  _density(getMaterialProperty<Real>("density")),
40  _u_old(valueOld()),
41  _vel_old(coupledValueOld("velocity")),
42  _accel_old(coupledValueOld("acceleration")),
43  _beta(getParam<Real>("beta")),
44  _gamma(getParam<Real>("gamma")),
45  _eta(getMaterialProperty<Real>("eta")),
46  _alpha(getParam<Real>("alpha"))
47 {
48 }
const VariableValue & _u_old
Definition: InertialForce.h:31
const VariableValue & _vel_old
Definition: InertialForce.h:32
const VariableValue & _accel_old
Definition: InertialForce.h:33
const Real _beta
Definition: InertialForce.h:34
const MaterialProperty< Real > & _density
Definition: InertialForce.h:30
const MaterialProperty< Real > & _eta
Definition: InertialForce.h:36
const Real _gamma
Definition: InertialForce.h:35
const Real _alpha
Definition: InertialForce.h:37

Member Function Documentation

Real InertialForce::computeQpJacobian ( )
protectedvirtual

Definition at line 66 of file InertialForce.C.

67 {
68  if (_dt == 0)
69  return 0;
70  else
71  return _test[_i][_qp] * _density[_qp] / (_beta * _dt * _dt) * _phi[_j][_qp] +
72  _eta[_qp] * (1 + _alpha) * _test[_i][_qp] * _density[_qp] * _gamma / _beta / _dt *
73  _phi[_j][_qp];
74 }
const Real _beta
Definition: InertialForce.h:34
const MaterialProperty< Real > & _density
Definition: InertialForce.h:30
const MaterialProperty< Real > & _eta
Definition: InertialForce.h:36
const Real _gamma
Definition: InertialForce.h:35
const Real _alpha
Definition: InertialForce.h:37
Real InertialForce::computeQpResidual ( )
protectedvirtual

Definition at line 51 of file InertialForce.C.

52 {
53  if (_dt == 0)
54  return 0;
55  else
56  {
57  Real accel = 1. / _beta * (((_u[_qp] - _u_old[_qp]) / (_dt * _dt)) - _vel_old[_qp] / _dt -
58  _accel_old[_qp] * (0.5 - _beta));
59  Real vel = _vel_old[_qp] + (_dt * (1 - _gamma)) * _accel_old[_qp] + _gamma * _dt * accel;
60  return _test[_i][_qp] * _density[_qp] *
61  (accel + vel * _eta[_qp] * (1 + _alpha) - _alpha * _eta[_qp] * _vel_old[_qp]);
62  }
63 }
const VariableValue & _u_old
Definition: InertialForce.h:31
const VariableValue & _vel_old
Definition: InertialForce.h:32
const VariableValue & _accel_old
Definition: InertialForce.h:33
const Real _beta
Definition: InertialForce.h:34
const MaterialProperty< Real > & _density
Definition: InertialForce.h:30
const MaterialProperty< Real > & _eta
Definition: InertialForce.h:36
const Real _gamma
Definition: InertialForce.h:35
const Real _alpha
Definition: InertialForce.h:37

Member Data Documentation

const VariableValue& InertialForce::_accel_old
private

Definition at line 33 of file InertialForce.h.

Referenced by computeQpResidual().

const Real InertialForce::_alpha
private

Definition at line 37 of file InertialForce.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const Real InertialForce::_beta
private

Definition at line 34 of file InertialForce.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<Real>& InertialForce::_density
private

Definition at line 30 of file InertialForce.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<Real>& InertialForce::_eta
private

Definition at line 36 of file InertialForce.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const Real InertialForce::_gamma
private

Definition at line 35 of file InertialForce.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const VariableValue& InertialForce::_u_old
private

Definition at line 31 of file InertialForce.h.

Referenced by computeQpResidual().

const VariableValue& InertialForce::_vel_old
private

Definition at line 32 of file InertialForce.h.

Referenced by computeQpResidual().


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