本文整理汇总了C++中GeometryType::Area方法的典型用法代码示例。如果您正苦于以下问题:C++ GeometryType::Area方法的具体用法?C++ GeometryType::Area怎么用?C++ GeometryType::Area使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GeometryType
的用法示例。
在下文中一共展示了GeometryType::Area方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: noalias
/**
* TO BE TESTED!!!
*/
void Hyperelastic2D::InitializeMaterial( const Properties& props,
const GeometryType& geom,
const Vector& ShapeFunctionsValues )
{
//mCurrentStress = ZeroVector(6);
mMU = props[MU]; // shear modulus
mK = props[BULK_MODULUS]; // bulk modulus
mE = props[YOUNG_MODULUS];
mNU = props[POISSON_RATIO];
mThickness = props[THICKNESS]; // to check
mA0= geom.Area(); //geom[A0]; // to check
mA= geom.Area(); // JUST A TEST, need to check if it will be updated later!!!
mAlpha=props[ALPHA]; // angle used for retraction
mRetractionTime=props[RETRACTION_TIME]; // Time to start retraction
/*mCtangent.resize(6,6,false);
noalias(mCtangent) = ZeroMatrix(6,6);*/
mMaterialParameters = props[MATERIAL_PARAMETERS];
mInSituStress = ZeroVector(6);
//CalculateElasticMatrix(mCtangent, props[YOUNG_MODULUS], props[POISSON_RATIO]);
// CalculateElasticMatrix(mCtangent, props[MATERIAL_PARAMETERS][0], props[MATERIAL_PARAMETERS][1]);
}
示例2: CalculateStress
void Hyperelastic2D::CalculateMaterialResponse( const Vector& StrainVector,
const Matrix& DeformationGradient,
Vector& StressVector,
Matrix& AlgorithmicTangent,
const ProcessInfo& CurrentProcessInfo,
const Properties& props,
const GeometryType& geom,
const Vector& ShapeFunctionsValues,
bool CalculateStresses,
int CalculateTangent,
bool SaveInternalVariables)
{
mA=geom.Area();//props[AREA]; // to check
mcurrentThickness = (mA0*mThickness)/mA; // to check
// RETRACTION ///////////////
if (CurrentProcessInfo[TIME] > mRetractionTime)
//if (CurrentProcessInfo[TIME] > 0.1) //0.01
{
mRetraction=mAlpha*CurrentProcessInfo[TIME]; // [DELTA_TIME]
//KRATOS_WATCH("retraction");
}
else
{
mRetraction=0.0;
}
//CalculateElasticMatrix(mCtangent, props[YOUNG_MODULUS], props[POISSON_RATIO]);
CalculateStress(StrainVector, StressVector);
CalculateConstitutiveMatrix(StrainVector, Ctang); // nelson
//CalculateConstitutiveMatrix(StrainVector, rResult); // nelson
// mA=geom.Area();//props[AREA]; // to check
//
// mcurrentThickness = (mA0*mThickness)/mA; // to check
// // RETRACTION ///////////////
// if (CurrentProcessInfo[TIME] > 0.0000001) //0.01
// {
// mRetraction=mAlpha*CurrentProcessInfo[TIME]; // [DELTA_TIME]
// //KRATOS_WATCH("retraction");
// }
// else
// {
// mRetraction=0.0;
// }
// //KRATOS_WATCH(CurrentProcessInfo[TIME]);
// //KRATOS_WATCH(mRetraction);
// // RETRACTION ///////////////
// //KRATOS_WATCH(mA0);
// //KRATOS_WATCH(mA);
// //KRATOS_WATCH(mThickness);
// //KRATOS_WATCH(mcurrentThickness);
}