60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
#include "AtPointConstraintIJ.h"
|
|
#include "DispCompIecJecO.h"
|
|
#include "CREATE.h"
|
|
|
|
using namespace MbD;
|
|
|
|
AtPointConstraintIJ::AtPointConstraintIJ(EndFrmcptr frmi, EndFrmcptr frmj, int axisi) :
|
|
ConstraintIJ(frmi, frmj), axis(axisi)
|
|
{
|
|
}
|
|
|
|
void AtPointConstraintIJ::initialize()
|
|
{
|
|
ConstraintIJ::initialize();
|
|
initriIeJeO();
|
|
}
|
|
|
|
void MbD::AtPointConstraintIJ::initializeLocally()
|
|
{
|
|
riIeJeO->initializeLocally();
|
|
}
|
|
|
|
void MbD::AtPointConstraintIJ::initializeGlobally()
|
|
{
|
|
riIeJeO->initializeGlobally();
|
|
}
|
|
|
|
void AtPointConstraintIJ::initriIeJeO()
|
|
{
|
|
riIeJeO = CREATE<DispCompIecJecO>::With(frmI, frmJ, axis);
|
|
}
|
|
|
|
void MbD::AtPointConstraintIJ::postInput()
|
|
{
|
|
riIeJeO->postInput();
|
|
Constraint::postInput();
|
|
}
|
|
|
|
void MbD::AtPointConstraintIJ::calcPostDynCorrectorIteration()
|
|
{
|
|
aG = riIeJeO->riIeJeO - aConstant;
|
|
}
|
|
|
|
void MbD::AtPointConstraintIJ::prePosIC()
|
|
{
|
|
riIeJeO->prePosIC();
|
|
Constraint::prePosIC();
|
|
}
|
|
|
|
MbD::ConstraintType MbD::AtPointConstraintIJ::type()
|
|
{
|
|
return MbD::displacement;
|
|
}
|
|
|
|
void MbD::AtPointConstraintIJ::postPosICIteration()
|
|
{
|
|
riIeJeO->postPosICIteration();
|
|
Item::postPosICIteration();
|
|
}
|