https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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}
const std::string name
Definition Setup.h:21
bool hasUserObject(const std::string &name) const
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)
void mooseError(Args &&... args) const
Base class for fluid properties used with two-phase flow.
static InputParameters validParams()
static InputParameters validParams()
TwoPhaseNCGFluidProperties(const InputParameters &parameters)
const UserObjectName _vapor_mixture_name
Vapor mixture fluid properties user object name.
FEProblemBase & _fe_problem