www.mooseframework.org
GrainAdvectionAux.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 "AuxKernel.h"
13 #include "GrainTrackerInterface.h"
15 
16 // Forward Declarations
17 
23 {
24 public:
26 
28 
29 protected:
31  virtual void precalculateValue();
33  virtual Real computeValue();
34 
37 
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 
55 };
static InputParameters validParams()
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...
std::vector< Real > VectorPostprocessorValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const GrainTrackerInterface & _grain_tracker
getting userobject for calculating grain centers and volumes
const InputParameters & parameters() const
const std::vector< RealGradient > & _grain_torques
RealGradient _velocity_advection
const std::vector< RealGradient > & _grain_forces