systemSolver->runBasicKinematic();

This commit is contained in:
Aik-Siong Koh
2023-06-11 07:15:20 -06:00
parent d848450907
commit 3b08cd72df
182 changed files with 2789 additions and 535 deletions

View File

@@ -1,6 +1,8 @@
#include <windows.h>
#include <assert.h>
#include <debugapi.h>
#include <sstream>
#include "Item.h"
#include "System.h"
@@ -45,7 +47,11 @@ void MbD::Item::calcPostDynCorrectorIteration()
{
}
void MbD::Item::removeRedundantConstraints(std::shared_ptr<std::vector<size_t>> redunEqnNos)
void MbD::Item::removeRedundantConstraints(std::shared_ptr<std::vector<int>> redunEqnNos)
{
}
void MbD::Item::reactivateRedundantConstraints()
{
}
@@ -61,6 +67,10 @@ void MbD::Item::fillEssenConstraints(std::shared_ptr<std::vector<std::shared_ptr
{
}
void MbD::Item::fillRedundantConstraints(std::shared_ptr<std::vector<std::shared_ptr<Constraint>>> redunConstraints)
{
}
void MbD::Item::fillqsu(FColDsptr col)
{
}
@@ -77,11 +87,47 @@ void MbD::Item::setqsulam(FColDsptr col)
{
}
void MbD::Item::outputStates()
{
std::stringstream ss;
ss << classname() << " " << name;
auto str = ss.str();
this->logString(str);
}
void MbD::Item::preDyn()
{
}
std::string MbD::Item::classname()
{
std::string str = typeid(*this).name();
auto answer = str.substr(11, str.size() - 11);
return answer;
}
void MbD::Item::preDynFirstStep()
{
//"Called before the start of the first step in the dynamic solution."
this->preDynStep();
}
void MbD::Item::preDynStep()
{
}
double MbD::Item::suggestSmallerOrAcceptDynFirstStepSize(double hnew)
{
//"Default is return hnew."
//"Best to do nothing so as not to disrupt the starting algorithm."
return hnew;
}
void MbD::Item::constraintsReport()
{
}
void MbD::Item::setqsu(std::shared_ptr<FullColumn<double>> qsuOld)
void MbD::Item::setqsu(FColDsptr qsuOld)
{
}
@@ -89,6 +135,11 @@ void MbD::Item::useEquationNumbers()
{
}
void MbD::Item::logString(std::string& str)
{
System::getInstance().logString(str);
}
void MbD::Item::prePosIC()
{
//"Called once before solving for position initial conditions."
@@ -110,6 +161,10 @@ void MbD::Item::prePostICRestart()
{
}
void MbD::Item::postPosIC()
{
}
void MbD::Item::postPosICIteration()
{
this->calcPostDynCorrectorIteration();