2023-11-14 changes

This commit is contained in:
Aik-Siong Koh
2023-11-14 08:41:30 -07:00
parent f026153c38
commit ff4f8c8fbb
2 changed files with 9 additions and 5 deletions

View File

@@ -25,11 +25,14 @@ void MbD::ASMTPointInPlaneJoint::parseASMT(std::vector<std::string>& lines)
void MbD::ASMTPointInPlaneJoint::readOffset(std::vector<std::string>& lines)
{
assert(lines[0].find("offset") != std::string::npos);
lines.erase(lines.begin());
offset = readDouble(lines[0]);
lines.erase(lines.begin());
if (lines[0].find("offset") == std::string::npos) {
offset = 0.0;
}
else {
lines.erase(lines.begin());
offset = readDouble(lines[0]);
lines.erase(lines.begin());
}
}
void MbD::ASMTPointInPlaneJoint::createMbD(std::shared_ptr<System> mbdSys, std::shared_ptr<Units> mbdUnits)

View File

@@ -26,6 +26,7 @@ void sharedptrTest();
int main()
{
ASMTAssembly::readWriteFile("failingsolve.asmt");
ASMTAssembly::runFile("cirpendu2.asmt"); //Under constrained. Testing ICKine.
ASMTAssembly::runFile("quasikine.asmt"); //Under constrained. Testing ICKine.
ASMTAssembly::readWriteFile("piston.asmt");