LCOV - code coverage report
Current view: top level - include/vectorpostprocessors - GrainCentersPostprocessor.h (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 0 2 0.0 %
Date: 2025-09-04 07:55:36 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      12             : #include "GeneralVectorPostprocessor.h"
      13             : 
      14             : // Forward Declarations
      15             : class ComputeGrainCenterUserObject;
      16             : 
      17             : /**
      18             :  *  GrainCentersPostprocessor is a type of VectorPostprocessor that outputs center and volume of
      19             :  * grains
      20             :  *  calculated in GrainCenterUserObject.
      21             :  */
      22             : class GrainCentersPostprocessor : public GeneralVectorPostprocessor
      23             : {
      24             : public:
      25             :   static InputParameters validParams();
      26             : 
      27             :   GrainCentersPostprocessor(const InputParameters & parameters);
      28             : 
      29           0 :   virtual ~GrainCentersPostprocessor() {}
      30           0 :   virtual void initialize(){};
      31             :   virtual void execute();
      32             : 
      33             : protected:
      34             :   /// The VectorPostprocessorValue object where the results are stored
      35             :   VectorPostprocessorValue & _grain_volume_center_vector;
      36             : 
      37             :   /// Userobject that calculates volumes and centers of grains
      38             :   const ComputeGrainCenterUserObject & _grain_data;
      39             :   /// Extracting grain volumes from Userobject
      40             :   const std::vector<Real> & _grain_volumes;
      41             :   /// Extracting grain centers from Userobject
      42             :   const std::vector<Point> & _grain_centers;
      43             : 
      44             :   unsigned int _total_grains;
      45             : };

Generated by: LCOV version 1.14