本文整理汇总了C++中Species::setLoadingStiffness方法的典型用法代码示例。如果您正苦于以下问题:C++ Species::setLoadingStiffness方法的具体用法?C++ Species::setLoadingStiffness怎么用?C++ Species::setLoadingStiffness使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Species
的用法示例。
在下文中一共展示了Species::setLoadingStiffness方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setupInitialConditions
void setupInitialConditions()
{
relVelocity_ = 1e-1;
setSystemDimensions(3);
setParticleDimensions(3);
setGravity(Vec3D(0,0,0));
setTimeStep(5e-6 / 2.0);
Mdouble R = 1e-3;
setXMax( 2*R);
setYMax( R);
setZMax( R);
setXMin(-2*R);
setYMin(-R);
setZMin(-R);
species->setDensity(2000.0);
species->setLoadingStiffness(1e2);
species->setUnloadingStiffnessMax(1.5* species->getLoadingStiffness());
species->setCohesionStiffness(species->getLoadingStiffness());
species->setPenetrationDepthMax(0.05);
species->setAdhesionStiffness(1e2);
species->setAdhesionForceMax(1e-5*species->getAdhesionStiffness());
species->setSlidingStiffness(1.2e1);
species->setSlidingFrictionCoefficient(0.01);
particleHandler.clear();
BaseParticle P;
P.setRadius(R);
P.setPosition(Vec3D(-R-species->getInteractionDistance()/3,0,0));
P.setVelocity(Vec3D(relVelocity_/2,0,0));
particleHandler.copyAndAddObject(P);
P.setPosition(Vec3D(R+species->getInteractionDistance()/3,0,0));
P.setVelocity(Vec3D(-relVelocity_/2,0,0));
particleHandler.copyAndAddObject(P);
setName("AdhesiveForceUnitTest_ParticleParticleInteractionWithPlasticForces");
setTimeMax(getTimeStep()*250*5);
setFileType(FileType::ONE_FILE);
setSaveCount(1);
}