92 lines
2.0 KiB
C++
92 lines
2.0 KiB
C++
/***************************************************************************
|
|
* Copyright (c) 2023 Ondsel, Inc. *
|
|
* *
|
|
* This file is part of OndselSolver. *
|
|
* *
|
|
* See LICENSE file for details about copyright. *
|
|
***************************************************************************/
|
|
|
|
#include "ConstVelConstraintIJ.h"
|
|
#include "DirectionCosineIecJec.h"
|
|
|
|
using namespace MbD;
|
|
|
|
ConstVelConstraintIJ::ConstVelConstraintIJ(EndFrmsptr frmi, EndFrmsptr frmj) : ConstraintIJ(frmi, frmj)
|
|
{
|
|
}
|
|
|
|
void ConstVelConstraintIJ::calcPostDynCorrectorIteration()
|
|
{
|
|
aG = aA01IeJe->aAijIeJe + aA10IeJe->aAijIeJe - aConstant;
|
|
}
|
|
|
|
void MbD::ConstVelConstraintIJ::initA01IeJe()
|
|
{
|
|
assert(false);
|
|
}
|
|
|
|
void MbD::ConstVelConstraintIJ::initA10IeJe()
|
|
{
|
|
assert(false);
|
|
}
|
|
|
|
void ConstVelConstraintIJ::initialize()
|
|
{
|
|
this->initA01IeJe();
|
|
this->initA10IeJe();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::initializeGlobally()
|
|
{
|
|
aA01IeJe->initializeGlobally();
|
|
aA10IeJe->initializeGlobally();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::initializeLocally()
|
|
{
|
|
aA01IeJe->initializeLocally();
|
|
aA10IeJe->initializeLocally();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::postInput()
|
|
{
|
|
aA01IeJe->postInput();
|
|
aA10IeJe->postInput();
|
|
Constraint::postInput();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::postPosICIteration()
|
|
{
|
|
aA01IeJe->postPosICIteration();
|
|
aA10IeJe->postPosICIteration();
|
|
Item::postPosICIteration();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::preAccIC()
|
|
{
|
|
aA01IeJe->preAccIC();
|
|
aA10IeJe->preAccIC();
|
|
Constraint::preAccIC();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::prePosIC()
|
|
{
|
|
aA01IeJe->prePosIC();
|
|
aA10IeJe->prePosIC();
|
|
Constraint::prePosIC();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::preVelIC()
|
|
{
|
|
aA01IeJe->preVelIC();
|
|
aA10IeJe->preVelIC();
|
|
Item::preVelIC();
|
|
}
|
|
|
|
void ConstVelConstraintIJ::simUpdateAll()
|
|
{
|
|
aA01IeJe->simUpdateAll();
|
|
aA10IeJe->simUpdateAll();
|
|
Item::simUpdateAll();
|
|
}
|