https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
PorousFlowSinkBC Class Reference

Surrogate BC object for setting up enthalphy injection BC. More...

#include <PorousFlowSinkBC.h>

Inheritance diagram for PorousFlowSinkBC:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 PorousFlowSinkBC (const InputParameters &parameters)
 
virtual bool enabled () const
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
MooseAppgetMooseApp () const
 
const std::string & type () const
 
virtual const std::string & name () const
 
std::string typeAndName () const
 
std::string errorPrefix (const std::string &error_type) const
 
void callMooseError (std::string msg, const bool with_prefix) const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
const InputParametersparameters () const
 
MooseObjectName uniqueName () const
 
const T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &nm) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void mooseError (Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Static Public Member Functions

static InputParameters validParams ()
 
static InputParameters validParamsCommon ()
 

Public Attributes

const ConsoleStream _console
 

Protected Attributes

const bool & _enabled
 
MooseApp_app
 
const std::string _type
 
const std::string _name
 
const InputParameters_pars
 
Factory_factory
 
ActionFactory_action_factory
 
const Parallel::Communicator & _communicator
 

Detailed Description

Surrogate BC object for setting up enthalphy injection BC.

It specifies paramteres that users have to provide like in a normal object, but does not do anything. PorousFlowAddBCAction sets up the concrete objects that will model this type of BC.

Definition at line 21 of file PorousFlowSinkBC.h.

Constructor & Destructor Documentation

◆ PorousFlowSinkBC()

PorousFlowSinkBC::PorousFlowSinkBC ( const InputParameters parameters)

Definition at line 52 of file PorousFlowSinkBC.C.

MooseObject(const InputParameters &parameters)
const InputParameters & parameters() const

Member Function Documentation

◆ validParams()

InputParameters PorousFlowSinkBC::validParams ( )
static

Definition at line 33 of file PorousFlowSinkBC.C.

34 {
37  params.addRequiredParam<std::vector<BoundaryName>>(
38  "boundary", "The list of boundary IDs from the mesh where this boundary condition applies");
39  params.addRequiredParam<UserObjectName>(
40  "PorousFlowDictator", "The UserObject that holds the list of PorousFlow variable names");
41 
42  params.addClassDescription(
43  "BC corresponding to hot/cold fluid injection. This BC is only valid for "
44  "single-phase, non-isothermal simulations using (P, T) variables. This BC adds fluid mass "
45  "and heat energy. It is only meaningful if flux_function <= 0");
46 
47  params.registerBase("PorousFlowSinkBC");
48 
49  return params;
50 }
static InputParameters validParamsCommon()
void addRequiredParam(const std::string &name, const std::string &doc_string)
void registerBase(const std::string &value)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()

◆ validParamsCommon()

InputParameters PorousFlowSinkBC::validParamsCommon ( )
static

Definition at line 15 of file PorousFlowSinkBC.C.

Referenced by PorousFlowEnthalpySink::validParams(), and validParams().

16 {
18  params.addCoupledVar("porepressure_var", "Name of the porepressure variable");
19  params.addParam<unsigned int>("fluid_phase",
20  "Evaluate enthalpy at the pressure of this fluid phase.");
21  params.addRequiredParam<UserObjectName>("fp", "The name of the user object for fluid properties");
22  params.addRequiredParam<Real>("T_in", "Specified inlet temperature (measured in K)");
23  params.addRequiredParam<FunctionName>(
24  "flux_function",
25  "The flux. The flux is OUT of the medium: hence positive values of "
26  "this function means this BC will act as a SINK, while negative values "
27  "indicate this flux will be a SOURCE. However, this BC only makes physical sense if "
28  "flux_function <= 0. This function is measured in kg.m^-2.s^-1.");
29  return params;
30 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
InputParameters emptyInputParameters()
void addCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

The documentation for this class was generated from the following files: