www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SusceptibilityTimeDerivative Class Reference

This calculates the time derivative for a variable multiplied by a generalized susceptibility. More...

#include <SusceptibilityTimeDerivative.h>

Inheritance diagram for SusceptibilityTimeDerivative:
[legend]

Public Member Functions

 SusceptibilityTimeDerivative (const InputParameters &parameters)
 
virtual void initialSetup ()
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 

Protected Attributes

const MaterialProperty< Real > & _Chi
 susceptibility More...
 
const MaterialProperty< Real > & _dChidu
 susceptibility derivative w.r.t. the kernel variable More...
 
std::vector< const MaterialProperty< Real > * > _dChidarg
 susceptibility derivatives w.r.t. coupled variables More...
 

Detailed Description

This calculates the time derivative for a variable multiplied by a generalized susceptibility.

Definition at line 24 of file SusceptibilityTimeDerivative.h.

Constructor & Destructor Documentation

◆ SusceptibilityTimeDerivative()

SusceptibilityTimeDerivative::SusceptibilityTimeDerivative ( const InputParameters &  parameters)

Definition at line 28 of file SusceptibilityTimeDerivative.C.

29  : DerivativeMaterialInterface<JvarMapKernelInterface<TimeDerivative>>(parameters),
30  _Chi(getMaterialProperty<Real>("f_name")),
31  _dChidu(getMaterialPropertyDerivative<Real>("f_name", _var.name())),
32  _dChidarg(_coupled_moose_vars.size())
33 {
34  // fetch derivatives
35  for (unsigned int i = 0; i < _dChidarg.size(); ++i)
36  _dChidarg[i] = &getMaterialPropertyDerivative<Real>("f_name", _coupled_moose_vars[i]->name());
37 }
std::vector< const MaterialProperty< Real > * > _dChidarg
susceptibility derivatives w.r.t. coupled variables
const std::string name
Definition: Setup.h:22
const MaterialProperty< Real > & _Chi
susceptibility
const MaterialProperty< Real > & _dChidu
susceptibility derivative w.r.t. the kernel variable

Member Function Documentation

◆ computeQpJacobian()

Real SusceptibilityTimeDerivative::computeQpJacobian ( )
protectedvirtual

Definition at line 52 of file SusceptibilityTimeDerivative.C.

53 {
54  return TimeDerivative::computeQpJacobian() * _Chi[_qp] +
55  TimeDerivative::computeQpResidual() * _dChidu[_qp] * _phi[_j][_qp];
56 }
const MaterialProperty< Real > & _Chi
susceptibility
const MaterialProperty< Real > & _dChidu
susceptibility derivative w.r.t. the kernel variable

◆ computeQpOffDiagJacobian()

Real SusceptibilityTimeDerivative::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 59 of file SusceptibilityTimeDerivative.C.

60 {
61  // get the coupled variable jvar is referring to
62  const unsigned int cvar = mapJvarToCvar(jvar);
63 
64  return TimeDerivative::computeQpResidual() * (*_dChidarg[cvar])[_qp] * _phi[_j][_qp];
65 }
std::vector< const MaterialProperty< Real > * > _dChidarg
susceptibility derivatives w.r.t. coupled variables

◆ computeQpResidual()

Real SusceptibilityTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 46 of file SusceptibilityTimeDerivative.C.

47 {
48  return TimeDerivative::computeQpResidual() * _Chi[_qp];
49 }
const MaterialProperty< Real > & _Chi
susceptibility

◆ initialSetup()

void SusceptibilityTimeDerivative::initialSetup ( )
virtual

Definition at line 40 of file SusceptibilityTimeDerivative.C.

41 {
42  validateNonlinearCoupling<Real>("f_name");
43 }

Member Data Documentation

◆ _Chi

const MaterialProperty<Real>& SusceptibilityTimeDerivative::_Chi
protected

susceptibility

Definition at line 37 of file SusceptibilityTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _dChidarg

std::vector<const MaterialProperty<Real> *> SusceptibilityTimeDerivative::_dChidarg
protected

susceptibility derivatives w.r.t. coupled variables

Definition at line 43 of file SusceptibilityTimeDerivative.h.

Referenced by computeQpOffDiagJacobian(), and SusceptibilityTimeDerivative().

◆ _dChidu

const MaterialProperty<Real>& SusceptibilityTimeDerivative::_dChidu
protected

susceptibility derivative w.r.t. the kernel variable

Definition at line 40 of file SusceptibilityTimeDerivative.h.

Referenced by computeQpJacobian().


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