moltres
Loading...
Searching...
No Matches
ScalarAdvectionArtDiff.h
Go to the documentation of this file.
1#pragma once
2
3#include "Kernel.h"
5
23class ScalarAdvectionArtDiff : public Kernel, public ScalarTransportBase
24{
25public:
26 ScalarAdvectionArtDiff(const InputParameters & parameters);
27
28 static InputParameters validParams();
29
31
32protected:
33 virtual Real tau();
34 virtual Real computeQpResidual() override;
35 virtual Real computeQpJacobian() override;
36 virtual Real computeQpOffDiagJacobian(unsigned jvar) override;
37
38 Real _scale;
39 // Coupled variables
40 const VariableValue & _u_vel;
41 const VariableValue & _v_vel;
42 const VariableValue & _w_vel;
43
44 // Variable numberings
48
49 VariableValue _u_def;
50 VariableValue _v_def;
51 VariableValue _w_def;
52 const MaterialProperty<Real> & _D;
55};
Definition ScalarAdvectionArtDiff.h:24
VariableValue _u_def
Definition ScalarAdvectionArtDiff.h:49
VariableValue _v_def
Definition ScalarAdvectionArtDiff.h:50
const VariableValue & _u_vel
Definition ScalarAdvectionArtDiff.h:40
virtual Real tau()
Definition ScalarAdvectionArtDiff.C:60
const MaterialProperty< Real > & _D
Definition ScalarAdvectionArtDiff.h:52
unsigned _w_vel_var_number
Definition ScalarAdvectionArtDiff.h:47
const Real & _current_elem_volume
Definition ScalarAdvectionArtDiff.h:54
virtual ~ScalarAdvectionArtDiff()
Definition ScalarAdvectionArtDiff.h:30
Real _conc_scaling
Definition ScalarAdvectionArtDiff.h:53
static InputParameters validParams()
Definition ScalarAdvectionArtDiff.C:7
Real _scale
Definition ScalarAdvectionArtDiff.h:38
virtual Real computeQpOffDiagJacobian(unsigned jvar) override
Definition ScalarAdvectionArtDiff.C:116
VariableValue _w_def
Definition ScalarAdvectionArtDiff.h:51
unsigned _v_vel_var_number
Definition ScalarAdvectionArtDiff.h:46
unsigned _u_vel_var_number
Definition ScalarAdvectionArtDiff.h:45
const VariableValue & _w_vel
Definition ScalarAdvectionArtDiff.h:42
virtual Real computeQpJacobian() override
Definition ScalarAdvectionArtDiff.C:98
const VariableValue & _v_vel
Definition ScalarAdvectionArtDiff.h:41
virtual Real computeQpResidual() override
Definition ScalarAdvectionArtDiff.C:81
Definition ScalarTransportBase.h:13