www.mooseframework.org
GrainAdvectionVelocity.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 GRAINADVECTIONVELOCITY_H
8 #define GRAINADVECTIONVELOCITY_H
9 
10 #include "Material.h"
11 #include "GrainTrackerInterface.h"
13 #include "DerivativeMaterialInterface.h"
14 
15 // Forward Declarations
17 
18 template <>
19 InputParameters validParams<GrainAdvectionVelocity>();
20 
25 class GrainAdvectionVelocity : public DerivativeMaterialInterface<Material>
26 {
27 public:
28  GrainAdvectionVelocity(const InputParameters & parameters);
29 
30 protected:
31  virtual void computeQpProperties();
32 
35 
38 
40  const VectorPostprocessorValue & _grain_volumes;
41 
42  const std::vector<RealGradient> & _grain_forces;
43  const std::vector<RealGradient> & _grain_torques;
44 
45 private:
47  const Real _mt;
49  const Real _mr;
50 
51  const unsigned int _op_num;
52 
54  std::string _base_name;
55 
57  MaterialProperty<std::vector<RealGradient>> & _velocity_advection;
58 };
59 
60 #endif // GRAINADVECTIONVELOCITY_H
This class defines the interface for the GrainTracking objects.
InputParameters validParams< GrainAdvectionVelocity >()
This class provides interface for extracting the forces and torques computed in other UserObjects...
GrainAdvectionVelocity(const InputParameters &parameters)
std::string _base_name
type of force density material
const Real _mt
constant value corresponding to grain translation
const VectorPostprocessorValue & _grain_volumes
The grain volumes.
MaterialProperty< std::vector< RealGradient > > & _velocity_advection
Material storing advection velocities of grains.
const std::vector< RealGradient > & _grain_forces
const GrainTrackerInterface & _grain_tracker
getting userobject for calculating grain centers and volumes
const Real _mr
constant value corresponding to grain rotation
const std::vector< RealGradient > & _grain_torques
This Material calculates the advection velocity, it&#39;s divergence and derivatives acting on a particle...
const GrainForceAndTorqueInterface & _grain_force_torque
getting userobject for calculating grain forces and torques