https://mooseframework.inl.gov
SolidWallGasMix.C
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 #include "SolidWallGasMix.h"
11 
12 registerMooseObject("ThermalHydraulicsApp", SolidWallGasMix);
13 
16 {
18  params.addClassDescription("Wall boundary condition component for FlowChannelGasMix.");
19  return params;
20 }
21 
23 
24 void
26 {
27  // boundary flux user object
28  {
29  const std::string class_name = "BoundaryFluxGasMixGhostWall";
30  InputParameters params = _factory.getValidParams(class_name);
31  params.set<UserObjectName>("numerical_flux") = _numerical_flux_name;
32  params.set<Real>("normal") = _normal;
33  params.set<ExecFlagEnum>("execute_on") = {EXEC_INITIAL, EXEC_LINEAR, EXEC_NONLINEAR};
34  getTHMProblem().addUserObject(class_name, _boundary_uo_name, params);
35  }
36 
37  // BCs
38  addWeakBCs();
39 }
Base class for boundary components connected to FlowChannelGasMix components.
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition: Component.C:135
T & set(const std::string &name, bool quiet_mode=false)
Real _normal
Outward normal on this boundary.
InputParameters getValidParams(const std::string &name) const
virtual void addMooseObjects() override
static InputParameters validParams()
registerMooseObject("ThermalHydraulicsApp", SolidWallGasMix)
SolidWallGasMix(const InputParameters &params)
static InputParameters validParams()
const UserObjectName _boundary_uo_name
Name of boundary user object name.
const ExecFlagType EXEC_LINEAR
const ExecFlagType EXEC_NONLINEAR
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
UserObjectName _numerical_flux_name
Numerical flux user object name.
Factory & _factory
The Factory associated with the MooseApp.
Definition: Component.h:446
virtual std::vector< std::shared_ptr< UserObject > > addUserObject(const std::string &user_object_name, const std::string &name, InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
virtual void addWeakBCs()
Creates the boundary condition objects for weak boundary conditions.
Wall boundary condition component for FlowChannelGasMix.
const ExecFlagType EXEC_INITIAL