Line data Source code
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" 11 : #include "FlowModelSinglePhase.h" 12 : 13 : registerMooseObject("ThermalHydraulicsApp", SolidWall1Phase); 14 : 15 : InputParameters 16 2350 : SolidWall1Phase::validParams() 17 : { 18 2350 : InputParameters params = FlowBoundary1Phase::validParams(); 19 2350 : params.addClassDescription("Adds the boundary condition for a wall in single phase flow"); 20 2350 : return params; 21 0 : } 22 : 23 1175 : SolidWall1Phase::SolidWall1Phase(const InputParameters & params) : FlowBoundary1Phase(params) {} 24 : 25 : void 26 1115 : SolidWall1Phase::addMooseObjects() 27 : { 28 1115 : ExecFlagEnum userobject_execute_on(MooseUtils::getDefaultExecFlagEnum()); 29 5575 : userobject_execute_on = {EXEC_INITIAL, EXEC_LINEAR, EXEC_NONLINEAR}; 30 : 31 : // boundary flux user object 32 : { 33 1115 : const std::string class_name = "ADBoundaryFlux3EqnGhostWall"; 34 1115 : InputParameters params = _factory.getValidParams(class_name); 35 1115 : params.set<UserObjectName>("numerical_flux") = _numerical_flux_name; 36 1115 : params.set<Real>("normal") = _normal; 37 1115 : params.set<ExecFlagEnum>("execute_on") = userobject_execute_on; 38 1115 : getTHMProblem().addUserObject(class_name, _boundary_uo_name, params); 39 1115 : } 40 : 41 : // BCs 42 1115 : addWeakBCs(); 43 2230 : }