https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GrainForcesPostprocessor.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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{
23public:
25
27
29 virtual void initialize();
30 virtual void execute();
31
32protected:
35
39 const std::vector<RealGradient> & _grain_forces;
41 const std::vector<RealGradient> & _grain_torques;
43 unsigned int _grain_num;
44};
std::vector< Real > VectorPostprocessorValue
This class provides interface for extracting the forces and torques computed in other UserObjects.
GrainForcesPostprocessor is a type of VectorPostprocessor that outputs the force and torque values ca...
unsigned int _grain_num
total no. of grains
const std::vector< RealGradient > & _grain_forces
Extracting forces from Userobject.
const GrainForceAndTorqueInterface & _grain_force_torque
UserobjectInterface for getting force and torque values from UserObjects.
const std::vector< RealGradient > & _grain_torques
Extracting torques from Userobject.
VectorPostprocessorValue & _grain_force_torque_vector
The VectorPostprocessorValue object where the results are stored.
static InputParameters validParams()
const InputParameters & parameters() const