1
/*************************************************************************
2
* Copyright (C) 2008 by Jerome Duriez *
3
* jerome.duriez@hmg.inpg.fr *
5
* This program is free software; it is licensed under the terms of the *
6
* GNU General Public License v2 or later. See file LICENSE for details. *
7
*************************************************************************/
11
#include<yade/pkg/dem/KinemCNSEngine.hpp>
14
YADE_PLUGIN((KinemCNSEngine));
17
void KinemCNSEngine::action()
19
if(LOG) cerr << "debut applyCondi !!" << endl;
20
KinemSimpleShearBox::getBoxes_Dt();
25
letMove(shearSpeed * dt,deltaH);
26
gamma+=shearSpeed * dt;
34
stopMovement(); // INDISPENSABLE !
36
cout << "Cisaillement arrete : gammaLim atteint a l'iteration "<< it_stop << endl;
39
else if (temoin==2 && (scene->iter==(it_stop+5000)) )
41
Omega::instance().saveSimulation(Key + "finCis" +boost::lexical_cast<string> (scene->iter ) + ".xml");
42
Omega::instance().pause();