10 TransientForm(
const VariableToSimulationGroup &variable_to_simulations,
const int time_steps,
const double dt,
const std::string &transient_integral_type,
const std::vector<int> &steps,
const std::shared_ptr<StaticForm> &obj) :
AdjointForm(variable_to_simulations),
time_steps_(time_steps),
dt_(dt),
steps_(steps),
obj_(obj),
transient_integral_type_(transient_integral_type) {}
16 void init(
const Eigen::VectorXd &
x)
override;
17 bool is_step_valid(
const Eigen::VectorXd &x0,
const Eigen::VectorXd &x1)
const override;
18 double max_step_size(
const Eigen::VectorXd &x0,
const Eigen::VectorXd &x1)
const override;
19 void line_search_begin(
const Eigen::VectorXd &x0,
const Eigen::VectorXd &x1)
override;
21 void post_step(
const polysolve::nonlinear::PostStepData &data)
override;
31 std::shared_ptr<StaticForm>
obj_;
41 ProxyTransientForm(
const VariableToSimulationGroup &variable_to_simulations,
const int time_steps,
const double dt,
const std::string &transient_integral_type,
const std::vector<int> &steps,
const std::shared_ptr<StaticForm> &obj) :
TransientForm(variable_to_simulations, time_steps, dt, transient_integral_type, steps, obj) {}
51 double eval(
const Eigen::VectorXd &
y)
const;
52 Eigen::VectorXd
eval_grad(
const Eigen::VectorXd &
y)
const;
main class that contains the polyfem solver and all its state
A collection of VariableToSimulation.