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

#include <LangevinNoise.h>

Inheritance diagram for LangevinNoise:
[legend]

Public Member Functions

 LangevinNoise (const InputParameters &parameters)
 

Protected Member Functions

virtual void residualSetup ()
 
virtual Real computeQpResidual ()
 

Protected Attributes

const Real _amplitude
 
const MaterialProperty< Real > & _multiplier_prop
 

Detailed Description

Definition at line 18 of file LangevinNoise.h.

Constructor & Destructor Documentation

LangevinNoise::LangevinNoise ( const InputParameters &  parameters)

Definition at line 23 of file LangevinNoise.C.

24  : Kernel(parameters),
25  _amplitude(getParam<Real>("amplitude")),
26  _multiplier_prop(getMaterialProperty<Real>("multiplier"))
27 {
28 }
const Real _amplitude
Definition: LangevinNoise.h:27
const MaterialProperty< Real > & _multiplier_prop
Definition: LangevinNoise.h:28

Member Function Documentation

Real LangevinNoise::computeQpResidual ( )
protectedvirtual

Reimplemented in ConservedLangevinNoise.

Definition at line 38 of file LangevinNoise.C.

39 {
40  return -_test[_i][_qp] * (2.0 * MooseRandom::rand() - 1.0) * _amplitude * _multiplier_prop[_qp];
41 }
const Real _amplitude
Definition: LangevinNoise.h:27
const MaterialProperty< Real > & _multiplier_prop
Definition: LangevinNoise.h:28
void LangevinNoise::residualSetup ( )
protectedvirtual

Reimplemented in ConservedLangevinNoise.

Definition at line 31 of file LangevinNoise.C.

32 {
33  unsigned int rseed = _t_step;
34  MooseRandom::seed(rseed);
35 }

Member Data Documentation

const Real LangevinNoise::_amplitude
protected

Definition at line 27 of file LangevinNoise.h.

Referenced by computeQpResidual(), and ConservedLangevinNoise::computeQpResidual().

const MaterialProperty<Real>& LangevinNoise::_multiplier_prop
protected

Definition at line 28 of file LangevinNoise.h.

Referenced by computeQpResidual(), and ConservedLangevinNoise::computeQpResidual().


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