v0.10.0
Classes | Functions
OpContactTools Namespace Reference

Classes

struct  CommonData
 [Common data] More...
 
struct  OpConstrainBoundaryLhs_dTraction
 
struct  OpConstrainBoundaryLhs_dU
 
struct  OpConstrainBoundaryRhs
 
struct  OpGetClosestRigidBodyData
 
struct  OpGetGaussPtsContactState
 [Postprocessing] More...
 
struct  OpPostProcContact
 
struct  OpPostProcVertex
 [Common data] More...
 

Functions

template<typename T >
double gap0 (double g, FTensor::Tensor1< T, 3 > &t_disp, FTensor::Tensor1< T, 3 > &t_normal)
 
template<typename T1 , typename T2 >
double normal_traction (Tensor1< T1, 3 > &t_traction, Tensor1< T2, 3 > &t_normal)
 
double sign (double x)
 
double w (const double g, const double t)
 
double constraint (double g0, double g, double &&t)
 
double diff_constraints_dtraction (double g, double &&t)
 
double diff_constraints_dgap (double g, double &&t)
 

Function Documentation

◆ constraint()

double OpContactTools::constraint ( double  g0,
double  g,
double &&  t 
)

Definition at line 145 of file ContactOperators.hpp.

145  {
146  return (w(g, t) + std::abs(w(g, t))) / 2 + g0;
147 };

◆ diff_constraints_dgap()

double OpContactTools::diff_constraints_dgap ( double  g,
double &&  t 
)

Definition at line 153 of file ContactOperators.hpp.

153  {
154  return (sign(w(g, t)) - 1) / 2;
155 }

◆ diff_constraints_dtraction()

double OpContactTools::diff_constraints_dtraction ( double  g,
double &&  t 
)

Definition at line 149 of file ContactOperators.hpp.

149  {
150  return -(*cache).cn_cont * (1 + sign(w(g, t))) / 2;
151 }

◆ gap0()

template<typename T >
double OpContactTools::gap0 ( double  g,
FTensor::Tensor1< T, 3 > &  t_disp,
FTensor::Tensor1< T, 3 > &  t_normal 
)

Definition at line 116 of file ContactOperators.hpp.

117  {
118  return -g + t_disp(i) * t_normal(i);
119 }

◆ normal_traction()

template<typename T1 , typename T2 >
double OpContactTools::normal_traction ( Tensor1< T1, 3 > &  t_traction,
Tensor1< T2, 3 > &  t_normal 
)

Definition at line 127 of file ContactOperators.hpp.

128  {
129  return -t_traction(i) * t_normal(i);
130 }

◆ sign()

double OpContactTools::sign ( double  x)

Definition at line 132 of file ContactOperators.hpp.

132  {
133  if (x == 0)
134  return 0;
135  else if (x > 0)
136  return 1;
137  else
138  return -1;
139 };

◆ w()

double OpContactTools::w ( const double  g,
const double  t 
)
OpContactTools::sign
double sign(double x)
Definition: ContactOperators.hpp:132
OpContactTools::w
double w(const double g, const double t)
Definition: ContactOperators.hpp:141
i
FTensor::Index< 'i', 3 > i
Definition: matrix_function.cpp:18