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

#include <MooseADWrapper.h>

Public Types

typedef libMesh::TensorValue< ADRealDNType
 

Public Member Functions

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

Private Attributes

libMesh::TensorValue< Real > _val
 
libMesh::TensorValue< ADReal_dual_number
 

Detailed Description

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

Definition at line 109 of file MooseADWrapper.h.

Member Typedef Documentation

◆ DNType

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

Definition at line 114 of file MooseADWrapper.h.

Constructor & Destructor Documentation

◆ MooseADWrapper()

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

Definition at line 112 of file MooseADWrapper.h.

112 : _val(), _dual_number() {}
libMesh::TensorValue< ADReal > _dual_number

Member Function Documentation

◆ copyDualNumberToValue()

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

Definition at line 130 of file MooseADWrapper.h.

131  {
132  for (decltype(LIBMESH_DIM) i = 0; i < LIBMESH_DIM; ++i)
133  for (decltype(LIBMESH_DIM) j = 0; j < LIBMESH_DIM; ++j)
134  _val(i, j) = _dual_number(i, j).value();
135  }
libMesh::TensorValue< ADReal > _dual_number

◆ copyValueToDualNumber()

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

Definition at line 124 of file MooseADWrapper.h.

125  {
126  for (decltype(LIBMESH_DIM) i = 0; i < LIBMESH_DIM; ++i)
127  for (decltype(LIBMESH_DIM) j = 0; j < LIBMESH_DIM; ++j)
128  _dual_number(i, j).value() = _val(i, j);
129  }
libMesh::TensorValue< ADReal > _dual_number

◆ dn() [1/2]

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

Definition at line 120 of file MooseADWrapper.h.

120 { return _dual_number; }
libMesh::TensorValue< ADReal > _dual_number

◆ dn() [2/2]

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

Definition at line 122 of file MooseADWrapper.h.

122 { return _dual_number; }
libMesh::TensorValue< ADReal > _dual_number

◆ value() [1/2]

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

Definition at line 116 of file MooseADWrapper.h.

116 { return _val; }

◆ value() [2/2]

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

Definition at line 118 of file MooseADWrapper.h.

118 { return _val; }

Member Data Documentation

◆ _dual_number

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

Definition at line 139 of file MooseADWrapper.h.

◆ _val

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

Definition at line 138 of file MooseADWrapper.h.


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