Loading [MathJax]/extensions/tex2jax.js
Cardinal
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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
25class InputParameters;
26
27template <typename T>
28InputParameters validParams();
29
34class BulkEnergyConservationIC : public InitialCondition
35{
36public:
37 static InputParameters validParams();
38
39 BulkEnergyConservationIC(const InputParameters & parameters);
40
41 virtual void initialSetup() override;
42
43protected:
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};
InputParameters validParams()
Definition BulkEnergyConservationIC.h:35
const Real & _magnitude
Total magnitude of the heat source.
Definition BulkEnergyConservationIC.h:65
const PostprocessorValue & _integral
Value of the postprocessor providing the integral of the heat source.
Definition BulkEnergyConservationIC.h:62
const PostprocessorName & _pp_name
Name of postprocessor providing the integral of the heat source.
Definition BulkEnergyConservationIC.h:59
virtual Real value(const Point &p) override
Definition BulkEnergyConservationIC.C:66
const Real & _inlet_T
Fluid inlet temperature.
Definition BulkEnergyConservationIC.h:56
const Real & _cp
Fluid isobaric specific heat capacity.
Definition BulkEnergyConservationIC.h:53
const Real & _mdot
Fluid mass flowrate.
Definition BulkEnergyConservationIC.h:50
const FunctionLayeredIntegral & _layered_integral
Cumulative integral of the heat source in the direction of flow.
Definition BulkEnergyConservationIC.h:47
virtual void initialSetup() override
Definition BulkEnergyConservationIC.C:56
static InputParameters validParams()
Definition BulkEnergyConservationIC.C:24