本文整理汇总了C++中StructuralMaterial::giveRealStressVector方法的典型用法代码示例。如果您正苦于以下问题:C++ StructuralMaterial::giveRealStressVector方法的具体用法?C++ StructuralMaterial::giveRealStressVector怎么用?C++ StructuralMaterial::giveRealStressVector使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StructuralMaterial
的用法示例。
在下文中一共展示了StructuralMaterial::giveRealStressVector方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: giveRealStresses
void
StructuralCrossSection :: giveRealStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &strain, TimeStep *tStep)
{
MaterialMode mode = gp->giveMaterialMode();
if ( mode == _2dBeam ) {
this->giveGeneralizedStress_Beam2d(answer, gp, strain, tStep);
} else if ( mode == _3dBeam ) {
this->giveGeneralizedStress_Beam3d(answer, gp, strain, tStep);
} else if ( mode == _2dPlate ) {
this->giveGeneralizedStress_Plate(answer, gp, strain, tStep);
} else if ( mode == _3dShell ) {
this->giveGeneralizedStress_Shell(answer, gp, strain, tStep);
} else if ( mode == _3dMat ) {
this->giveRealStress_3d(answer, gp, strain, tStep);
} else if ( mode == _PlaneStrain ) {
this->giveRealStress_PlaneStrain(answer, gp, strain, tStep);
} else if ( mode == _PlaneStress ) {
this->giveRealStress_PlaneStress(answer, gp, strain, tStep);
} else if ( mode == _1dMat ) {
this->giveRealStress_1d(answer, gp, strain, tStep);
} else if ( mode == _Warping ) {
this->giveRealStress_Warping(answer, gp, strain, tStep);
} else {
// This should never happen ?
///@todo this part only works for simple cross section and will be removed soon when new interface elements are done /JB
StructuralMaterial *mat = dynamic_cast< StructuralMaterial * >( this->giveMaterial(gp) );
if ( mat->hasMaterialModeCapability( gp->giveMaterialMode() ) ) {
mat->giveRealStressVector(answer, gp, strain, tStep);
} else {
OOFEM_ERROR("unsupported mode");
}
}
}