https://mooseframework.inl.gov
PorousFlowEnthalpySink.h
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 
10 #pragma once
11 
12 #include "IntegratedBC.h"
13 
15 class PorousFlowDictator;
16 class Function;
17 
22 {
23 public:
25 
27 
28 protected:
29  virtual Real computeQpResidual() override;
30  virtual Real computeQpJacobian() override;
31  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
32 
35 
38 
40  const unsigned int _ph;
41 
43  const Function & _m_func;
44 
47 
50 
52  const Real & _T_in;
53 
56 
58  Real jac(unsigned int jvar) const;
59 };
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
virtual Real computeQpJacobian() override
PorousFlowEnthalpySink(const InputParameters &parameters)
virtual Real computeQpResidual() override
const Real & _T_in
Specified inlet temperature.
const SinglePhaseFluidProperties & _fp
Fluid properties UserObject.
const VariableValue * _pressure
Pressure (from aux variable)
Common class for single phase fluid properties.
const MaterialProperty< std::vector< Real > > & _pp
Computed nodal values of porepressure of the phases.
const unsigned int _ph
The phase number.
Real jac(unsigned int jvar) const
Derivative of residual with respect to the jvar variable.
OutputTools< Real >::VariableValue VariableValue
Applies a flux sink of heat energy to a boundary with specified mass flux and inlet temperature...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const InputParameters & parameters() const
const Function & _m_func
The mass flux.
const MaterialProperty< std::vector< std::vector< Real > > > & _dpp_dvar
d(porepressure)/d(PorousFlow variable)
const PorousFlowDictator & _dictator
PorousFlowDictator UserObject.