v0.13.1
Loading...
Searching...
No Matches
Classes | Functions | Variables
ContactOps Namespace Reference

Classes

struct  CommonData
 [Common data] More...
 
struct  Monitor
 
struct  OpConstrainBoundaryLhs_dTraction
 
struct  OpConstrainBoundaryLhs_dU
 
struct  OpConstrainBoundaryRhs
 
struct  OpPostProcVertex
 

Functions

template<typename T1 , typename T2 >
FTensor::Tensor1< double, SPACE_DIMnormal (FTensor::Tensor1< T1, 3 > &t_coords, FTensor::Tensor1< T2, SPACE_DIM > &t_disp)
 
template<typename T >
double gap0 (FTensor::Tensor1< T, 3 > &t_coords, FTensor::Tensor1< double, SPACE_DIM > &t_normal)
 
template<typename T >
double gap (FTensor::Tensor1< T, SPACE_DIM > &t_disp, FTensor::Tensor1< double, SPACE_DIM > &t_normal)
 
template<typename T >
double normal_traction (FTensor::Tensor1< T, SPACE_DIM > &t_traction, FTensor::Tensor1< double, SPACE_DIM > &t_normal)
 
double sign (double x)
 
double w (const double g, const double t)
 
double constrian (double &&g0, double &&g, double &&t)
 
double diff_constrains_dtraction (double &&g0, double &&g, double &&t)
 
double diff_constrains_dgap (double &&g0, double &&g, double &&t)
 

Variables

FTensor::Index< 'i', SPACE_DIMi
 [Common data] More...
 
FTensor::Index< 'j', SPACE_DIMj
 
FTensor::Index< 'k', SPACE_DIMk
 
FTensor::Index< 'l', SPACE_DIMl
 

Function Documentation

◆ constrian()

double ContactOps::constrian ( double &&  g0,
double &&  g,
double &&  t 
)
inline
Examples
ContactOps.hpp.

Definition at line 102 of file ContactOps.hpp.

102 {
103 return (w(g - g0, t) + std::abs(w(g - g0, t))) / 2 + g0;
104};
constexpr double t
plate stiffness
Definition: plate.cpp:59
constexpr double g

◆ diff_constrains_dgap()

double ContactOps::diff_constrains_dgap ( double &&  g0,
double &&  g,
double &&  t 
)
inline
Examples
ContactOps.hpp.

Definition at line 110 of file ContactOps.hpp.

110 {
111 return (1 + sign(w(g - g0, t))) / 2;
112}

◆ diff_constrains_dtraction()

double ContactOps::diff_constrains_dtraction ( double &&  g0,
double &&  g,
double &&  t 
)
inline
Examples
ContactOps.hpp.

Definition at line 106 of file ContactOps.hpp.

106 {
107 return -cn * (1 + sign(w(g - g0, t))) / 2;
108}
constexpr double cn
Definition: contact.cpp:124

◆ gap()

template<typename T >
double ContactOps::gap ( FTensor::Tensor1< T, SPACE_DIM > &  t_disp,
FTensor::Tensor1< double, SPACE_DIM > &  t_normal 
)
inline
Examples
ContactOps.hpp.

Definition at line 80 of file ContactOps.hpp.

81 {
82 return t_disp(i) * t_normal(i);
83}
FTensor::Index< 'i', SPACE_DIM > i

◆ gap0()

template<typename T >
double ContactOps::gap0 ( FTensor::Tensor1< T, 3 > &  t_coords,
FTensor::Tensor1< double, SPACE_DIM > &  t_normal 
)
inline
Examples
ContactOps.hpp.

Definition at line 74 of file ContactOps.hpp.

75 {
76 return (-0.5 - t_coords(1)) * t_normal(1);
77}

◆ normal()

template<typename T1 , typename T2 >
FTensor::Tensor1< double, SPACE_DIM > ContactOps::normal ( FTensor::Tensor1< T1, 3 > &  t_coords,
FTensor::Tensor1< T2, SPACE_DIM > &  t_disp 
)
inline
Examples
ContactOps.hpp.

Definition at line 65 of file ContactOps.hpp.

66 {
68 t_normal(i) = 0;
69 t_normal(1) = 1.;
70 return t_normal;
71}

◆ normal_traction()

template<typename T >
double ContactOps::normal_traction ( FTensor::Tensor1< T, SPACE_DIM > &  t_traction,
FTensor::Tensor1< double, SPACE_DIM > &  t_normal 
)
inline
Examples
ContactOps.hpp.

Definition at line 86 of file ContactOps.hpp.

87 {
88 return -t_traction(i) * t_normal(i);
89}

◆ sign()

double ContactOps::sign ( double  x)
inline
Examples
ContactOps.hpp.

Definition at line 91 of file ContactOps.hpp.

91 {
92 if (x == 0)
93 return 0;
94 else if (x > 0)
95 return 1;
96 else
97 return -1;
98};

◆ w()

double ContactOps::w ( const double  g,
const double  t 
)
inline
Examples
ContactOps.hpp.

Definition at line 100 of file ContactOps.hpp.

100{ return g - cn * t; }

Variable Documentation

◆ i

FTensor::Index<'i', SPACE_DIM> ContactOps::i

[Common data]

Examples
ContactOps.hpp.

Definition at line 27 of file ContactOps.hpp.

◆ j

FTensor::Index<'j', SPACE_DIM> ContactOps::j
Examples
ContactOps.hpp.

Definition at line 28 of file ContactOps.hpp.

◆ k

FTensor::Index<'k', SPACE_DIM> ContactOps::k
Examples
ContactOps.hpp.

Definition at line 29 of file ContactOps.hpp.

◆ l

FTensor::Index<'l', SPACE_DIM> ContactOps::l
Examples
ContactOps.hpp.

Definition at line 30 of file ContactOps.hpp.