www.mooseframework.org
Public Types | Public Member Functions | Private Attributes | List of all members
MooseADWrapper< libMesh::VectorValue< Real > > Class Template Reference

#include <MooseADWrapper.h>

Public Types

typedef libMesh::VectorValue< ADRealDNType
 

Public Member Functions

 MooseADWrapper ()
 
const libMesh::VectorValue< Real > & value () const
 
libMesh::VectorValue< Real > & value ()
 
const libMesh::VectorValue< ADReal > & dn (bool=true) const
 
libMesh::VectorValue< ADReal > & dn (bool=true)
 
void copyValueToDualNumber ()
 
void copyDualNumberToValue ()
 

Private Attributes

libMesh::VectorValue< Real > _val
 
libMesh::VectorValue< ADReal_dual_number
 

Detailed Description

template<>
class MooseADWrapper< libMesh::VectorValue< Real > >

Definition at line 77 of file MooseADWrapper.h.

Member Typedef Documentation

◆ DNType

typedef libMesh::VectorValue<ADReal> MooseADWrapper< libMesh::VectorValue< Real > >::DNType

Definition at line 82 of file MooseADWrapper.h.

Constructor & Destructor Documentation

◆ MooseADWrapper()

MooseADWrapper< libMesh::VectorValue< Real > >::MooseADWrapper ( )
inline

Definition at line 80 of file MooseADWrapper.h.

80 : _val(), _dual_number() {}
libMesh::VectorValue< ADReal > _dual_number

Member Function Documentation

◆ copyDualNumberToValue()

void MooseADWrapper< libMesh::VectorValue< Real > >::copyDualNumberToValue ( )
inline

Definition at line 97 of file MooseADWrapper.h.

98  {
99  for (decltype(LIBMESH_DIM) i = 0; i < LIBMESH_DIM; ++i)
100  _val(i) = _dual_number(i).value();
101  }
libMesh::VectorValue< ADReal > _dual_number

◆ copyValueToDualNumber()

void MooseADWrapper< libMesh::VectorValue< Real > >::copyValueToDualNumber ( )
inline

Definition at line 92 of file MooseADWrapper.h.

93  {
94  for (decltype(LIBMESH_DIM) i = 0; i < LIBMESH_DIM; ++i)
95  _dual_number(i).value() = _val(i);
96  }
libMesh::VectorValue< ADReal > _dual_number

◆ dn() [1/2]

const libMesh::VectorValue<ADReal>& MooseADWrapper< libMesh::VectorValue< Real > >::dn ( bool  = true) const
inline

Definition at line 88 of file MooseADWrapper.h.

88 { return _dual_number; }
libMesh::VectorValue< ADReal > _dual_number

◆ dn() [2/2]

libMesh::VectorValue<ADReal>& MooseADWrapper< libMesh::VectorValue< Real > >::dn ( bool  = true)
inline

Definition at line 90 of file MooseADWrapper.h.

90 { return _dual_number; }
libMesh::VectorValue< ADReal > _dual_number

◆ value() [1/2]

const libMesh::VectorValue<Real>& MooseADWrapper< libMesh::VectorValue< Real > >::value ( ) const
inline

Definition at line 84 of file MooseADWrapper.h.

84 { return _val; }

◆ value() [2/2]

libMesh::VectorValue<Real>& MooseADWrapper< libMesh::VectorValue< Real > >::value ( )
inline

Definition at line 86 of file MooseADWrapper.h.

86 { return _val; }

Member Data Documentation

◆ _dual_number

libMesh::VectorValue<ADReal> MooseADWrapper< libMesh::VectorValue< Real > >::_dual_number
private

Definition at line 105 of file MooseADWrapper.h.

◆ _val

libMesh::VectorValue<Real> MooseADWrapper< libMesh::VectorValue< Real > >::_val
private

Definition at line 104 of file MooseADWrapper.h.


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