PolyFEM
|
#include <VariableToSimulation.hpp>
Public Member Functions | |
virtual | ~DirichletVariableToSimulation () |
std::string | name () const override |
void | set_dirichlet_boundaries (const std::vector< int > &dirichlet_boundaries) |
ParameterType | get_parameter_type () const override |
Eigen::VectorXd | compute_adjoint_term (const Eigen::VectorXd &x) const override |
Eigen::VectorXd | inverse_eval () override |
void | set_output_indexing (const json &args) override |
VariableToSimulation (const std::vector< std::shared_ptr< State > > &states, const CompositeParametrization ¶metrization) | |
VariableToSimulation (const std::shared_ptr< State > &state, const CompositeParametrization ¶metrization) | |
Public Member Functions inherited from polyfem::solver::VariableToSimulation | |
VariableToSimulation (const std::vector< std::shared_ptr< State > > &states, const CompositeParametrization ¶metrization) | |
VariableToSimulation (const std::shared_ptr< State > &state, const CompositeParametrization ¶metrization) | |
virtual | ~VariableToSimulation () |
virtual void | update (const Eigen::VectorXd &x) |
int | n_states () const |
const std::vector< std::shared_ptr< State > > & | get_states () const |
CompositeParametrization & | get_parametrization () |
Eigen::VectorXi | get_output_indexing (const Eigen::VectorXd &x) const |
virtual Eigen::VectorXd | apply_parametrization_jacobian (const Eigen::VectorXd &term, const Eigen::VectorXd &x) const |
Protected Member Functions | |
void | update_state (const Eigen::VectorXd &state_variable, const Eigen::VectorXi &indices) override |
Private Member Functions | |
std::string | variable_to_string (const Eigen::VectorXd &variable) |
Private Attributes | |
std::vector< int > | dirichlet_boundaries_ |
Additional Inherited Members | |
Static Public Member Functions inherited from polyfem::solver::VariableToSimulation | |
static std::unique_ptr< VariableToSimulation > | create (const std::string &type, const std::vector< std::shared_ptr< State > > &states, CompositeParametrization &¶metrization) |
Protected Attributes inherited from polyfem::solver::VariableToSimulation | |
const std::vector< std::shared_ptr< State > > | states_ |
CompositeParametrization | parametrization_ |
Eigen::VectorXi | output_indexing_ |
Definition at line 197 of file VariableToSimulation.hpp.
|
inlinevirtual |
Definition at line 201 of file VariableToSimulation.hpp.
|
overridevirtual |
Implements polyfem::solver::VariableToSimulation.
Definition at line 426 of file VariableToSimulation.cpp.
References polyfem::solver::VariableToSimulation::apply_parametrization_jacobian(), polyfem::solver::AdjointTools::dJ_dirichlet_transient_adjoint_term(), polyfem::log_and_throw_adjoint_error(), name(), polyfem::solver::VariableToSimulation::states_, and x.
|
inlineoverridevirtual |
Implements polyfem::solver::VariableToSimulation.
Definition at line 210 of file VariableToSimulation.hpp.
References polyfem::solver::DirichletBC.
|
overridevirtual |
Reimplemented from polyfem::solver::VariableToSimulation.
Definition at line 447 of file VariableToSimulation.cpp.
References dirichlet_boundaries_, polyfem::solver::CompositeParametrization::inverse_eval(), polyfem::log_and_throw_adjoint_error(), polyfem::solver::VariableToSimulation::parametrization_, polyfem::solver::VariableToSimulation::states_, and x.
|
inlineoverridevirtual |
Implements polyfem::solver::VariableToSimulation.
Definition at line 203 of file VariableToSimulation.hpp.
Referenced by compute_adjoint_term().
|
inline |
Definition at line 205 of file VariableToSimulation.hpp.
References dirichlet_boundaries_.
Referenced by set_output_indexing().
|
overridevirtual |
Reimplemented from polyfem::solver::VariableToSimulation.
Definition at line 481 of file VariableToSimulation.cpp.
References polyfem::State::args, polyfem::State::mesh, polyfem::solver::VariableToSimulation::output_indexing_, set_dirichlet_boundaries(), polyfem::solver::VariableToSimulation::set_output_indexing(), and polyfem::solver::VariableToSimulation::states_.
|
overrideprotectedvirtual |
Reimplemented from polyfem::solver::VariableToSimulation.
Definition at line 413 of file VariableToSimulation.cpp.
References dirichlet_boundaries_, polyfem::logger(), and polyfem::solver::VariableToSimulation::states_.
|
private |
Definition at line 443 of file VariableToSimulation.cpp.
|
inline |
Definition at line 16 of file VariableToSimulation.hpp.
|
inline |
Definition at line 15 of file VariableToSimulation.hpp.
|
private |
Definition at line 223 of file VariableToSimulation.hpp.
Referenced by inverse_eval(), set_dirichlet_boundaries(), and update_state().