runPosIC, initializeGlobally

This commit is contained in:
Aik-Siong Koh
2023-05-27 21:43:09 -06:00
parent 6a577c052c
commit 9ddbdca742
139 changed files with 2401 additions and 431 deletions

View File

@@ -1,15 +1,9 @@
#include "AtPointConstraintIJ.h"
#include "DispCompIecJecO.h"
#include "CREATE.h"
using namespace MbD;
std::shared_ptr<AtPointConstraintIJ> MbD::AtPointConstraintIJ::Create(EndFrmcptr frmi, EndFrmcptr frmj, int axisi)
{
auto item = std::make_shared<AtPointConstraintIJ>(frmi, frmj, axisi);
item->initialize();
return item;
}
AtPointConstraintIJ::AtPointConstraintIJ(EndFrmcptr frmi, EndFrmcptr frmj, int axisi) :
ConstraintIJ(frmi, frmj), axis(axisi)
{
@@ -17,6 +11,7 @@ AtPointConstraintIJ::AtPointConstraintIJ(EndFrmcptr frmi, EndFrmcptr frmj, int a
void AtPointConstraintIJ::initialize()
{
initriIeJeO();
}
void MbD::AtPointConstraintIJ::initializeLocally()
@@ -31,7 +26,7 @@ void MbD::AtPointConstraintIJ::initializeGlobally()
void AtPointConstraintIJ::initriIeJeO()
{
riIeJeO = std::make_shared<DispCompIecJecO>();
riIeJeO = CREATE<DispCompIecJecO>::With(frmI, frmJ, axis);
}
void MbD::AtPointConstraintIJ::postInput()
@@ -40,4 +35,11 @@ void MbD::AtPointConstraintIJ::postInput()
void MbD::AtPointConstraintIJ::calcPostDynCorrectorIteration()
{
aG = riIeJeO->riIeJeO - aConstant;
}
void MbD::AtPointConstraintIJ::prePosIC()
{
riIeJeO->prePosIC();
Constraint::prePosIC();
}