www.mooseframework.org
GrainForcesPostprocessor.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 
13 
14 // Forward Declarations
16 
22 {
23 public:
25 
27 
29  virtual void initialize();
30  virtual void execute();
31 
32 protected:
35 
39  const std::vector<RealGradient> & _grain_forces;
41  const std::vector<RealGradient> & _grain_torques;
43  unsigned int _grain_num;
44 };
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
std::vector< Real > VectorPostprocessorValue
GrainForcesPostprocessor is a type of VectorPostprocessor that outputs the force and torque values ca...
const InputParameters & parameters() const
VectorPostprocessorValue & _grain_force_torque_vector
The VectorPostprocessorValue object where the results are stored.
static InputParameters validParams()
GrainForcesPostprocessor(const InputParameters &parameters)