piston.asmt file is running correctly

This commit is contained in:
Aik-Siong Koh
2023-07-30 12:08:39 -06:00
parent 225966dced
commit 6ef4789eca
142 changed files with 3177 additions and 1144 deletions

View File

@@ -12,11 +12,9 @@
using namespace MbD;
System::System() {
initialize();
}
System::System(const char* str) : Item(str) {
initialize();
}
System* MbD::System::root()
@@ -52,31 +50,29 @@ void MbD::System::addMotion(std::shared_ptr<PrescribedMotion> motion)
jointsMotions->push_back(motion);
}
void System::runKINEMATIC()
void MbD::System::addForceTorque(std::shared_ptr<ForceTorqueItem> forTor)
{
externalSystem->preMbDrun();
forTor->owner = this;
forcesTorques->push_back(forTor);
}
void System::runKINEMATIC(std::shared_ptr<System> self)
{
externalSystem->preMbDrun(self);
while (true)
{
initializeLocally();
initializeGlobally();
if (!hasChanged) break;
}
partsJointsMotionsForcesTorquesDo([&](std::shared_ptr<Item> item) { item->postInput(); });
outputInput();
partsJointsMotionsForcesTorquesDo([](std::shared_ptr<Item> item) { item->postInput(); });
externalSystem->outputFor(INPUT);
systemSolver->runAllIC();
externalSystem->outputFor(INITIALCONDITION);
systemSolver->runBasicKinematic();
externalSystem->postMbDrun();
}
void System::outputInput()
{
}
void System::outputTimeSeries()
{
}
void System::initializeLocally()
{
hasChanged = false;