www.mooseframework.org
PorousFlowSinkPTDefiner.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "PorousFlowSink.h"
13 
15 
16 template <>
17 InputParameters validParams<PorousFlowSinkPTDefiner>();
18 
25 {
26 public:
27  PorousFlowSinkPTDefiner(const InputParameters & parameters);
28 
29 protected:
31  const MaterialProperty<std::vector<Real>> * const _pp;
32 
34  const MaterialProperty<std::vector<std::vector<Real>>> * const _dpp_dvar;
35 
37  const MaterialProperty<Real> * const _temp;
38 
40  const MaterialProperty<std::vector<Real>> * const _dtemp_dvar;
41 
43  const VariableValue & _pt_shift;
44 
46  virtual Real ptVar() const;
47 
49  virtual Real dptVar(unsigned pvar) const;
50 };
51 
PorousFlowSinkPTDefiner
Provides either a porepressure or a temperature to derived classes, depending on _involves_fluid defi...
Definition: PorousFlowSinkPTDefiner.h:24
PorousFlowSinkPTDefiner::PorousFlowSinkPTDefiner
PorousFlowSinkPTDefiner(const InputParameters &parameters)
Definition: PorousFlowSinkPTDefiner.C:27
PorousFlowSinkPTDefiner::_pp
const MaterialProperty< std::vector< Real > > *const _pp
Nodal pore pressure in each phase.
Definition: PorousFlowSinkPTDefiner.h:31
PorousFlowSink.h
PorousFlowSinkPTDefiner::ptVar
virtual Real ptVar() const
Provides the variable value (either porepressure, or temperature, depending on _involves_fluid)
Definition: PorousFlowSinkPTDefiner.C:47
PorousFlowSinkPTDefiner::_pt_shift
const VariableValue & _pt_shift
Subtract this from porepressure or temperature before evaluating PiecewiseLinearSink,...
Definition: PorousFlowSinkPTDefiner.h:43
PorousFlowSinkPTDefiner::dptVar
virtual Real dptVar(unsigned pvar) const
Provides the d(variable)/(d PorousFlow Variable pvar)
Definition: PorousFlowSinkPTDefiner.C:55
PorousFlowSinkPTDefiner::_temp
const MaterialProperty< Real > *const _temp
Nodal temperature.
Definition: PorousFlowSinkPTDefiner.h:37
validParams< PorousFlowSinkPTDefiner >
InputParameters validParams< PorousFlowSinkPTDefiner >()
Definition: PorousFlowSinkPTDefiner.C:14
PorousFlowSinkPTDefiner::_dtemp_dvar
const MaterialProperty< std::vector< Real > > *const _dtemp_dvar
d(Nodal temperature)/d(PorousFlow variable)
Definition: PorousFlowSinkPTDefiner.h:40
PorousFlowSinkPTDefiner::_dpp_dvar
const MaterialProperty< std::vector< std::vector< Real > > > *const _dpp_dvar
d(Nodal pore pressure in each phase)/d(PorousFlow variable)
Definition: PorousFlowSinkPTDefiner.h:34
PorousFlowSink
Applies a flux sink to a boundary.
Definition: PorousFlowSink.h:34