Line data Source code
1 : /**********************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* Swift, a Fourier spectral solver for MOOSE */ 4 : /* */ 5 : /* Copyright 2024 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /**********************************************************************/ 8 : 9 : #pragma once 10 : 11 : #include "TensorPostprocessor.h" 12 : 13 : /** 14 : * Compute Reynolds number 15 : */ 16 : class ComputeReynoldsNumber : public TensorPostprocessor 17 : { 18 : public: 19 : static InputParameters validParams(); 20 : 21 : ComputeReynoldsNumber(const InputParameters & parameters); 22 : 23 0 : virtual void initialize() override {} 24 : virtual void execute() override; 25 0 : virtual void finalize() override {} 26 : virtual PostprocessorValue getValue() const override; 27 : 28 : protected: 29 : const Real & _tau; 30 : const Real & _D; // diameter 31 : Real _Reynolds_number; 32 : };