https://mooseframework.inl.gov
Loading...
Searching...
No Matches
JacobianTest1PhaseRDGAction.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 "JacobianTestAction.h"
13#include "MooseEnum.h"
14
19{
20public:
22
23protected:
24 virtual void addObjects() override;
25 virtual void addMesh() override;
26 virtual void addInitialConditions() override;
27 virtual void addSolutionVariables() override;
28 virtual void addAuxVariables() override;
29 virtual void addMaterials() override;
30 virtual void addUserObjects() override;
31
39 void addSolutionVariablesRiemannIC(const std::vector<VariableName> & variables,
40 const std::vector<Real> & values_left,
41 const std::vector<Real> & values_right);
42
44 const VariableName _A_name;
46 const VariableName _A_linear_name;
48 const VariableName _rhoA_name;
50 const VariableName _rhouA_name;
52 const VariableName _rhoEA_name;
53
55 const bool _add_dg_kernel;
57 const bool _add_bc;
58
60 const UserObjectName _numerical_flux_name;
62 const UserObjectName _boundary_flux_name;
63
67 const FunctionName & _A_fn_name;
68
71
74
76 const MaterialPropertyName _direction_name;
77
79 const UserObjectName _fp_name;
80
81public:
83};
Sets up a Jacobian test for 1-phase rDG.
void addSolutionVariablesRiemannIC(const std::vector< VariableName > &variables, const std::vector< Real > &values_left, const std::vector< Real > &values_right)
Adds solution variables with Riemann problem IC (constant left and right states)
const UserObjectName _numerical_flux_name
name of numerical flux user object being tested
virtual void addInitialConditions() override
Adds the initial conditions.
virtual void addAuxVariables() override
Adds aux variables.
const bool _use_slope_reconstruction
option to use slope reconstruction
const VariableName _A_name
cross-sectional area variable name, elemental average
const std::string _reconstruction_material_name
reconstruction material name
const MooseEnum _ic_option
initial conditions option
const VariableName _rhouA_name
rho*u*A variable name
virtual void addUserObjects() override
Adds user objects.
const VariableName _rhoA_name
rho*A variable name
const VariableName _A_linear_name
cross-sectional area variable name, linear Lagrange
const UserObjectName _boundary_flux_name
name of boundary flux user object being tested
const UserObjectName _fp_name
fluid properties object name
virtual void addMesh() override
Adds the mesh.
virtual void addObjects() override
Adds all non-mesh objects.
virtual void addMaterials() override
Adds materials.
const MaterialPropertyName _direction_name
direction material property name
const bool _add_dg_kernel
option to add DG kernel
const VariableName _rhoEA_name
rho*E*A variable name
virtual void addSolutionVariables() override
Adds the solution variables.
const FunctionName & _A_fn_name
area function name
Base class for adding common actions for Jacobian tests.