https://mooseframework.inl.gov
ClosureTestAction.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 "TestAction.h"
13 
18 {
19 public:
20  ClosureTestAction(const InputParameters & params);
21 
22 protected:
23  virtual void addInitialConditions() override;
24  virtual void addSolutionVariables() override;
25  virtual void addAuxVariables() override;
26  virtual void addMaterials() override;
27  virtual void addOutput() override;
28 
29  void setupOutput();
30  void setupADOutput();
31 
33  const VariableName _dummy_name;
35  const VariableName _T_wall_name;
36 
40  const FunctionName _T_wall_fn;
44  const Real & _q_wall;
46  const std::vector<std::string> & _output_properties;
48  const std::vector<std::string> & _output_ad_properties;
49 
50 public:
52 };
Action for setting up a closure test for 2-phase flow.
ClosureTestAction(const InputParameters &params)
static InputParameters validParams()
virtual void addAuxVariables() override
Adds aux variables.
bool _has_T_wall
True if T_wall was specified.
const FunctionName _T_wall_fn
Wall temperature function name.
const std::vector< std::string > & _output_ad_properties
List of AD material properties to output.
const VariableName _T_wall_name
Wall temperature.
virtual void addMaterials() override
Adds materials.
bool _has_q_wall
True if q_wall was specified.
const VariableName _dummy_name
Name of the dummy variable that is solved for.
const Real & _q_wall
Convective wall heat flux.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void addInitialConditions() override
Adds the initial conditions.
virtual void addOutput() override
Add output.
const std::vector< std::string > & _output_properties
List of material properties to output.
Base class for adding common actions for testing.
Definition: TestAction.h:17
virtual void addSolutionVariables() override
Adds the solution variables.