NuTo
Numerics Tool
Solve.h
Go to the documentation of this file.
1 #pragma once
2 #include <Eigen/Core>
6 
7 namespace NuTo
8 {
9 
10 DofVector<double> Solve(const DofMatrixSparse<double>& K, const DofVector<double>& f, Constraint::Constraints& bcs,
11  std::vector<DofType> dofs, std::string solver = "EigenSparseLU");
12 
13 DofVector<double> SolveTrialState(const DofMatrixSparse<double>& K, const DofVector<double>& f, double oldTime,
14  double newTime, Constraint::Constraints& bcs, std::vector<DofType> dofs,
15  std::string solver = "EigenSparseLU");
16 
18 {
19 public:
20  ConstrainedSystemSolver(Constraint::Constraints& bcs, std::vector<DofType> dofs, std::string solver);
23  double newTime) const;
24 
25 private:
27  std::vector<DofType> mDofs;
28  std::string mSolver;
29 };
30 
31 
32 } // namespace NuTo
Definition: Solve.h:17
DofVector< double > SolveTrialState(const DofMatrixSparse< double > &A, const DofVector< double > &b, double oldTime, double newTime) const
Definition: Solve.cpp:96
solver
Definition: SparseDirectSolverMKLDSS.py:51
stores constraint equations, separated by their dof type
Definition: Constraints.h:47
DofVector< double > Solve(const DofMatrixSparse< double > &K, const DofVector< double > &f, Constraint::Constraints &bcs, std::vector< DofType > dofs, std::string solver="EigenSparseLU")
Definition: Solve.cpp:8
dof container that is also capable of performing calculations.
Definition: DofMatrixContainer.h:13
Definition: Exception.h:6
ConstrainedSystemSolver(Constraint::Constraints &bcs, std::vector< DofType > dofs, std::string solver)
Definition: Solve.cpp:83
void Constraints(benchmark::State &state)
Definition: ConstraintsBenchmark.cpp:12
DofVector< double > Solve(const DofMatrixSparse< double > &A, const DofVector< double > &b) const
Definition: Solve.cpp:91
int A
Definition: TimeIntegrationResultForce.py:7
DofVector< double > SolveTrialState(const DofMatrixSparse< double > &K, const DofVector< double > &f, double oldTime, double newTime, Constraint::Constraints &bcs, std::vector< DofType > dofs, std::string solver="EigenSparseLU")
Definition: Solve.cpp:36