PolyFEM
Loading...
Searching...
No Matches
polyfem::solver::ShapeVariableToSimulation Class Reference

#include <VariableToSimulation.hpp>

Inheritance diagram for polyfem::solver::ShapeVariableToSimulation:
[legend]
Collaboration diagram for polyfem::solver::ShapeVariableToSimulation:
[legend]

Public Member Functions

virtual ~ShapeVariableToSimulation ()
 
std::string name () const override
 
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 &parametrization)
 
 VariableToSimulation (const std::shared_ptr< State > &state, const CompositeParametrization &parametrization)
 
- Public Member Functions inherited from polyfem::solver::VariableToSimulation
 VariableToSimulation (const std::vector< std::shared_ptr< State > > &states, const CompositeParametrization &parametrization)
 
 VariableToSimulation (const std::shared_ptr< State > &state, const CompositeParametrization &parametrization)
 
virtual ~VariableToSimulation ()
 
virtual void update (const Eigen::VectorXd &x)
 
int n_states () const
 
const std::vector< std::shared_ptr< State > > & get_states () const
 
CompositeParametrizationget_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

virtual void update_state (const Eigen::VectorXd &state_variable, const Eigen::VectorXi &indices) override
 

Additional Inherited Members

- Static Public Member Functions inherited from polyfem::solver::VariableToSimulation
static std::unique_ptr< VariableToSimulationcreate (const std::string &type, const std::vector< std::shared_ptr< State > > &states, CompositeParametrization &&parametrization)
 
- Protected Attributes inherited from polyfem::solver::VariableToSimulation
const std::vector< std::shared_ptr< State > > states_
 
CompositeParametrization parametrization_
 
Eigen::VectorXi output_indexing_
 

Detailed Description

Definition at line 100 of file VariableToSimulation.hpp.

Constructor & Destructor Documentation

◆ ~ShapeVariableToSimulation()

virtual polyfem::solver::ShapeVariableToSimulation::~ShapeVariableToSimulation ( )
inlinevirtual

Definition at line 104 of file VariableToSimulation.hpp.

Member Function Documentation

◆ compute_adjoint_term()

Eigen::VectorXd polyfem::solver::ShapeVariableToSimulation::compute_adjoint_term ( const Eigen::VectorXd &  x) const
overridevirtual

◆ get_parameter_type()

ParameterType polyfem::solver::ShapeVariableToSimulation::get_parameter_type ( ) const
inlineoverridevirtual

◆ inverse_eval()

Eigen::VectorXd polyfem::solver::ShapeVariableToSimulation::inverse_eval ( )
overridevirtual

◆ name()

std::string polyfem::solver::ShapeVariableToSimulation::name ( ) const
inlineoverridevirtual

Implements polyfem::solver::VariableToSimulation.

Definition at line 106 of file VariableToSimulation.hpp.

◆ set_output_indexing()

void polyfem::solver::ShapeVariableToSimulation::set_output_indexing ( const json args)
overridevirtual

Reimplemented from polyfem::solver::VariableToSimulation.

Definition at line 202 of file VariableToSimulation.cpp.

References polyfem::solver::VariableToNodes::get_output_indexing(), polyfem::solver::VariableToSimulation::output_indexing_, polyfem::solver::VariableToSimulation::set_output_indexing(), and polyfem::solver::VariableToSimulation::states_.

Here is the call graph for this function:

◆ update_state()

void polyfem::solver::ShapeVariableToSimulation::update_state ( const Eigen::VectorXd &  state_variable,
const Eigen::VectorXi &  indices 
)
overrideprotectedvirtual

◆ VariableToSimulation() [1/2]

polyfem::solver::VariableToSimulation::VariableToSimulation ( const std::shared_ptr< State > &  state,
const CompositeParametrization parametrization 
)
inline

Definition at line 16 of file VariableToSimulation.hpp.

◆ VariableToSimulation() [2/2]

polyfem::solver::VariableToSimulation::VariableToSimulation ( const std::vector< std::shared_ptr< State > > &  states,
const CompositeParametrization parametrization 
)
inline

Definition at line 15 of file VariableToSimulation.hpp.


The documentation for this class was generated from the following files: