www.mooseframework.org
PorousFlowSquarePulsePointSource.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 "DiracKernel.h"
13 
15 
16 template <>
18 
24 class PorousFlowSquarePulsePointSource : public DiracKernel
25 {
26 public:
27  PorousFlowSquarePulsePointSource(const InputParameters & parameters);
28 
29  virtual void addPoints() override;
30  virtual Real computeQpResidual() override;
31 
32 protected:
34  const Real _mass_flux;
35 
37  const Point _p;
38 
40  const Real _start_time;
41 
43  const Real _end_time;
44 };
45 
PorousFlowSquarePulsePointSource::PorousFlowSquarePulsePointSource
PorousFlowSquarePulsePointSource(const InputParameters &parameters)
Definition: PorousFlowSquarePulsePointSource.C:32
PorousFlowSquarePulsePointSource::_p
const Point _p
The location of the point source (sink)
Definition: PorousFlowSquarePulsePointSource.h:37
validParams< PorousFlowSquarePulsePointSource >
InputParameters validParams< PorousFlowSquarePulsePointSource >()
Definition: PorousFlowSquarePulsePointSource.C:16
PorousFlowSquarePulsePointSource::_mass_flux
const Real _mass_flux
The constant mass flux (kg/s)
Definition: PorousFlowSquarePulsePointSource.h:34
PorousFlowSquarePulsePointSource::_end_time
const Real _end_time
The time at which the point source (sink) stops operating.
Definition: PorousFlowSquarePulsePointSource.h:43
PorousFlowSquarePulsePointSource::computeQpResidual
virtual Real computeQpResidual() override
Definition: PorousFlowSquarePulsePointSource.C:56
PorousFlowSquarePulsePointSource::addPoints
virtual void addPoints() override
Definition: PorousFlowSquarePulsePointSource.C:50
PorousFlowSquarePulsePointSource
Point source (or sink) that adds (removes) fluid at a constant mass flux rate for times between the s...
Definition: PorousFlowSquarePulsePointSource.h:24
PorousFlowSquarePulsePointSource::_start_time
const Real _start_time
The time at which the point source (sink) starts operating.
Definition: PorousFlowSquarePulsePointSource.h:40