www.mooseframework.org
RichardsSUPGnone.C
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 // User object to implement no SUPG
11 //
12 #include "RichardsSUPGnone.h"
13 
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<RichardsSUPG>();
21  params.addClassDescription("User object for no SUPG");
22  return params;
23 }
24 
25 RichardsSUPGnone::RichardsSUPGnone(const InputParameters & parameters) : RichardsSUPG(parameters) {}
26 
27 RealVectorValue RichardsSUPGnone::velSUPG(RealTensorValue /*perm*/,
28  RealVectorValue /*gradp*/,
29  Real /*density*/,
30  RealVectorValue /*gravity*/) const
31 {
32  return RealVectorValue();
33 }
34 
35 RealTensorValue RichardsSUPGnone::dvelSUPG_dgradp(RealTensorValue /*perm*/) const
36 {
37  return RealTensorValue();
38 }
39 
40 RealVectorValue RichardsSUPGnone::dvelSUPG_dp(RealTensorValue /*perm*/,
41  Real /*density_prime*/,
42  RealVectorValue /*gravity*/) const
43 {
44  return RealVectorValue();
45 }
46 
47 RealVectorValue
48 RichardsSUPGnone::bb(RealVectorValue /*vel*/,
49  int /*dimen*/,
50  RealVectorValue /*xi_prime*/,
51  RealVectorValue /*eta_prime*/,
52  RealVectorValue /*zeta_prime*/) const
53 {
54  return RealVectorValue();
55 }
56 
57 // following is d(bb*bb)/d(gradp)
58 RealVectorValue RichardsSUPGnone::dbb2_dgradp(RealVectorValue /*vel*/,
59  RealTensorValue /*dvel_dgradp*/,
60  RealVectorValue /*xi_prime*/,
61  RealVectorValue /*eta_prime*/,
62  RealVectorValue /*zeta_prime*/) const
63 {
64  return RealVectorValue();
65 }
66 
67 // following is d(bb*bb)/d(p)
68 Real RichardsSUPGnone::dbb2_dp(RealVectorValue /*vel*/,
69  RealVectorValue /*dvel_dp*/,
70  RealVectorValue /*xi_prime*/,
71  RealVectorValue /*eta_prime*/,
72  RealVectorValue /*zeta_prime*/) const
73 {
74  return 0;
75 }
76 
77 Real RichardsSUPGnone::tauSUPG(RealVectorValue /*vel*/,
78  Real /*traceperm*/,
79  RealVectorValue /*b*/) const
80 {
81  return 0;
82 }
83 
84 RealVectorValue RichardsSUPGnone::dtauSUPG_dgradp(RealVectorValue /*vel*/,
85  RealTensorValue /*dvel_dgradp*/,
86  Real /*traceperm*/,
87  RealVectorValue /*b*/,
88  RealVectorValue /*db2_dgradp*/) const
89 {
90  return RealVectorValue();
91 }
92 
93 Real RichardsSUPGnone::dtauSUPG_dp(RealVectorValue /*vel*/,
94  RealVectorValue /*dvel_dp*/,
95  Real /*traceperm*/,
96  RealVectorValue /*b*/,
97  Real /*db2_dp*/) const
98 {
99  return 0;
100 }
101 
102 bool
104 {
105  return true;
106 }
RichardsSUPGnone::RichardsSUPGnone
RichardsSUPGnone(const InputParameters &parameters)
Definition: RichardsSUPGnone.C:25
RichardsSUPGnone::dtauSUPG_dgradp
RealVectorValue dtauSUPG_dgradp(RealVectorValue, RealTensorValue, Real, RealVectorValue, RealVectorValue) const
derivative of tau SUPG parameter wrt gradient of porepressure = zero
Definition: RichardsSUPGnone.C:84
RichardsSUPGnone::velSUPG
RealVectorValue velSUPG(RealTensorValue, RealVectorValue, Real, RealVectorValue) const
SUPG velocity = zero.
Definition: RichardsSUPGnone.C:27
registerMooseObject
registerMooseObject("RichardsApp", RichardsSUPGnone)
validParams< RichardsSUPG >
InputParameters validParams< RichardsSUPG >()
Definition: RichardsSUPG.C:16
RichardsSUPGnone::dvelSUPG_dgradp
RealTensorValue dvelSUPG_dgradp(RealTensorValue) const
derivative of SUPG velocity wrt gradient of porepressure = zero
Definition: RichardsSUPGnone.C:35
RichardsSUPGnone::dbb2_dgradp
RealVectorValue dbb2_dgradp(RealVectorValue, RealTensorValue, RealVectorValue, RealVectorValue, RealVectorValue) const
derivative of bb*bb wrt gradient of porepressure = zero
Definition: RichardsSUPGnone.C:58
RichardsSUPGnone
no Richards SUPG.
Definition: RichardsSUPGnone.h:23
RichardsSUPGnone::SUPG_trivial
bool SUPG_trivial() const
Returns true if SUPG is trivial.
Definition: RichardsSUPGnone.C:103
validParams< RichardsSUPGnone >
InputParameters validParams< RichardsSUPGnone >()
Definition: RichardsSUPGnone.C:18
RichardsSUPG
base class for SUPG of the Richards equation You must override all the functions below with your spec...
Definition: RichardsSUPG.h:25
RichardsSUPGnone::bb
RealVectorValue bb(RealVectorValue, int, RealVectorValue, RealVectorValue, RealVectorValue) const
bb parameter = zero
Definition: RichardsSUPGnone.C:48
RichardsSUPGnone::dtauSUPG_dp
Real dtauSUPG_dp(RealVectorValue, RealVectorValue, Real, RealVectorValue, Real) const
derivative of tau SUPG parameter wrt porepressure = zero
Definition: RichardsSUPGnone.C:93
RichardsSUPGnone::dbb2_dp
Real dbb2_dp(RealVectorValue, RealVectorValue, RealVectorValue, RealVectorValue, RealVectorValue) const
derivative of bb*bb wrt porepressure = zero
Definition: RichardsSUPGnone.C:68
RichardsSUPGnone::tauSUPG
Real tauSUPG(RealVectorValue, Real, RealVectorValue) const
tau SUPG parameter = zero
Definition: RichardsSUPGnone.C:77
RichardsSUPGnone.h
RichardsSUPGnone::dvelSUPG_dp
RealVectorValue dvelSUPG_dp(RealTensorValue, Real, RealVectorValue) const
derivative of SUPG velocity wrt poreporessure = zero
Definition: RichardsSUPGnone.C:40