PolyFEM
Loading...
Searching...
No Matches
ActiveSelectionUtils.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <Eigen/Core>
6
7#include <vector>
8#include <string>
9#include <memory>
10
11namespace polyfem::solver
12{
13
18 bool is_active_geom_nodes_valid(const Eigen::VectorXi &active_geom_nodes,
19 const std::vector<std::shared_ptr<legacy::State>> &states,
20 std::string &reason);
21
26 bool is_active_dims_valid(const Eigen::VectorXi &active_dimensions,
27 const std::vector<std::shared_ptr<legacy::State>> &states,
28 std::string &reason);
29
34 bool is_active_dofs_valid(const Eigen::VectorXi &active_dofs,
35 const std::vector<std::shared_ptr<legacy::State>> &states,
36 std::string &reason);
37
42 bool is_active_time_slices_valid(const Eigen::VectorXi &active_time_slices,
43 const std::vector<std::shared_ptr<legacy::State>> &states,
44 std::string &reason);
45
51 bool is_active_dirichlet_boundary_ids_valid(const Eigen::VectorXi &active_boundary_ids,
52 const std::vector<std::shared_ptr<legacy::State>> &states,
53 std::string &reason);
54
59 bool is_active_dirichlet_node_valid(const Eigen::VectorXi &active_dirichlet_nodes,
60 const std::vector<std::shared_ptr<legacy::State>> &states,
61 std::string &reason);
62
67 bool is_active_pressure_boundary_ids_valid(const Eigen::VectorXi &active_boundary_ids,
68 const std::vector<std::shared_ptr<legacy::State>> &states,
69 std::string &reason);
70
71} // namespace polyfem::solver
bool is_active_dirichlet_node_valid(const Eigen::VectorXi &active_dirichlet_nodes, const std::vector< std::shared_ptr< legacy::State > > &states, std::string &reason)
Validate active Dirichlet node ids selection given states.
bool is_active_time_slices_valid(const Eigen::VectorXi &active_time_slices, const std::vector< std::shared_ptr< legacy::State > > &states, std::string &reason)
Validate active time slices selection given states.
bool is_active_dirichlet_boundary_ids_valid(const Eigen::VectorXi &active_boundary_ids, const std::vector< std::shared_ptr< legacy::State > > &states, std::string &reason)
Validate active Dirichlet boundary ids selection given states.
bool is_active_geom_nodes_valid(const Eigen::VectorXi &active_geom_nodes, const std::vector< std::shared_ptr< legacy::State > > &states, std::string &reason)
Validate active geometry nodes selection given states.
bool is_active_pressure_boundary_ids_valid(const Eigen::VectorXi &active_boundary_ids, const std::vector< std::shared_ptr< legacy::State > > &states, std::string &reason)
Validate active pressure boundary ids selection given states.
bool is_active_dofs_valid(const Eigen::VectorXi &active_dofs, const std::vector< std::shared_ptr< legacy::State > > &states, std::string &reason)
Validate active solution space dofs selection given states.
bool is_active_dims_valid(const Eigen::VectorXi &active_dimensions, const std::vector< std::shared_ptr< legacy::State > > &states, std::string &reason)
Validate active dimensions selection given states.