www.mooseframework.org
ConservedNoiseInterface.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "ElementUserObject.h"
13 
14 // Forward Declarations
16 
26 class ConservedNoiseInterface : public ElementUserObject
27 {
28 public:
29  ConservedNoiseInterface(const InputParameters & parameters);
31 
32  virtual Real getQpValue(dof_id_type element_id, unsigned int qp) const = 0;
33 
34 protected:
35  virtual Real getQpRandom() = 0;
36 
37  Real _integral;
38  Real _volume;
39  Real _offset;
40 
41  unsigned int _qp;
42 };
43 
ConservedNoiseInterface(const InputParameters &parameters)
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
virtual Real getQpRandom()=0