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 "FreeBoundary1Phase.h" 11 : #include "FlowModelSinglePhase.h" 12 : 13 : registerMooseObject("ThermalHydraulicsApp", FreeBoundary1Phase); 14 : 15 : InputParameters 16 426 : FreeBoundary1Phase::validParams() 17 : { 18 426 : InputParameters params = FlowBoundary1Phase::validParams(); 19 426 : params.addClassDescription("Component to create a free flow boundary for single-phase flow."); 20 426 : return params; 21 0 : } 22 : 23 213 : FreeBoundary1Phase::FreeBoundary1Phase(const InputParameters & parameters) 24 213 : : FlowBoundary1Phase(parameters) 25 : { 26 213 : } 27 : 28 : void 29 209 : FreeBoundary1Phase::addMooseObjects() 30 : { 31 209 : ExecFlagEnum userobject_execute_on(MooseUtils::getDefaultExecFlagEnum()); 32 1045 : userobject_execute_on = {EXEC_INITIAL, EXEC_LINEAR, EXEC_NONLINEAR}; 33 : 34 : // boundary flux user object 35 : { 36 209 : const std::string class_name = "ADBoundaryFlux3EqnFreeOutflow"; 37 209 : InputParameters params = _factory.getValidParams(class_name); 38 209 : params.set<UserObjectName>("fluid_properties") = _fp_name; 39 209 : params.set<ExecFlagEnum>("execute_on") = userobject_execute_on; 40 209 : getTHMProblem().addUserObject(class_name, _boundary_uo_name, params); 41 209 : } 42 : 43 : // BCs 44 209 : addWeakBCs(); 45 418 : }