new branch: working

This commit is contained in:
Aik-Siong Koh
2023-05-09 12:50:36 -06:00
parent d5ac041906
commit 9ddca433a1
67 changed files with 865 additions and 190 deletions

View File

@@ -3,6 +3,7 @@
#include "Solver.h"
#include "System.h"
#include "Constraint.h"
#include "NewtonRaphson.h"
namespace MbD {
@@ -15,23 +16,34 @@ namespace MbD {
public:
SystemSolver(System* x) : system(x) {
}
void initializeLocally();
void initializeGlobally();
void initializeLocally() override;
void initializeGlobally() override;
void runAllIC();
void runBasicKinematic();
std::shared_ptr<NewtonRaphson> icTypeSolver;
System* system;
std::unique_ptr<std::vector<std::vector<std::shared_ptr<Constraint>>>> setsOfRedundantConstraints;
double tstart = 0;
double tend = 10;
double tend = 25;
double toutFirst = 0.0;
double errorTolPosKine = 1.0e-6;
int iterMaxPosKine = 100;
double errorTolAccKine = 1.0e-6;
int iterMaxPosKine = 25;
int iterMaxAccKine = 25;
double hmin = 1.0e-9;
double hmax = 1.0;
double hout = 1.0e-1;
double direction = 1;
double corAbsTol = 0;
double corRelTol = 0;
double intAbsTol = 0;
double intRelTol = 0;
int iterMaxDyn = 0;
int orderMax = 0;
double translationLimit = 0;
double rotationLimit = 0;
};
}