moltres
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ScalarAdvectionArtDiff Class Reference

#include <ScalarAdvectionArtDiff.h>

Inheritance diagram for ScalarAdvectionArtDiff:
[legend]

Public Member Functions

 ScalarAdvectionArtDiff (const InputParameters &parameters)
 
virtual ~ScalarAdvectionArtDiff ()
 
- Public Member Functions inherited from ScalarTransportBase
 ScalarTransportBase (const InputParameters &parameters)
 
virtual Real computeConcentration (const VariableValue &u, unsigned int qp)
 Computes \(c\).
 
virtual RealVectorValue computeConcentrationGradient (const VariableValue &u, const VariableGradient &grad_u, unsigned int qp)
 Computes \(\nabla c\).
 
virtual Real computeConcentrationDerivative (const VariableValue &u, const VariablePhiValue &phi, unsigned int j, unsigned int qp)
 Computes \(\frac{\partial c}{\partial u_j}\).
 
virtual RealVectorValue computeConcentrationGradientDerivative (const VariableValue &u, const VariableGradient &grad_u, const VariablePhiValue &phi, const VariablePhiGradient &grad_phi, unsigned int j, unsigned int qp)
 Computes \(\nabla \frac{\partial c}{\partial u_j}\).
 
virtual Real computeConcentrationDot (const VariableValue &u, const VariableValue &u_dot, unsigned int qp)
 Computes \(\frac{\partial c}{\partial t}\).
 
virtual Real computeConcentrationDotDerivative (const VariableValue &u, const VariableValue &u_dot, const VariableValue &du_dot_du, const VariablePhiValue &phi, unsigned int j, unsigned int qp)
 Computes \(\frac{\partial}{\partial t} \frac{\partial c}{\partial u_j}\).
 

Static Public Member Functions

static InputParameters validParams ()
 
- Static Public Member Functions inherited from ScalarTransportBase
static InputParameters validParams ()
 

Protected Member Functions

virtual Real tau ()
 
virtual Real computeQpResidual () override
 
virtual Real computeQpJacobian () override
 
virtual Real computeQpOffDiagJacobian (unsigned jvar) override
 

Protected Attributes

Real _scale
 
const VariableValue & _u_vel
 
const VariableValue & _v_vel
 
const VariableValue & _w_vel
 
unsigned _u_vel_var_number
 
unsigned _v_vel_var_number
 
unsigned _w_vel_var_number
 
VariableValue _u_def
 
VariableValue _v_def
 
VariableValue _w_def
 
const MaterialProperty< Real > & _D
 
Real _conc_scaling
 
const Real & _current_elem_volume
 

Detailed Description

This class computes the residual and Jacobian contributions for the artificial diffusion term:

\[ D' = \tau \frac{|u| l_e}{2}, \]

where

\[ \tau = \frac{1}{\tanh (\gamma)} - \frac{1}{\gamma} \]

and

\[ \gamma = \frac{|u| \Delta x}{2 D}. \]

Ref: E. Onate & M. Manzan, 2000, "Stabilization Techniques for Finite Element Analysis of Convection-Diffusion Problems".

Constructor & Destructor Documentation

◆ ScalarAdvectionArtDiff()

ScalarAdvectionArtDiff::ScalarAdvectionArtDiff ( const InputParameters &  parameters)

◆ ~ScalarAdvectionArtDiff()

virtual ScalarAdvectionArtDiff::~ScalarAdvectionArtDiff ( )
inlinevirtual

Member Function Documentation

◆ computeQpJacobian()

Real ScalarAdvectionArtDiff::computeQpJacobian ( )
overrideprotectedvirtual

◆ computeQpOffDiagJacobian()

Real ScalarAdvectionArtDiff::computeQpOffDiagJacobian ( unsigned  jvar)
overrideprotectedvirtual

◆ computeQpResidual()

Real ScalarAdvectionArtDiff::computeQpResidual ( )
overrideprotectedvirtual

◆ tau()

Real ScalarAdvectionArtDiff::tau ( )
protectedvirtual

◆ validParams()

InputParameters ScalarAdvectionArtDiff::validParams ( )
static

Member Data Documentation

◆ _conc_scaling

Real ScalarAdvectionArtDiff::_conc_scaling
protected

◆ _current_elem_volume

const Real& ScalarAdvectionArtDiff::_current_elem_volume
protected

◆ _D

const MaterialProperty<Real>& ScalarAdvectionArtDiff::_D
protected

◆ _scale

Real ScalarAdvectionArtDiff::_scale
protected

◆ _u_def

VariableValue ScalarAdvectionArtDiff::_u_def
protected

◆ _u_vel

const VariableValue& ScalarAdvectionArtDiff::_u_vel
protected

◆ _u_vel_var_number

unsigned ScalarAdvectionArtDiff::_u_vel_var_number
protected

◆ _v_def

VariableValue ScalarAdvectionArtDiff::_v_def
protected

◆ _v_vel

const VariableValue& ScalarAdvectionArtDiff::_v_vel
protected

◆ _v_vel_var_number

unsigned ScalarAdvectionArtDiff::_v_vel_var_number
protected

◆ _w_def

VariableValue ScalarAdvectionArtDiff::_w_def
protected

◆ _w_vel

const VariableValue& ScalarAdvectionArtDiff::_w_vel
protected

◆ _w_vel_var_number

unsigned ScalarAdvectionArtDiff::_w_vel_var_number
protected

The documentation for this class was generated from the following files: