本文整理汇总了C++中StructuralInterfaceMaterialStatus::letTempJumpBe方法的典型用法代码示例。如果您正苦于以下问题:C++ StructuralInterfaceMaterialStatus::letTempJumpBe方法的具体用法?C++ StructuralInterfaceMaterialStatus::letTempJumpBe怎么用?C++ StructuralInterfaceMaterialStatus::letTempJumpBe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StructuralInterfaceMaterialStatus
的用法示例。
在下文中一共展示了StructuralInterfaceMaterialStatus::letTempJumpBe方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: atan
void
CohesiveInterfaceMaterial :: giveEngTraction_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep)
{
StructuralInterfaceMaterialStatus *status = static_cast< StructuralInterfaceMaterialStatus * >( this->giveStatus(gp) );
answer.resize(3);
double x = jump.at(1) + transitionOpening;
if (stiffCoeffKn == 1.){//tension stiffness = compression stiffness
answer.at(1) = kn*x;
} else {
//composed function from two atan's to have smooth intersection between tension and compression
answer.at(1) = (M_PI/2. + atan(smoothMag*x))/M_PI*kn*stiffCoeffKn*x + (M_PI/2.-atan(smoothMag*x))/M_PI*kn*x;
}
// shear part of elastic stress-strain law
answer.at(2) = ks * jump.at(2);
answer.at(3) = ks * jump.at(3);
// update gp
status->letTempJumpBe(jump);
status->letTempTractionBe(answer);
}