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

This calculates a modified coupled time derivative that multiplies the time derivative of a coupled variable by a function of the variables. More...

#include <CoupledSusceptibilityTimeDerivative.h>

Inheritance diagram for CoupledSusceptibilityTimeDerivative:
[legend]

Public Member Functions

 CoupledSusceptibilityTimeDerivative (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 > & _F
 The function multiplied by the coupled time derivative. More...
 
const MaterialProperty< Real > & _dFdu
 function derivative w.r.t. the kernel variable More...
 
std::vector< const MaterialProperty< Real > * > _dFdarg
 function derivatives w.r.t. coupled variables More...
 

Detailed Description

This calculates a modified coupled time derivative that multiplies the time derivative of a coupled variable by a function of the variables.

Definition at line 23 of file CoupledSusceptibilityTimeDerivative.h.

Constructor & Destructor Documentation

CoupledSusceptibilityTimeDerivative::CoupledSusceptibilityTimeDerivative ( const InputParameters &  parameters)

Definition at line 22 of file CoupledSusceptibilityTimeDerivative.C.

24  : DerivativeMaterialInterface<JvarMapKernelInterface<CoupledTimeDerivative>>(parameters),
25  _F(getMaterialProperty<Real>("f_name")),
26  _dFdu(getMaterialPropertyDerivative<Real>("f_name", _var.name())),
27  _dFdarg(_coupled_moose_vars.size())
28 {
29  // fetch derivatives
30  for (unsigned int i = 0; i < _dFdarg.size(); ++i)
31  _dFdarg[i] = &getMaterialPropertyDerivative<Real>("f_name", _coupled_moose_vars[i]->name());
32 }
std::vector< const MaterialProperty< Real > * > _dFdarg
function derivatives w.r.t. coupled variables
const MaterialProperty< Real > & _dFdu
function derivative w.r.t. the kernel variable
const MaterialProperty< Real > & _F
The function multiplied by the coupled time derivative.

Member Function Documentation

Real CoupledSusceptibilityTimeDerivative::computeQpJacobian ( )
protectedvirtual

Definition at line 47 of file CoupledSusceptibilityTimeDerivative.C.

48 {
49  return CoupledTimeDerivative::computeQpResidual() * _dFdu[_qp] * _phi[_j][_qp];
50 }
const MaterialProperty< Real > & _dFdu
function derivative w.r.t. the kernel variable
Real CoupledSusceptibilityTimeDerivative::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 53 of file CoupledSusceptibilityTimeDerivative.C.

54 {
55  // get the coupled variable jvar is referring to
56  const unsigned int cvar = mapJvarToCvar(jvar);
57 
58  if (jvar == _v_var)
59  return CoupledTimeDerivative::computeQpOffDiagJacobian(jvar) * _F[_qp] +
60  CoupledTimeDerivative::computeQpResidual() * _phi[_j][_qp] * (*_dFdarg[cvar])[_qp];
61 
62  return CoupledTimeDerivative::computeQpResidual() * _phi[_j][_qp] * (*_dFdarg[cvar])[_qp];
63 }
std::vector< const MaterialProperty< Real > * > _dFdarg
function derivatives w.r.t. coupled variables
const MaterialProperty< Real > & _F
The function multiplied by the coupled time derivative.
Real CoupledSusceptibilityTimeDerivative::computeQpResidual ( )
protectedvirtual

Definition at line 41 of file CoupledSusceptibilityTimeDerivative.C.

42 {
43  return CoupledTimeDerivative::computeQpResidual() * _F[_qp];
44 }
const MaterialProperty< Real > & _F
The function multiplied by the coupled time derivative.
void CoupledSusceptibilityTimeDerivative::initialSetup ( )
virtual

Definition at line 35 of file CoupledSusceptibilityTimeDerivative.C.

36 {
37  validateNonlinearCoupling<Real>("f_name");
38 }

Member Data Documentation

std::vector<const MaterialProperty<Real> *> CoupledSusceptibilityTimeDerivative::_dFdarg
protected

function derivatives w.r.t. coupled variables

Definition at line 42 of file CoupledSusceptibilityTimeDerivative.h.

Referenced by computeQpOffDiagJacobian(), and CoupledSusceptibilityTimeDerivative().

const MaterialProperty<Real>& CoupledSusceptibilityTimeDerivative::_dFdu
protected

function derivative w.r.t. the kernel variable

Definition at line 39 of file CoupledSusceptibilityTimeDerivative.h.

Referenced by computeQpJacobian().

const MaterialProperty<Real>& CoupledSusceptibilityTimeDerivative::_F
protected

The function multiplied by the coupled time derivative.

Definition at line 36 of file CoupledSusceptibilityTimeDerivative.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().


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