9 class MacroStrainValue;
18 using typename FullNLProblem::Scalar;
19 using typename FullNLProblem::THessian;
20 using typename FullNLProblem::TVector;
23 const std::vector<int> &boundary_nodes,
24 const std::vector<mesh::LocalBoundary> &local_boundary,
25 const int n_boundary_samples,
29 const double t,
const std::vector<std::shared_ptr<Form>> &
forms,
30 const bool solve_symmetric_macro_strain);
33 double value(
const TVector &
x)
override;
34 void gradient(
const TVector &
x, TVector &gradv)
override;
41 TVector
full_to_reduced(
const TVector &full,
const Eigen::MatrixXd &disp_grad)
const;
56 void init(
const TVector &x0)
override;
57 bool is_step_valid(
const TVector &x0,
const TVector &x1)
override;
59 double max_step_size(
const TVector &x0,
const TVector &x1)
override;
62 void post_step(
const polysolve::nonlinear::PostStepData &data)
override;
main class that contains the polyfem solver and all its state
std::vector< std::shared_ptr< Form > > & forms()
Eigen::MatrixXd reduced_to_disp_grad(const TVector &reduced, bool homogeneous=false) const
Eigen::VectorXi fixed_mask_
void gradient(const TVector &x, TVector &gradv) override
void init(const TVector &x0) override
void post_step(const polysolve::nonlinear::PostStepData &data) override
Eigen::MatrixXd macro_mid_to_reduced_
int macro_reduced_size() const
void set_fixed_entry(const Eigen::VectorXi &fixed_entry)
TVector macro_full_to_reduced(const TVector &full) const
bool is_step_valid(const TVector &x0, const TVector &x1) override
Eigen::MatrixXd macro_mid_to_full_
const assembler::MacroStrainValue & macro_strain_constraint_
void line_search_begin(const TVector &x0, const TVector &x1) override
void update_quantities(const double t, const TVector &x) override
Eigen::MatrixXd macro_full_to_mid_
TVector extended_to_reduced_grad(const TVector &extended) const
void hessian(const TVector &x, THessian &hessian) override
void init_lagging(const TVector &x) override
TVector reduced_to_extended(const TVector &reduced, bool homogeneous=false) const
TVector extended_to_reduced(const TVector &extended) const
virtual ~NLHomoProblem()=default
bool has_symmetry_constraint() const
std::vector< std::shared_ptr< Form > > homo_forms
Eigen::MatrixXd constraint_grad() const
void full_hessian_to_reduced_hessian(const THessian &full, THessian &reduced) const override
TVector reduced_to_full_shape_derivative(const Eigen::MatrixXd &disp_grad, const TVector &adjoint_full) const
TVector reduced_to_full(const TVector &reduced) const override
Eigen::MatrixXd macro_full_to_reduced_grad(const Eigen::MatrixXd &full) const
double value(const TVector &x) override
TVector full_to_reduced(const TVector &full, const Eigen::MatrixXd &disp_grad) const
TVector full_to_reduced_grad(const TVector &full) const override
const bool only_symmetric
void solution_changed(const TVector &new_x) override
Eigen::MatrixXd boundary_values() const override
double max_step_size(const TVector &x0, const TVector &x1) override
void extended_hessian_to_reduced_hessian(const THessian &extended, THessian &reduced) const
bool is_step_collision_free(const TVector &x0, const TVector &x1) override
void add_form(const std::shared_ptr< Form > &form)
void update_lagging(const TVector &x, const int iter_num) override
TVector macro_reduced_to_full(const TVector &reduced, bool homogeneous=false) const