MbDCode repo renamed to OndselSolver. Several *.asmt files working.

This commit is contained in:
Aik-Siong Koh
2023-08-07 08:21:33 -06:00
parent 6ef4789eca
commit e58446b9e2
287 changed files with 13387 additions and 778 deletions

View File

@@ -18,6 +18,8 @@
#include "AccICNewtonRaphson.h"
#include "VelKineSolver.h"
#include "AccKineNewtonRaphson.h"
#include "VelICKineSolver.h"
#include "AccICKineNewtonRaphson.h"
using namespace MbD;
@@ -195,18 +197,16 @@ void SystemSolver::runPosICKine()
void SystemSolver::runVelICKine()
{
assert(false);
//icTypeSolver = CREATE<VelICKineSolver>::With();
//icTypeSolver->setSystem(this);
//icTypeSolver->run();
icTypeSolver = CREATE<VelICKineSolver>::With();
icTypeSolver->setSystem(this);
icTypeSolver->run();
}
void SystemSolver::runAccICKine()
{
assert(false);
//icTypeSolver = CREATE<AccICKineNewtonRaphson>::With();
//icTypeSolver->setSystem(this);
//icTypeSolver->run();
icTypeSolver = CREATE<AccICKineNewtonRaphson>::With();
icTypeSolver->setSystem(this);
icTypeSolver->run();
}
void SystemSolver::partsJointsMotionsDo(const std::function<void(std::shared_ptr<Item>)>& f)
@@ -224,9 +224,9 @@ std::shared_ptr<std::vector<std::shared_ptr<Part>>> SystemSolver::parts()
return system->parts;
}
std::shared_ptr<std::vector<std::shared_ptr<Constraint>>> SystemSolver::essentialConstraints2()
std::shared_ptr<std::vector<std::shared_ptr<Constraint>>> SystemSolver::essentialConstraints()
{
return system->essentialConstraints2();
return system->essentialConstraints();
}
std::shared_ptr<std::vector<std::shared_ptr<Constraint>>> SystemSolver::displacementConstraints()