www.mooseframework.org
GrainForcesPostprocessor.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 GRAINFORCESPOSTPROCESSOR_H
8 #define GRAINFORCESPOSTPROCESSOR_H
9 
10 #include "GeneralVectorPostprocessor.h"
11 
12 // Forward Declarations
15 
16 template <>
18 
23 class GrainForcesPostprocessor : public GeneralVectorPostprocessor
24 {
25 public:
26  GrainForcesPostprocessor(const InputParameters & parameters);
27 
29  virtual void initialize();
30  virtual void execute();
31 
32 protected:
34  VectorPostprocessorValue & _grain_force_torque_vector;
35 
39  const std::vector<RealGradient> & _grain_forces;
41  const std::vector<RealGradient> & _grain_torques;
43  unsigned int _grain_num;
44 };
45 
46 #endif // GRAINFORCESPOSTPROCESSOR_H
InputParameters validParams< GrainForcesPostprocessor >()
This class provides interface for extracting the forces and torques computed in other UserObjects...
const GrainForceAndTorqueInterface & _grain_force_torque
UserobjectInterface for getting force and torque values from UserObjects.
const std::vector< RealGradient > & _grain_forces
Extracting forces from Userobject.
const std::vector< RealGradient > & _grain_torques
Extracting torques from Userobject.
unsigned int _grain_num
total no. of grains
GrainForcesPostprocessor is a type of VectorPostprocessor that outputs the force and torque values ca...
VectorPostprocessorValue & _grain_force_torque_vector
The VectorPostprocessorValue object where the results are stored.
GrainForcesPostprocessor(const InputParameters &parameters)