https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SolidWall1Phase.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 "SolidWall1Phase.h"
12
13registerMooseObject("ThermalHydraulicsApp", SolidWall1Phase);
14
17{
19 params.addClassDescription("Adds the boundary condition for a wall in single phase flow");
20 return params;
21}
22
24
25void
27{
28 ExecFlagEnum userobject_execute_on(MooseUtils::getDefaultExecFlagEnum());
29 userobject_execute_on = {EXEC_INITIAL, EXEC_LINEAR, EXEC_NONLINEAR};
30
31 // boundary flux user object
32 {
33 const std::string class_name = "ADBoundaryFlux3EqnGhostWall";
34 InputParameters params = _factory.getValidParams(class_name);
35 params.set<UserObjectName>("numerical_flux") = _numerical_flux_name;
36 params.set<Real>("normal") = _normal;
37 params.set<ExecFlagEnum>("execute_on") = userobject_execute_on;
38 getTHMProblem().addUserObject(class_name, _boundary_uo_name, params);
39 }
40
41 // BCs
42 addWeakBCs();
43}
const ExecFlagType EXEC_INITIAL
const ExecFlagType EXEC_LINEAR
const ExecFlagType EXEC_NONLINEAR
registerMooseObject("ThermalHydraulicsApp", SolidWall1Phase)
Real _normal
Outward normal on this boundary.
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition Component.C:135
Factory & _factory
The Factory associated with the MooseApp.
Definition Component.h:497
virtual std::vector< std::shared_ptr< UserObject > > addUserObject(const std::string &user_object_name, const std::string &name, InputParameters &parameters)
InputParameters getValidParams(const std::string &name) const
UserObjectName _numerical_flux_name
Numerical flux user object name.
const UserObjectName _boundary_uo_name
Name of boundary user object name.
Base class for boundary components connected to FlowChannel1Phase components.
static InputParameters validParams()
virtual void addWeakBCs()
Creates the boundary condition objects for 1-phase flow.
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
Component for solid wall BC for 1-phase flow.
SolidWall1Phase(const InputParameters &params)
virtual void addMooseObjects() override
static InputParameters validParams()
ExecFlagEnum getDefaultExecFlagEnum()