Files
solver/OndselSolver/VelSolver.h
Aik-Siong Koh e0241dd6d2 New joints for ASMT and MBDyn
GearJoint, RackPinion, Screw, Planar and MBDynCase3orig.mbd
MBDyn Sperical Hinge
2023-11-29 09:40:30 -07:00

41 lines
1.2 KiB
C++

/***************************************************************************
* Copyright (c) 2023 Ondsel, Inc. *
* *
* This file is part of OndselSolver. *
* *
* See LICENSE file for details about copyright. *
***************************************************************************/
#pragma once
#include <memory>
#include "Solver.h"
#include "FullColumn.h"
#include "SparseMatrix.h"
namespace MbD {
class MatrixSolver;
class SystemSolver;
class VelSolver : public Solver
{
//system n x errorVector jacobian matrixSolver
public:
void basicSolveEquations();
void handleSingularMatrix() override;
void logSingularMatrixMessage();
std::shared_ptr<MatrixSolver> matrixSolverClassNew();
void solveEquations();
void setSystem(Solver* sys) override;
SystemSolver* system = nullptr;
int n = -1;
FColDsptr x, errorVector;
SpMatDsptr jacobian;
std::shared_ptr<MatrixSolver> matrixSolver;
};
}