Cardinal
BulkEnergyConservationICAction.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 "CardinalAction.h"
22 
24 
30 {
31 public:
32  BulkEnergyConservationICAction(const InputParameters & parameters);
33 
34  static InputParameters validParams();
35 
36  virtual void act();
37 
38 protected:
40  const std::vector<VariableName> & _variable;
41 
43  const Real & _mdot;
44 
46  const Real & _cp;
47 
49  const Real & _inlet_T;
50 
52  const unsigned int & _num_layers;
53 
55  const MooseEnum _direction;
56 
59 
61  const bool _has_direction_min;
62 
64  const bool _has_direction_max;
65 
67  const Real * _direction_min;
68 
70  const Real * _direction_max;
71 };
const Real & _inlet_T
Fluid inlet temperature.
Definition: BulkEnergyConservationICAction.h:49
const Real & _mdot
Fluid mass flowrate.
Definition: BulkEnergyConservationICAction.h:43
Definition: CardinalAction.h:29
const Real * _direction_min
Minimum coordinate of the layers.
Definition: BulkEnergyConservationICAction.h:67
const std::vector< VariableName > & _variable
Variable(s) to which the initial condition should be applied.
Definition: BulkEnergyConservationICAction.h:40
static InputParameters validParams()
Definition: BulkEnergyConservationICAction.C:29
const Real * _direction_max
Maximum coordinate of the layers.
Definition: BulkEnergyConservationICAction.h:70
const MooseEnum _direction
Direction the fluid flows.
Definition: BulkEnergyConservationICAction.h:55
BulkEnergyConservationICAction(const InputParameters &parameters)
Definition: BulkEnergyConservationICAction.C:55
const bool & _positive_flow_direction
Whether the flow is in the positive or negative direction.
Definition: BulkEnergyConservationICAction.h:58
const bool _has_direction_max
Whether a maximum direction was specified.
Definition: BulkEnergyConservationICAction.h:64
virtual void act()
Definition: BulkEnergyConservationICAction.C:72
const bool _has_direction_min
Whether a minimum direction was specified.
Definition: BulkEnergyConservationICAction.h:61
const Real & _cp
Fluid isobaric specific heat capacity.
Definition: BulkEnergyConservationICAction.h:46
const unsigned int & _num_layers
Number of layers to integrate the heat source in.
Definition: BulkEnergyConservationICAction.h:52
Definition: BulkEnergyConservationICAction.h:29