Cardinal
BulkEnergyConservationIC.h
Go to the documentation of this file.
1 /********************************************************************/
2 /* SOFTWARE COPYRIGHT NOTIFICATION */
3 /* Cardinal */
4 /* */
5 /* (c) 2021 UChicago Argonne, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by UChicago Argonne, LLC */
9 /* Under Contract No. DE-AC02-06CH11357 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* Prepared by Battelle Energy Alliance, LLC */
13 /* Under Contract No. DE-AC07-05ID14517 */
14 /* With the U. S. Department of Energy */
15 /* */
16 /* See LICENSE for full restrictions */
17 /********************************************************************/
18 
19 #pragma once
20 
21 #include "InitialCondition.h"
22 #include "FunctionLayeredIntegral.h"
23 
25 class InputParameters;
26 
27 template <typename T>
28 InputParameters validParams();
29 
34 class BulkEnergyConservationIC : public InitialCondition
35 {
36 public:
37  static InputParameters validParams();
38 
39  BulkEnergyConservationIC(const InputParameters & parameters);
40 
41  virtual void initialSetup() override;
42 
43 protected:
44  virtual Real value(const Point & p) override;
45 
47  const FunctionLayeredIntegral & _layered_integral;
48 
50  const Real & _mdot;
51 
53  const Real & _cp;
54 
56  const Real & _inlet_T;
57 
59  const PostprocessorName & _pp_name;
60 
62  const PostprocessorValue & _integral;
63 
65  const Real & _magnitude;
66 };
BulkEnergyConservationIC(const InputParameters &parameters)
Definition: BulkEnergyConservationIC.C:41
const PostprocessorValue & _integral
Value of the postprocessor providing the integral of the heat source.
Definition: BulkEnergyConservationIC.h:62
const Real & _inlet_T
Fluid inlet temperature.
Definition: BulkEnergyConservationIC.h:56
const PostprocessorName & _pp_name
Name of postprocessor providing the integral of the heat source.
Definition: BulkEnergyConservationIC.h:59
Definition: BulkEnergyConservationIC.h:34
virtual Real value(const Point &p) override
Definition: BulkEnergyConservationIC.C:65
const FunctionLayeredIntegral & _layered_integral
Cumulative integral of the heat source in the direction of flow.
Definition: BulkEnergyConservationIC.h:47
const Real & _cp
Fluid isobaric specific heat capacity.
Definition: BulkEnergyConservationIC.h:53
InputParameters validParams()
const Real & _mdot
Fluid mass flowrate.
Definition: BulkEnergyConservationIC.h:50
virtual void initialSetup() override
Definition: BulkEnergyConservationIC.C:56
static InputParameters validParams()
Definition: BulkEnergyConservationIC.C:24
const Real & _magnitude
Total magnitude of the heat source.
Definition: BulkEnergyConservationIC.h:65