www.mooseframework.org
ConservedLangevinNoise.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<LangevinNoise>();
14  params.addClassDescription("Source term for noise from a ConservativeNoise userobject");
15  params.addRequiredParam<UserObjectName>(
16  "noise", "ConservativeNoise userobject that produces the random numbers");
17  return params;
18 }
19 ConservedLangevinNoise::ConservedLangevinNoise(const InputParameters & parameters)
20  : LangevinNoise(parameters), _noise(getUserObject<ConservedNoiseInterface>("noise"))
21 {
22 }
23 
24 Real
26 {
27  return -_test[_i][_qp] * _noise.getQpValue(_current_elem->id(), _qp) * _amplitude *
28  _multiplier_prop[_qp];
29 }
const Real _amplitude
Definition: LangevinNoise.h:27
This Userobject is the base class of Userobjects that generate one random number per timestep and qua...
virtual Real getQpValue(dof_id_type element_id, unsigned int qp) const =0
ConservedLangevinNoise(const InputParameters &parameters)
const MaterialProperty< Real > & _multiplier_prop
Definition: LangevinNoise.h:28
InputParameters validParams< LangevinNoise >()
Definition: LangevinNoise.C:12
const ConservedNoiseInterface & _noise
InputParameters validParams< ConservedLangevinNoise >()