www.mooseframework.org
PorousFlowPolyLineSink.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 "PorousFlowLineSink.h"
13 #include "LinearInterpolation.h"
14 
16 
17 template <>
18 InputParameters validParams<PorousFlowPolyLineSink>();
19 
24 {
25 public:
26  PorousFlowPolyLineSink(const InputParameters & parameters);
27 
28 protected:
30  LinearInterpolation _sink_func;
31 
32  Real computeQpBaseOutflow(unsigned current_dirac_ptid) const override;
33  void computeQpBaseOutflowJacobian(unsigned jvar,
34  unsigned current_dirac_ptid,
35  Real & outflow,
36  Real & outflowp) const override;
37 };
PorousFlowLineSink
Approximates a line sink a sequence of Dirac Points.
Definition: PorousFlowLineSink.h:24
PorousFlowPolyLineSink
Approximates a line sink by a sequence of Dirac Points.
Definition: PorousFlowPolyLineSink.h:23
PorousFlowPolyLineSink::computeQpBaseOutflow
Real computeQpBaseOutflow(unsigned current_dirac_ptid) const override
Returns the flux from the line sink (before modification by mobility, etc). Derived classes should ov...
Definition: PorousFlowPolyLineSink.C:48
validParams< PorousFlowPolyLineSink >
InputParameters validParams< PorousFlowPolyLineSink >()
Definition: PorousFlowPolyLineSink.C:16
PorousFlowLineSink.h
PorousFlowPolyLineSink::PorousFlowPolyLineSink
PorousFlowPolyLineSink(const InputParameters &parameters)
Definition: PorousFlowPolyLineSink.C:41
PorousFlowPolyLineSink::_sink_func
LinearInterpolation _sink_func
mass flux = _sink_func as a function of porepressure or temperature
Definition: PorousFlowPolyLineSink.h:30
PorousFlowPolyLineSink::computeQpBaseOutflowJacobian
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.
Definition: PorousFlowPolyLineSink.C:65