ASMT output, MBDyn input and output done.

This commit is contained in:
Aik-Siong Koh
2023-11-06 18:00:24 -07:00
parent 34858977b1
commit 678d03db1f
96 changed files with 8806 additions and 4043 deletions

View File

@@ -0,0 +1,25 @@
/***************************************************************************
* Copyright (c) 2023 Ondsel, Inc. *
* *
* This file is part of OndselSolver. *
* *
* See LICENSE file for details about copyright. *
***************************************************************************/
#include <algorithm>
#include "StepFunction.h"
#include "Constant.h"
using namespace MbD;
MbD::StepFunction::StepFunction(Symsptr var, std::shared_ptr<std::vector<double>> consts, std::shared_ptr<std::vector<double>> trans)
{
xx = var;
std::transform(consts->begin(), consts->end(), functions->begin(),
[&](auto& constant) { return sptrConstant(constant); }
);
std::transform(trans->begin(), trans->end(), transitions->begin(),
[&](auto& constant) { return sptrConstant(constant); }
);
}