|
| OpGetDensityField (const std::string row_field, boost::shared_ptr< MatrixDouble > mat_coords_ptr, boost::shared_ptr< VectorDouble > density_at_pts, boost::shared_ptr< MatrixDouble > rho_grad_at_gauss_pts_ptr) |
|
MoFEMErrorCode | doWork (int row_side, EntityType row_type, HookeElement::EntData &row_data) |
|
◆ OpGetDensityField()
template<bool ALE>
OpGetDensityField< ALE >::OpGetDensityField |
( |
const std::string |
row_field, |
|
|
boost::shared_ptr< MatrixDouble > |
mat_coords_ptr, |
|
|
boost::shared_ptr< VectorDouble > |
density_at_pts, |
|
|
boost::shared_ptr< MatrixDouble > |
rho_grad_at_gauss_pts_ptr |
|
) |
| |
|
inline |
◆ doWork()
Definition at line 32 of file testing_jacobian_of_hook_scaled_with_density_element.cpp.
35 if (row_type != MBVERTEX)
38 const int nb_integration_pts = getGaussPts().size2();
51 coords = trans(getCoordsAtGaussPts());
54 auto t_coords = getFTensor1FromMat<3>(coords);
56 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
57 t_rho = 1 + t_coords(
i) * t_coords(
i);
59 t_grad_rho(
i) = 2 * t_coords(
i);
◆ matCoordsPtr
◆ rhoAtGaussPtsPtr
◆ rhoGradAtGaussPtsPtr
The documentation for this struct was generated from the following file: