v0.13.1
Classes | Functions | Variables
ContactOps Namespace Reference

Classes

struct  CommonData
 [Common data] More...
 
struct  Monitor
 [Postprocessing] More...
 
struct  OpConstrainBoundaryLhs_dTraction
 
struct  OpConstrainBoundaryLhs_dU
 
struct  OpConstrainBoundaryRhs
 
struct  OpPostProcContact
 
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 
)
Examples
ContactOps.hpp.

Definition at line 114 of file ContactOps.hpp.

114 {
115 return (w(g - g0, t) + std::abs(w(g - g0, t))) / 2 + g0;
116};
double w(const double g, const double t)
Definition: ContactOps.hpp:112
constexpr double t
plate stiffness
Definition: plate.cpp:76
constexpr double g

◆ diff_constrains_dgap()

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

Definition at line 122 of file ContactOps.hpp.

122 {
123 return (1 + sign(w(g - g0, t))) / 2;
124}
double sign(double x)
Definition: ContactOps.hpp:103

◆ diff_constrains_dtraction()

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

Definition at line 118 of file ContactOps.hpp.

118 {
119 return -cn * (1 + sign(w(g - g0, t))) / 2;
120}
double cn
Definition: plastic.cpp:111

◆ gap()

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

Definition at line 92 of file ContactOps.hpp.

93 {
94 return t_disp(i) * t_normal(i);
95}
FTensor::Index< 'i', SPACE_DIM > i
[Common data]
Definition: ContactOps.hpp:39

◆ gap0()

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

Definition at line 86 of file ContactOps.hpp.

87 {
88 return (-0.5 - t_coords(1)) * t_normal(1);
89}

◆ 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 
)
Examples
ContactOps.hpp, and prism_elements_from_surface.cpp.

Definition at line 77 of file ContactOps.hpp.

78 {
80 t_normal(i) = 0;
81 t_normal(1) = 1.;
82 return t_normal;
83}

◆ normal_traction()

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

Definition at line 98 of file ContactOps.hpp.

99 {
100 return -t_traction(i) * t_normal(i);
101}

◆ sign()

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

Definition at line 103 of file ContactOps.hpp.

103 {
104 if (x == 0)
105 return 0;
106 else if (x > 0)
107 return 1;
108 else
109 return -1;
110};

◆ w()

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

Definition at line 112 of file ContactOps.hpp.

112{ return g - cn * t; }

Variable Documentation

◆ i

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

[Common data]

Examples
ContactOps.hpp.

Definition at line 39 of file ContactOps.hpp.

◆ j

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

Definition at line 40 of file ContactOps.hpp.

◆ k

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

Definition at line 41 of file ContactOps.hpp.

◆ l

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

Definition at line 42 of file ContactOps.hpp.