PolyFEM
Loading...
Searching...
No Matches
StaticBoundaryNLProblem.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace polyfem::solver
6{
8 {
9 public:
11 const int full_size,
12 const Eigen::VectorXd &boundary_values,
13 const std::vector<std::shared_ptr<polyfem::solver::Form>> &forms,
14 const std::vector<std::shared_ptr<AugmentedLagrangianForm>> &penalty_forms)
15 : polyfem::solver::NLProblem(full_size, forms, penalty_forms),
16 boundary_values_(boundary_values)
17 {
18 }
19
20 protected:
21 Eigen::MatrixXd constraint_values(const TVector &) const override { return boundary_values_; }
22
23 private:
24 const Eigen::MatrixXd boundary_values_;
25 };
26} // namespace polyfem::solver
std::vector< std::shared_ptr< Form > > & forms()
Eigen::MatrixXd constraint_values(const TVector &) const override
StaticBoundaryNLProblem(const int full_size, const Eigen::VectorXd &boundary_values, const std::vector< std::shared_ptr< polyfem::solver::Form > > &forms, const std::vector< std::shared_ptr< AugmentedLagrangianForm > > &penalty_forms)