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

Constructor & Destructor Documentation

◆ LangevinNoise()

LangevinNoise::LangevinNoise ( const InputParameters &  parameters)

Definition at line 28 of file LangevinNoise.C.

29  : Kernel(parameters),
30  _amplitude(getParam<Real>("amplitude")),
31  _multiplier_prop(getMaterialProperty<Real>("multiplier"))
32 {
33 }
const Real _amplitude
Definition: LangevinNoise.h:30
const MaterialProperty< Real > & _multiplier_prop
Definition: LangevinNoise.h:31

Member Function Documentation

◆ computeQpResidual()

Real LangevinNoise::computeQpResidual ( )
protectedvirtual

Reimplemented in ConservedLangevinNoise.

Definition at line 43 of file LangevinNoise.C.

44 {
45  return -_test[_i][_qp] * (2.0 * MooseRandom::rand() - 1.0) * _amplitude * _multiplier_prop[_qp];
46 }
const Real _amplitude
Definition: LangevinNoise.h:30
const MaterialProperty< Real > & _multiplier_prop
Definition: LangevinNoise.h:31

◆ residualSetup()

void LangevinNoise::residualSetup ( )
protectedvirtual

Reimplemented in ConservedLangevinNoise.

Definition at line 36 of file LangevinNoise.C.

37 {
38  unsigned int rseed = _t_step;
39  MooseRandom::seed(rseed);
40 }

Member Data Documentation

◆ _amplitude

const Real LangevinNoise::_amplitude
protected

Definition at line 30 of file LangevinNoise.h.

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

◆ _multiplier_prop

const MaterialProperty<Real>& LangevinNoise::_multiplier_prop
protected

Definition at line 31 of file LangevinNoise.h.

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


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