|
| v0.14.0
|
#include <tutorials/adv-1/src/ContactOps.hpp>
template<int DIM, typename BoundaryEleOp>
struct ContactOps::OpAssembleTotalContactAreaImpl< DIM, GAUSS, BoundaryEleOp >
Definition at line 460 of file ContactOps.hpp.
◆ OpAssembleTotalContactAreaImpl()
template<int DIM, typename BoundaryEleOp >
◆ doWork()
template<int DIM, typename BoundaryEleOp >
- Examples
- ContactOps.hpp.
Definition at line 662 of file ContactOps.hpp.
666 auto fe_type = BoundaryEleOp::getFEType();
668 const auto fe_ent = BoundaryEleOp::getFEEntityHandle();
675 auto t_w = BoundaryEleOp::getFTensor0IntegrationWeight();
676 auto t_traction = getFTensor1FromMat<DIM>(
commonDataPtr->contactTraction);
677 auto t_coords = BoundaryEleOp::getFTensor1CoordsAtGaussPts();
679 auto t_grad = getFTensor2FromMat<DIM, DIM>(
commonDataPtr->contactDispGrad);
680 auto t_normal_at_pts = BoundaryEleOp::getFTensor1NormalsAtGaussPts();
682 const auto nb_gauss_pts = BoundaryEleOp::getGaussPts().size2();
684 BoundaryEleOp::getFTensor1CoordsAtGaussPts(),
685 getFTensor1FromMat<DIM>(
commonDataPtr->contactDisp), nb_gauss_pts);
687 BoundaryEleOp::getFTensor1NormalsAtGaussPts(), nb_gauss_pts);
689 auto t_normal = getFTensor1FromMat<3>(m_normals_at_pts);
690 auto ts_time = BoundaryEleOp::getTStime();
691 auto ts_time_step = BoundaryEleOp::getTStimeStep();
695 m_spatial_coords, m_normals_at_pts, block_id);
697 ts_time_step, ts_time, nb_gauss_pts, m_spatial_coords, m_normals_at_pts,
700 auto t_grad_sdf = getFTensor1FromMat<3>(m_grad_sdf);
701 for (
auto gg = 0; gg != nb_gauss_pts; ++gg) {
702 double jacobian = 1.;
704 jacobian = 2. * M_PI * t_coords(0);
706 auto tn = -t_traction(
i) * t_grad_sdf(
i);
708 double alpha = t_w * jacobian;
717 t_normal_current(
i) = det * (invF(
j,
i) * t_normal_at_pts(
j));
719 alpha *= sqrt(t_normal_current(
i) * t_normal_current(
i));
721 if (fe_type == MBTRI) {
737 constexpr
int ind[] = {3, 4};
◆ commonDataPtr
template<int DIM, typename BoundaryEleOp >
◆ contactRange
template<int DIM, typename BoundaryEleOp >
◆ gradSurfaceDistanceFunction
template<int DIM, typename BoundaryEleOp >
◆ isAxisymmetric
template<int DIM, typename BoundaryEleOp >
◆ surfaceDistanceFunction
template<int DIM, typename BoundaryEleOp >
The documentation for this struct was generated from the following file:
MoFEMErrorCode VecSetValues(Vec V, const EntitiesFieldData::EntData &data, const double *ptr, InsertMode iora)
Assemble PETSc vector.
const double c
speed of light (cm/ns)
#define CHKERR
Inline error check.
static auto getFTensor0FromVec(ublas::vector< T, A > &data)
Get tensor rank 0 (scalar) form data vector.
static MoFEMErrorCode invertTensor(FTensor::Tensor2< T1, DIM, DIM > &t, T2 &det, FTensor::Tensor2< T3, DIM, DIM > &inv_t)
static auto determinantTensor(FTensor::Tensor2< T, DIM, DIM > &t)
Calculate the determinant of a tensor of rank DIM.
FTensor::Index< 'i', SPACE_DIM > i
Tensor2_Expr< Kronecker_Delta< T >, T, Dim0, Dim1, i, j > kronecker_delta(const Index< i, Dim0 > &, const Index< j, Dim1 > &)
Rank 2.
FTensor::Index< 'j', 3 > j
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...