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 "TwoPhaseNCGFluidProperties.h" 11 : 12 : InputParameters 13 100 : TwoPhaseNCGFluidProperties::validParams() 14 : { 15 100 : InputParameters params = TwoPhaseFluidProperties::validParams(); 16 100 : params.set<std::string>("fp_type") = "two-phase-ncg-fp"; 17 200 : params.addParam<UserObjectName>("fp_2phase", 18 : "Name of fluid properties user object(s) for two-phase model"); 19 100 : return params; 20 0 : } 21 : 22 55 : TwoPhaseNCGFluidProperties::TwoPhaseNCGFluidProperties(const InputParameters & parameters) 23 : : TwoPhaseFluidProperties(parameters), 24 110 : _2phase_name(isParamValid("fp_2phase") ? getParam<UserObjectName>("fp_2phase") 25 99 : : UserObjectName(name() + ":2phase")), 26 110 : _vapor_mixture_name(name() + ":vapor_mixture") 27 : { 28 : // check that the user has not already created user objects of the same name 29 55 : if (_tid == 0 && _fe_problem.hasUserObject(_vapor_mixture_name)) 30 0 : mooseError("A user object with the name '", _vapor_mixture_name, "' already exists."); 31 55 : }