-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b9ba5a
commit d609d3e
Showing
116 changed files
with
8,495 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
#include <fstream> | ||
|
||
#include "ASMTAngleJoint.h" | ||
#include "AngleJoint.h" | ||
|
||
using namespace MbD; | ||
|
||
std::shared_ptr<Joint> MbD::ASMTAngleJoint::mbdClassNew() | ||
{ | ||
return CREATE<AngleJoint>::With(); | ||
} | ||
|
||
void MbD::ASMTAngleJoint::parseASMT(std::vector<std::string>& lines) | ||
{ | ||
ASMTJoint::parseASMT(lines); | ||
readTheIzJz(lines); | ||
} | ||
|
||
void MbD::ASMTAngleJoint::readTheIzJz(std::vector<std::string>& lines) | ||
{ | ||
if (lines[0].find("theIzJz") == std::string::npos) { | ||
theIzJz = 0.0; | ||
} | ||
else { | ||
lines.erase(lines.begin()); | ||
theIzJz = readDouble(lines[0]); | ||
lines.erase(lines.begin()); | ||
} | ||
} | ||
|
||
void MbD::ASMTAngleJoint::createMbD(std::shared_ptr<System> mbdSys, std::shared_ptr<Units> mbdUnits) | ||
{ | ||
ASMTJoint::createMbD(mbdSys, mbdUnits); | ||
auto angleJoint = std::static_pointer_cast<AngleJoint>(mbdObject); | ||
angleJoint->theIzJz = theIzJz; | ||
} | ||
|
||
void MbD::ASMTAngleJoint::storeOnLevel(std::ofstream& os, int level) | ||
{ | ||
ASMTJoint::storeOnLevel(os, level); | ||
storeOnLevelString(os, level + 1, "theIzJz"); | ||
storeOnLevelDouble(os, level + 2, theIzJz); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "ASMTJoint.h" | ||
|
||
namespace MbD { | ||
class EXPORT ASMTAngleJoint : public ASMTJoint | ||
{ | ||
// | ||
public: | ||
std::shared_ptr<Joint> mbdClassNew() override; | ||
void parseASMT(std::vector<std::string>& lines) override; | ||
void readTheIzJz(std::vector<std::string>& lines); | ||
void createMbD(std::shared_ptr<System> mbdSys, std::shared_ptr<Units> mbdUnits) override; | ||
void storeOnLevel(std::ofstream& os, int level) override; | ||
|
||
double theIzJz = 0.0; | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "ASMTAtPointJoint.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "ASMTJoint.h" | ||
|
||
namespace MbD { | ||
class EXPORT ASMTAtPointJoint : public ASMTJoint | ||
{ | ||
// | ||
public: | ||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
#include <fstream> | ||
|
||
#include "ASMTCompoundJoint.h" | ||
#include "CompoundJoint.h" | ||
|
||
using namespace MbD; | ||
|
||
void MbD::ASMTCompoundJoint::parseASMT(std::vector<std::string>& lines) | ||
{ | ||
ASMTJoint::parseASMT(lines); | ||
readDistanceIJ(lines); | ||
} | ||
|
||
void MbD::ASMTCompoundJoint::readDistanceIJ(std::vector<std::string>& lines) | ||
{ | ||
if (lines[0].find("distanceIJ") == std::string::npos) { | ||
distanceIJ = 0.0; | ||
} | ||
else { | ||
lines.erase(lines.begin()); | ||
distanceIJ = readDouble(lines[0]); | ||
lines.erase(lines.begin()); | ||
} | ||
} | ||
|
||
void MbD::ASMTCompoundJoint::createMbD(std::shared_ptr<System> mbdSys, std::shared_ptr<Units> mbdUnits) | ||
{ | ||
ASMTJoint::createMbD(mbdSys, mbdUnits); | ||
auto compoundJoint = std::static_pointer_cast<CompoundJoint>(mbdObject); | ||
compoundJoint->distanceIJ = distanceIJ; | ||
} | ||
|
||
void MbD::ASMTCompoundJoint::storeOnLevel(std::ofstream& os, int level) | ||
{ | ||
ASMTJoint::storeOnLevel(os, level); | ||
storeOnLevelString(os, level + 1, "distanceIJ"); | ||
storeOnLevelDouble(os, level + 2, distanceIJ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "ASMTJoint.h" | ||
|
||
namespace MbD { | ||
class EXPORT ASMTCompoundJoint : public ASMTJoint | ||
{ | ||
// | ||
public: | ||
void parseASMT(std::vector<std::string>& lines) override; | ||
void readDistanceIJ(std::vector<std::string>& lines); | ||
void createMbD(std::shared_ptr<System> mbdSys, std::shared_ptr<Units> mbdUnits) override; | ||
void storeOnLevel(std::ofstream& os, int level) override; | ||
|
||
double distanceIJ = 0.0; | ||
|
||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
#include <fstream> | ||
|
||
#include "ASMTConstantVelocityJoint.h" | ||
#include "ConstantVelocityJoint.h" | ||
|
||
using namespace MbD; | ||
|
||
std::shared_ptr<Joint> MbD::ASMTConstantVelocityJoint::mbdClassNew() | ||
{ | ||
return CREATE<ConstantVelocityJoint>::With(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "ASMTAtPointJoint.h" | ||
|
||
namespace MbD { | ||
class EXPORT ASMTConstantVelocityJoint : public ASMTAtPointJoint | ||
{ | ||
// | ||
public: | ||
std::shared_ptr<Joint> mbdClassNew() override; | ||
|
||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2023 Ondsel, Inc. * | ||
* * | ||
* This file is part of OndselSolver. * | ||
* * | ||
* See LICENSE file for details about copyright. * | ||
***************************************************************************/ | ||
#include <fstream> | ||
|
||
#include "ASMTCylSphJoint.h" | ||
#include "CylSphJoint.h" | ||
|
||
using namespace MbD; | ||
|
||
std::shared_ptr<Joint> MbD::ASMTCylSphJoint::mbdClassNew() | ||
{ | ||
return CREATE<CylSphJoint>::With(); | ||
} |
Oops, something went wrong.