www.mooseframework.org
PorousFlowPolyLineSink.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef POROUSFLOWPOLYLINESINK
9 #define POROUSFLOWPOLYLINESINK
10 
11 #include "PorousFlowLineSink.h"
12 #include "LinearInterpolation.h"
13 
15 
16 template <>
17 InputParameters validParams<PorousFlowPolyLineSink>();
18 
23 {
24 public:
25  PorousFlowPolyLineSink(const InputParameters & parameters);
26 
27 protected:
29  LinearInterpolation _sink_func;
30 
31  Real computeQpBaseOutflow(unsigned current_dirac_ptid) const override;
32  void computeQpBaseOutflowJacobian(unsigned jvar,
33  unsigned current_dirac_ptid,
34  Real & outflow,
35  Real & outflowp) const override;
36 };
37 
38 #endif // POROUSFLOWPOLYLINESINK
PorousFlowPolyLineSink(const InputParameters &parameters)
void computeQpBaseOutflowJacobian(unsigned jvar, unsigned current_dirac_ptid, Real &outflow, Real &outflowp) const override
Calculates the BaseOutflow as well as its derivative wrt jvar. Derived classes should override this...
Approximates a line sink by a sequence of Dirac Points.
LinearInterpolation _sink_func
mass flux = _sink_func as a function of porepressure or temperature
Real computeQpBaseOutflow(unsigned current_dirac_ptid) const override
Returns the flux from the line sink (before modification by mobility, etc). Derived classes should ov...
Approximates a line sink a sequence of Dirac Points.
InputParameters validParams< PorousFlowPolyLineSink >()