PolyFEM
Loading...
Searching...
No Matches
MacroStrainALForm.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Form.hpp
"
4
5
namespace
polyfem::assembler
{
6
class
MacroStrainValue;
7
}
8
9
namespace
polyfem::solver
10
{
11
class
MacroStrainALForm
:
public
Form
12
{
13
public
:
14
MacroStrainALForm
(
const
assembler::MacroStrainValue
¯o_strain_constraint);
15
16
std::string
name
()
const override
{
return
"strain-penalty"
; }
17
18
void
update_quantities
(
const
double
t,
const
Eigen::VectorXd &
x
)
override
;
19
double
compute_error
(
const
Eigen::VectorXd &
x
)
const
;
20
21
protected
:
25
double
value_unweighted
(
const
Eigen::VectorXd &
x
)
const override
;
26
30
void
first_derivative_unweighted
(
const
Eigen::VectorXd &
x
, Eigen::VectorXd &gradv)
const override
;
31
35
void
second_derivative_unweighted
(
const
Eigen::VectorXd &
x
,
StiffnessMatrix
&hessian)
const override
;
36
37
private
:
38
Eigen::VectorXd
values
;
39
const
assembler::MacroStrainValue
&
macro_strain_constraint_
;
40
};
41
}
Form.hpp
x
int x
Definition
SplineBasis3d.cpp:55
polyfem::assembler::MacroStrainValue
Definition
MacroStrain.hpp:12
polyfem::solver::Form
Definition
Form.hpp:11
polyfem::solver::MacroStrainALForm
Definition
MacroStrainALForm.hpp:12
polyfem::solver::MacroStrainALForm::name
std::string name() const override
Definition
MacroStrainALForm.hpp:16
polyfem::solver::MacroStrainALForm::values
Eigen::VectorXd values
Definition
MacroStrainALForm.hpp:38
polyfem::solver::MacroStrainALForm::macro_strain_constraint_
const assembler::MacroStrainValue & macro_strain_constraint_
Definition
MacroStrainALForm.hpp:39
polyfem::solver::MacroStrainALForm::second_derivative_unweighted
void second_derivative_unweighted(const Eigen::VectorXd &x, StiffnessMatrix &hessian) const override
Compute the second derivative of the value wrt x.
Definition
MacroStrainALForm.cpp:24
polyfem::solver::MacroStrainALForm::compute_error
double compute_error(const Eigen::VectorXd &x) const
Definition
MacroStrainALForm.cpp:39
polyfem::solver::MacroStrainALForm::first_derivative_unweighted
void first_derivative_unweighted(const Eigen::VectorXd &x, Eigen::VectorXd &gradv) const override
Compute the first derivative of the value wrt x.
Definition
MacroStrainALForm.cpp:17
polyfem::solver::MacroStrainALForm::update_quantities
void update_quantities(const double t, const Eigen::VectorXd &x) override
Update time-dependent fields.
Definition
MacroStrainALForm.cpp:33
polyfem::solver::MacroStrainALForm::value_unweighted
double value_unweighted(const Eigen::VectorXd &x) const override
Compute the contact barrier potential value.
Definition
MacroStrainALForm.cpp:11
polyfem::assembler
Used for test only.
Definition
AMIPSEnergy.cpp:6
polyfem::solver
Definition
OptState.hpp:16
polyfem::StiffnessMatrix
Eigen::SparseMatrix< double, Eigen::ColMajor > StiffnessMatrix
Definition
Types.hpp:22
src
polyfem
solver
forms
MacroStrainALForm.hpp
Generated by
1.9.8