www.mooseframework.org
GrainAdvectionAux.h
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 /****************************************************************/
7 #ifndef GRAINADVECTIONAUX_H
8 #define GRAINADVECTIONAUX_H
9 
10 #include "AuxKernel.h"
11 #include "GrainTrackerInterface.h"
13 
14 // Forward Declarations
15 class GrainAdvectionAux;
16 
17 template <>
18 InputParameters validParams<GrainAdvectionAux>();
19 
24 class GrainAdvectionAux : public AuxKernel
25 {
26 public:
27  GrainAdvectionAux(const InputParameters & parameters);
28 
29 protected:
31  virtual void precalculateValue();
33  virtual Real computeValue();
34 
37 
39  const VectorPostprocessorValue & _grain_volumes;
40 
43  const std::vector<RealGradient> & _grain_forces;
44  const std::vector<RealGradient> & _grain_torques;
45 
46 private:
48  const Real _mt;
49 
51  const Real _mr;
52 
53  RealGradient _velocity_advection;
54  MooseEnum _component;
55 };
56 
57 #endif // GRAINADVECTIONAUXAUX_H
This class defines the interface for the GrainTracking objects.
This class provides interface for extracting the forces and torques computed in other UserObjects...
const Real _mr
constant value corresponding to grain rotation
virtual Real computeValue()
output the component of advection velocity
const Real _mt
constant value corresponding to grain translation
virtual void precalculateValue()
calculate the advection velocity
const GrainForceAndTorqueInterface & _grain_force_torque
getting userobject for calculating grain forces and torques
GrainAdvectionAux(const InputParameters &parameters)
const VectorPostprocessorValue & _grain_volumes
The grain volumes.
Calculates the advection velocity of grain due to rigid body motion Reports the components of the vel...
const GrainTrackerInterface & _grain_tracker
getting userobject for calculating grain centers and volumes
InputParameters validParams< GrainAdvectionAux >()
const std::vector< RealGradient > & _grain_torques
RealGradient _velocity_advection
const std::vector< RealGradient > & _grain_forces