36 (
const std::string & helper_name ) :
49 unsigned int qp )
const
51 libMesh::RealGradient g( fe->get_dxidx()[qp] );
55 g(0) += fe->get_detadx()[qp];
56 g(1) = fe->get_dxidy()[qp] + fe->get_detady()[qp];
59 if( c.get_dim() == 3 )
61 g(0) += fe->get_dzetadx()[qp];
62 g(1) += fe->get_dzetady()[qp];
63 g(2) = fe->get_dxidz()[qp] + fe->get_detadz()[qp] + fe->get_dzetadz()[qp];
71 unsigned int qp )
const
73 libMesh::Real dxidx = fe->get_dxidx()[qp];
75 libMesh::RealTensor G( dxidx*dxidx );
79 libMesh::Real dxidy = fe->get_dxidy()[qp];
81 libMesh::Real detadx = fe->get_detadx()[qp];
82 libMesh::Real detady = fe->get_detady()[qp];
84 G(0,0) += detadx*detadx;
85 G(0,1) = G(1,0) = dxidx*dxidy + detadx*detady;
86 G(1,1) = dxidy*dxidy + detady*detady;
88 if( c.get_dim() == 3 )
90 libMesh::Real dxidz = fe->get_dxidz()[qp];
92 libMesh::Real detadz = fe->get_detadz()[qp];
94 libMesh::Real dzetadx = fe->get_dzetadx()[qp];
95 libMesh::Real dzetady = fe->get_dzetady()[qp];
96 libMesh::Real dzetadz = fe->get_dzetadz()[qp];
98 G(0,0) += dzetadx*dzetadx;
99 G(0,1) += dzetadx*dzetady;
100 G(0,2) = dxidx*dxidz + detadx*detadz + dzetadx*dzetadz;
101 G(1,0) += dzetady*dzetadx;
102 G(1,1) += dzetady*dzetady;
103 G(1,2) = dxidy*dxidz + detady*detadz + dzetady*dzetadz;
104 G(2,0) = dxidz*dxidx + detadz*detadx + dzetadz*dzetadx;
105 G(2,1) = dxidz*dxidy + detadz*detady + dzetadz*dzetady;
106 G(2,2) = dxidz*dxidz + detadz*detadz + dzetadz*dzetadz;
libMesh::RealTensor compute_G(libMesh::FEBase *fe, AssemblyContext &c, unsigned int qp) const
libMesh::RealGradient compute_g(libMesh::FEBase *fe, AssemblyContext &c, unsigned int qp) const
ParameterUser base class. Utility methods for subclasses.
StabilizationHelper(const std::string &helper_name)