runPosIC, initializeGlobally
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user