www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ConservedNoiseInterface Class Referenceabstract

This Userobject is the base class of Userobjects that generate one random number per timestep and quadrature point in a way that the integral over all random numbers is zero. More...

#include <ConservedNoiseInterface.h>

Inheritance diagram for ConservedNoiseInterface:
[legend]

Public Member Functions

 ConservedNoiseInterface (const InputParameters &parameters)
 
virtual ~ConservedNoiseInterface ()
 
virtual Real getQpValue (dof_id_type element_id, unsigned int qp) const =0
 

Protected Member Functions

virtual Real getQpRandom ()=0
 

Protected Attributes

Real _integral
 
Real _volume
 
Real _offset
 
unsigned int _qp
 

Detailed Description

This Userobject is the base class of Userobjects that generate one random number per timestep and quadrature point in a way that the integral over all random numbers is zero.

This can be used for a concentration fluctuation kernel such as ConservedLangevinNoise, that keeps the total concenration constant.

See also
ConservedUniformNoise
ConservedNormalNoise

Definition at line 24 of file ConservedNoiseInterface.h.

Constructor & Destructor Documentation

ConservedNoiseInterface::ConservedNoiseInterface ( const InputParameters &  parameters)

This call turns on Random Number generation for this object, it can be called either in the constructor or in initialSetup().

Definition at line 10 of file ConservedNoiseInterface.C.

11  : ElementUserObject(parameters), _integral(0), _volume(0), _qp(0)
12 {
17  setRandomResetFrequency(EXEC_TIMESTEP_END);
18 }
virtual ConservedNoiseInterface::~ConservedNoiseInterface ( )
inlinevirtual

Definition at line 28 of file ConservedNoiseInterface.h.

28 {}

Member Function Documentation

virtual Real ConservedNoiseInterface::getQpRandom ( )
protectedpure virtual
virtual Real ConservedNoiseInterface::getQpValue ( dof_id_type  element_id,
unsigned int  qp 
) const
pure virtual

Member Data Documentation

Real ConservedNoiseInterface::_integral
protected
Real ConservedNoiseInterface::_offset
protected
unsigned int ConservedNoiseInterface::_qp
protected
Real ConservedNoiseInterface::_volume
protected

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