https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FlowModelSetup1Phase.h
Go to the documentation of this file.
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#include "FlowModelSetup.h"
13
18{
19public:
21
22protected:
23 virtual void addInitialConditions() override;
24 virtual void addSolutionVariables() override;
25 virtual void addNonConstantAuxVariables() override;
26 virtual void addMaterials() override;
27 virtual void addUserObjects() override;
28
30 const FunctionName _p_fn;
32 const FunctionName _T_fn;
34 const FunctionName _vel_fn;
36 const FunctionName _A_fn;
38 const FunctionName _D_h_fn;
39
41 const UserObjectName _fp_1phase_name;
42
44 const VariableName _unity_name;
46 const VariableName _A_name;
48 const VariableName _D_h_name;
50 const VariableName _rhoA_name;
52 const VariableName _rhouA_name;
54 const VariableName _rhoEA_name;
56 const VariableName _rho_name;
58 const VariableName _vel_name;
60 const VariableName _p_name;
62 const VariableName _T_name;
64 const VariableName _v_name;
66 const VariableName _e_name;
68 const VariableName _H_name;
70 const VariableName _mu_name;
71
73 const bool & _ad;
74
75public:
77};
Helper class to set up some objects for 1-phase flow.
const VariableName _vel_name
Name of velocity variable.
const VariableName _rhouA_name
Name of rho*u*A variable.
const VariableName _p_name
Name of pressure variable.
const FunctionName _A_fn
Area function name.
virtual void addInitialConditions() override
virtual void addNonConstantAuxVariables() override
virtual void addMaterials() override
const VariableName _A_name
Name of area variable.
const VariableName _rhoEA_name
Name of rho*E*A variable.
static InputParameters validParams()
const VariableName _D_h_name
Name of the hydraulic diameter.
const VariableName _T_name
Name of temperature variable.
const VariableName _H_name
Name of specific total enthalpy variable.
virtual void addUserObjects() override
const VariableName _rhoA_name
Name of rho*A variable.
const FunctionName _p_fn
Pressure function name.
const bool & _ad
True for setting up testing with AD, false otherwise.
const FunctionName _vel_fn
Velocity function name.
const UserObjectName _fp_1phase_name
Single-phase fluid properties object name.
virtual void addSolutionVariables() override
const FunctionName _T_fn
Temperature function name.
const VariableName _v_name
Name of specific volume variable.
const VariableName _rho_name
Name of rho variable.
const VariableName _unity_name
Name of unity.
const FunctionName _D_h_fn
Hydraulic diameter function name.
const VariableName _mu_name
Name of dynamic viscosity variable.
const VariableName _e_name
Name of specific internal energy variable.
Base helper class to provide interfaces to common flow model setup functions.