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 : // MOOSE includes 13 : #include "GeneralPostprocessor.h" 14 : 15 : /** 16 : * This postprocessor computes the Rayleigh number to describe natural circulation 17 : */ 18 : class RayleighNumber : public GeneralPostprocessor 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : RayleighNumber(const InputParameters & parameters); 24 : 25 : protected: 26 282 : virtual void initialize() override {} 27 282 : virtual void execute() override {} 28 : virtual Real getValue() const override; 29 : 30 : /// Minimum density 31 : const PostprocessorValue * const _rho_min; 32 : 33 : /// Maximum density 34 : const PostprocessorValue * const _rho_max; 35 : 36 : /// Average density 37 : const PostprocessorValue & _rho_ave; 38 : 39 : /// Thermal expansion coefficient 40 : const PostprocessorValue * const _beta; 41 : 42 : /// Maximum temperature 43 : const PostprocessorValue * const _T_hot; 44 : 45 : /// Minimum temperature 46 : const PostprocessorValue * const _T_cold; 47 : 48 : /// Characteristic length 49 : const PostprocessorValue & _l; 50 : 51 : /// Average viscosity 52 : const PostprocessorValue & _mu; 53 : 54 : /// Average thermal conductivity 55 : const PostprocessorValue & _k; 56 : 57 : /// Average specific thermal capacity 58 : const PostprocessorValue & _cp; 59 : 60 : /// Magnitude of gravity in the direction of interest 61 : const Real _gravity; 62 : };