本文整理汇总了C++中StructuralMaterial::giveFirstPKStressVector_PlaneStress方法的典型用法代码示例。如果您正苦于以下问题:C++ StructuralMaterial::giveFirstPKStressVector_PlaneStress方法的具体用法?C++ StructuralMaterial::giveFirstPKStressVector_PlaneStress怎么用?C++ StructuralMaterial::giveFirstPKStressVector_PlaneStress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StructuralMaterial
的用法示例。
在下文中一共展示了StructuralMaterial::giveFirstPKStressVector_PlaneStress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: giveFirstPKStresses
void
SimpleCrossSection :: giveFirstPKStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedvF, TimeStep *tStep)
{
// This function returns the first Piola-Kirchoff stress in vector format
// corresponding to a given deformation gradient according to the stress-deformation
// mode stored in the each gp.
MaterialMode mode = gp->giveMaterialMode();
StructuralMaterial *mat = dynamic_cast< StructuralMaterial * >( this->giveMaterial(gp) );
if ( mode == _3dMat ) {
mat->giveFirstPKStressVector_3d(answer, gp, reducedvF, tStep);
} else if ( mode == _PlaneStrain ) {
mat->giveFirstPKStressVector_PlaneStrain(answer, gp, reducedvF, tStep);
} else if ( mode == _PlaneStress ) {
mat->giveFirstPKStressVector_PlaneStress(answer, gp, reducedvF, tStep);
} else if ( mode == _1dMat ) {
mat->giveFirstPKStressVector_1d(answer, gp, reducedvF, tStep);
} else {
OOFEM_ERROR("unknown mode (%s)", __MaterialModeToString(mode) );
}
}