PolyFEM
Loading...
Searching...
No Matches
StaticBoundaryNLProblem.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
polyfem/solver/NLProblem.hpp
>
4
5
namespace
polyfem::solver
6
{
7
class
StaticBoundaryNLProblem
:
public
NLProblem
8
{
9
public
:
10
StaticBoundaryNLProblem
(
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
NLProblem.hpp
polyfem::solver::FullNLProblem::forms
std::vector< std::shared_ptr< Form > > & forms()
Definition
FullNLProblem.hpp:39
polyfem::solver::NLProblem
Definition
NLProblem.hpp:10
polyfem::solver::NLProblem::full_size
int full_size() const
Definition
NLProblem.hpp:50
polyfem::solver::StaticBoundaryNLProblem
Definition
StaticBoundaryNLProblem.hpp:8
polyfem::solver::StaticBoundaryNLProblem::boundary_values_
const Eigen::MatrixXd boundary_values_
Definition
StaticBoundaryNLProblem.hpp:24
polyfem::solver::StaticBoundaryNLProblem::constraint_values
Eigen::MatrixXd constraint_values(const TVector &) const override
Definition
StaticBoundaryNLProblem.hpp:21
polyfem::solver::StaticBoundaryNLProblem::StaticBoundaryNLProblem
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)
Definition
StaticBoundaryNLProblem.hpp:10
polyfem::solver
Definition
OptState.hpp:16
polyfem
Definition
AMIPSEnergy.cpp:6
src
polyfem
solver
problems
StaticBoundaryNLProblem.hpp
Generated by
1.9.8