https://mooseframework.inl.gov
TwoPhaseNCGFluidProperties.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 
11 
14 {
16  params.set<std::string>("fp_type") = "two-phase-ncg-fp";
17  params.addParam<UserObjectName>("fp_2phase",
18  "Name of fluid properties user object(s) for two-phase model");
19  return params;
20 }
21 
23  : TwoPhaseFluidProperties(parameters),
24  _2phase_name(isParamValid("fp_2phase") ? getParam<UserObjectName>("fp_2phase")
25  : UserObjectName(name() + ":2phase")),
26  _vapor_mixture_name(name() + ":vapor_mixture")
27 {
28  // check that the user has not already created user objects of the same name
30  mooseError("A user object with the name '", _vapor_mixture_name, "' already exists.");
31 }
TwoPhaseNCGFluidProperties(const InputParameters &parameters)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
bool hasUserObject(const std::string &name) const
static InputParameters validParams()
Base class for fluid properties used with two-phase flow.
static InputParameters validParams()
const std::string name
Definition: Setup.h:20
FEProblemBase & _fe_problem
void mooseError(Args &&... args) const
const UserObjectName _vapor_mixture_name
Vapor mixture fluid properties user object name.