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

#include <VariableToSimulation.hpp>

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

Public Member Functions

virtual ~PressureVariableToSimulation ()
 
std::string name () const override
 
void set_pressure_boundaries (const std::vector< int > &pressure_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 &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

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 > pressure_boundaries_
 

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 229 of file VariableToSimulation.hpp.

Constructor & Destructor Documentation

◆ ~PressureVariableToSimulation()

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

Definition at line 233 of file VariableToSimulation.hpp.

Member Function Documentation

◆ compute_adjoint_term()

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

◆ get_parameter_type()

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

◆ inverse_eval()

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

Reimplemented from polyfem::solver::VariableToSimulation.

Definition at line 541 of file VariableToSimulation.cpp.

References polyfem::solver::CompositeParametrization::inverse_eval(), polyfem::log_and_throw_adjoint_error(), polyfem::solver::VariableToSimulation::parametrization_, pressure_boundaries_, polyfem::solver::VariableToSimulation::states_, and x.

Here is the call graph for this function:

◆ name()

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

Implements polyfem::solver::VariableToSimulation.

Definition at line 235 of file VariableToSimulation.hpp.

◆ set_output_indexing()

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

Reimplemented from polyfem::solver::VariableToSimulation.

Definition at line 573 of file VariableToSimulation.cpp.

References polyfem::State::args, polyfem::solver::VariableToSimulation::output_indexing_, polyfem::solver::VariableToSimulation::set_output_indexing(), set_pressure_boundaries(), and polyfem::solver::VariableToSimulation::states_.

Here is the call graph for this function:

◆ set_pressure_boundaries()

void polyfem::solver::PressureVariableToSimulation::set_pressure_boundaries ( const std::vector< int > &  pressure_boundaries)
inline

Definition at line 237 of file VariableToSimulation.hpp.

References pressure_boundaries_.

Referenced by set_output_indexing().

Here is the caller graph for this function:

◆ update_state()

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

Reimplemented from polyfem::solver::VariableToSimulation.

Definition at line 501 of file VariableToSimulation.cpp.

References polyfem::logger(), pressure_boundaries_, and polyfem::solver::VariableToSimulation::states_.

Here is the call graph for this function:

◆ variable_to_string()

std::string polyfem::solver::PressureVariableToSimulation::variable_to_string ( const Eigen::VectorXd &  variable)
private

Definition at line 536 of file VariableToSimulation.cpp.

◆ 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.

Member Data Documentation

◆ pressure_boundaries_

std::vector<int> polyfem::solver::PressureVariableToSimulation::pressure_boundaries_
private

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