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 "GeneralPostprocessor.h" 13 : #include "DiscreteNucleationInserterBase.h" 14 : 15 : /** 16 : * Output diagnostic data on a DiscreteNucleationInserter 17 : */ 18 : class DiscreteNucleationData : public GeneralPostprocessor 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : DiscreteNucleationData(const InputParameters & parameters); 24 : 25 400 : virtual void execute() override{}; 26 400 : virtual void initialize() override{}; 27 : 28 : virtual Real getValue() const override; 29 : 30 : protected: 31 : /// UserObject that manages nucleus insertin and deletion 32 : const DiscreteNucleationInserterBase & _inserter; 33 : 34 : /// list of nuclei maintained bu the inserter object 35 : const DiscreteNucleationInserterBase::NucleusList & _nucleus_list; 36 : 37 : /// Type of value to report back 38 : enum class ValueType 39 : { 40 : COUNT, 41 : UPDATE, 42 : RATE, 43 : INSERTIONS, 44 : DELETIONS 45 : } _value_type; 46 : };