|
| | PhysicsTriRemesher (const State &state, const Eigen::MatrixXd &obstacle_displacements, const Eigen::MatrixXd &obstacle_vals, const double current_time, const double starting_energy) |
| |
| | PhysicsRemesher (const State &state, const Eigen::MatrixXd &obstacle_displacements, const Eigen::MatrixXd &obstacle_vals, const double current_time, const double starting_energy) |
| |
| virtual | ~PhysicsRemesher () |
| |
| void | split_edges () override |
| |
| bool | split_edge_before (const Tuple &t) override |
| |
| bool | split_edge_after (const Tuple &t) override |
| |
| void | collapse_edges () override |
| |
| bool | collapse_edge_before (const Tuple &t) override |
| |
| bool | collapse_edge_after (const Tuple &t) override |
| |
| bool | smooth_before (const Tuple &t) override |
| |
| bool | smooth_after (const Tuple &t) override |
| |
| | WildRemesher (const State &state, const Eigen::MatrixXd &obstacle_displacements, const Eigen::MatrixXd &obstacle_vals, const double current_time, const double starting_energy) |
| | Construct a new WildRemesher object.
|
| |
| virtual | ~WildRemesher ()=default |
| |
| virtual void | init (const Eigen::MatrixXd &rest_positions, const Eigen::MatrixXd &positions, const Eigen::MatrixXi &elements, const Eigen::MatrixXd &projection_quantities, const BoundaryMap< int > &boundary_to_id, const std::vector< int > &body_ids, const EdgeMap< double > &elastic_energy, const EdgeMap< double > &contact_energy) override |
| | Initialize the mesh.
|
| |
| bool | execute () override |
| | Execute the remeshing.
|
| |
| virtual void | smooth_vertices () |
| |
| int | dim () const override |
| | Dimension of the mesh.
|
| |
| Eigen::MatrixXd | rest_positions () const override |
| | Exports rest positions of the stored mesh.
|
| |
| Eigen::MatrixXd | displacements () const override |
| | Exports positions of the stored mesh.
|
| |
| Eigen::MatrixXd | positions () const override |
| | Exports displacements of the stored mesh.
|
| |
| Eigen::MatrixXi | edges () const override |
| | Exports edges of the stored mesh.
|
| |
| Eigen::MatrixXi | elements () const override |
| | Exports elements of the stored mesh.
|
| |
| Eigen::MatrixXi | boundary_edges () const override |
| | Exports boundary edges of the stored mesh.
|
| |
| Eigen::MatrixXi | boundary_faces () const override |
| | Exports boundary faces of the stored mesh.
|
| |
| Eigen::MatrixXd | projection_quantities () const override |
| | Exports projected quantities of the stored mesh.
|
| |
| BoundaryMap< int > | boundary_ids () const override |
| | Exports boundary ids of the stored mesh.
|
| |
| std::vector< int > | body_ids () const override |
| | Exports body ids of the stored mesh.
|
| |
| std::vector< int > | boundary_nodes (const Eigen::VectorXi &vertex_to_basis) const override |
| | Get the boundary nodes of the stored mesh.
|
| |
| int | n_quantities () const override |
| | Number of projection quantities (not including the position)
|
| |
| std::vector< Tuple > | get_facets () const |
| | Get a vector of all facets (edges or triangles)
|
| |
| std::vector< Tuple > | get_elements () const |
| | Get a vector of all elements (triangles or tetrahedra)
|
| |
| void | set_rest_positions (const Eigen::MatrixXd &positions) override |
| | Set rest positions of the stored mesh.
|
| |
| void | set_positions (const Eigen::MatrixXd &positions) override |
| | Set deformed positions of the stored mesh.
|
| |
| void | set_projection_quantities (const Eigen::MatrixXd &projection_quantities) override |
| | Set projected quantities of the stored mesh.
|
| |
| void | set_fixed (const std::vector< bool > &fixed) override |
| | Set if a vertex is fixed.
|
| |
| void | set_boundary_ids (const BoundaryMap< int > &boundary_to_id) override |
| | Set the boundary IDs of all edges.
|
| |
| void | set_body_ids (const std::vector< int > &body_ids) override |
| | Set the body IDs of all elements.
|
| |
| double | rest_edge_length (const Tuple &e) const |
| | Compute the length of an edge.
|
| |
| double | deformed_edge_length (const Tuple &e) const |
| |
| VectorNd | rest_edge_center (const Tuple &e) const |
| | Compute the center of the edge.
|
| |
| VectorNd | deformed_edge_center (const Tuple &e) const |
| |
| Eigen::VectorXd | edge_adjacent_element_volumes (const Tuple &e) const |
| |
| double | element_volume (const Tuple &e) const |
| | Compute the volume (area) of an tetrahedron (triangle) element.
|
| |
| bool | is_boundary_vertex (const Tuple &v) const |
| | Is the given vertex tuple on the boundary of the mesh?
|
| |
| bool | is_body_boundary_vertex (const Tuple &v) const |
| | Is the given vertex tuple on the boundary of a body?
|
| |
| bool | is_boundary_edge (const Tuple &e) const |
| | Is the given edge tuple on the boundary of the mesh?
|
| |
| bool | is_body_boundary_edge (const Tuple &e) const |
| | Is the given edge tuple on the boundary of a body?
|
| |
| bool | is_boundary_facet (const Tuple &t) const |
| | Is the given tuple on the boundary of the mesh?
|
| |
| bool | is_boundary_op () const |
| | Is the currently cached operation a boundary operation?
|
| |
| std::vector< Tuple > | boundary_facets (std::vector< int > *boundary_ids=nullptr) const |
| | Get the boundary facets of the mesh.
|
| |
| std::array< Tuple, DIM > | facet_vertices (const Tuple &t) const |
| | Get the vertex tuples of a facet.
|
| |
| std::array< size_t, DIM > | facet_vids (const Tuple &t) const |
| | Get the vertex ids of a facet.
|
| |
| std::array< Tuple, VERTICES_PER_ELEMENT > | element_vertices (const Tuple &t) const |
| | Get the vertex tuples of an element.
|
| |
| std::array< size_t, VERTICES_PER_ELEMENT > | element_vids (const Tuple &t) const |
| | Get the vertex ids of an element.
|
| |
| void | element_aabb (const Tuple &t, polyfem::VectorNd &el_min, polyfem::VectorNd &el_max) const |
| | Get a AABB for an element.
|
| |
| std::array< size_t, VERTICES_PER_ELEMENT > | orient_preserve_element_reorder (const std::array< size_t, VERTICES_PER_ELEMENT > &conn, const size_t v0) const |
| | Reorder the element vertices so that the first vertex is v0.
|
| |
| std::vector< Tuple > | get_one_ring_elements_for_vertex (const Tuple &t) const |
| | Get the one ring of elements around a vertex.
|
| |
| std::vector< Tuple > | get_one_ring_boundary_edges_for_vertex (const Tuple &v) const |
| |
| std::array< Tuple, 2 > | get_boundary_faces_for_edge (const Tuple &e) const |
| |
| std::vector< Tuple > | get_one_ring_boundary_faces_for_vertex (const Tuple &v) const |
| |
| std::vector< Tuple > | get_edges_for_elements (const std::vector< Tuple > &elements) const |
| |
| size_t | facet_id (const Tuple &t) const |
| | Get the id of a facet (edge for triangle, triangle for tetrahedra)
|
| |
| size_t | element_id (const Tuple &t) const |
| | Get the id of an element (triangle or tetrahedra)
|
| |
| Tuple | tuple_from_element (size_t elem_id) const |
| | Get a tuple of an element.
|
| |
| Tuple | tuple_from_facet (size_t elem_id, int local_facet_id) const |
| | Get a tuple of an element with a local facet.
|
| |
| std::vector< Tuple > | get_incident_elements_for_edge (const Tuple &t) const |
| | Get the incident elements for an edge.
|
| |
| void | extend_local_patch (std::vector< Tuple > &patch) const |
| | Extend the local patch by including neighboring elements.
|
| |
| Tuple | opposite_vertex_on_face (const Tuple &e) const |
| | Get the opposite vertex on a face.
|
| |
| CollapseEdgeTo | collapse_boundary_edge_to (const Tuple &e) const |
| | Determine where to collapse an edge to.
|
| |
| void | write_edge_ranks_mesh (const EdgeMap< typename EdgeAttributes::EnergyRank > &elastic_ranks, const EdgeMap< typename EdgeAttributes::EnergyRank > &contact_ranks) const |
| |
| EdgeAttributes & | edge_attr (const size_t e_id) |
| | Get a reference to an edge's attributes.
|
| |
| const EdgeAttributes & | edge_attr (const size_t e_id) const |
| | Get a const reference to an edge's attributes.
|
| |
| | Remesher (const State &state, const Eigen::MatrixXd &obstacle_displacements, const Eigen::MatrixXd &obstacle_quantities, const double current_time, const double starting_energy) |
| | Construct a new Remesher object.
|
| |
| virtual | ~Remesher ()=default |
| |
| virtual bool | is_volume () const |
| | Is the mesh a volumetric mesh.
|
| |
| const Obstacle & | obstacle () const |
| | Get a reference to the collision obstacles.
|
| |
| const Eigen::MatrixXd & | obstacle_displacements () const |
| | Get a reference to the collision obstacles' displacements.
|
| |
| const Eigen::MatrixXd & | obstacle_quantities () const |
| | Get a reference to the collision obstacles' extra quantities.
|
| |
| void | write_mesh (const std::string &path) const |
| | Writes a VTU mesh file.
|
| |
| void | init_assembler (const std::vector< int > &body_ids) const |
| | Create an assembler object.
|
| |
|
| static Eigen::MatrixXd | combine_time_integrator_quantities (const std::shared_ptr< time_integrator::ImplicitTimeIntegrator > &time_integrator) |
| | Combine the quantities of a time integrator into a single matrix (one column per quantity)
|
| |
| static void | split_time_integrator_quantities (const Eigen::MatrixXd &quantities, const int dim, Eigen::MatrixXd &x_prevs, Eigen::MatrixXd &v_prevs, Eigen::MatrixXd &a_prevs) |
| | Split the quantities of a time integrator into separate vectors.
|
| |
| static int | build_bases (const Mesh &mesh, const std::string &assembler_formulation, std::vector< polyfem::basis::ElementBases > &bases, std::vector< LocalBoundary > &local_boundary, Eigen::VectorXi &vertex_to_basis) |
| | Build bases for a given mesh (V, F)
|
| |
| static void | log_timings () |
| |
| wmtk::AttributeCollection< VertexAttributes > | vertex_attrs |
| |
| wmtk::AttributeCollection< VertexAttributes > | vertex_attrs |
| |
| wmtk::AttributeCollection< BoundaryAttributes > | boundary_attrs |
| |
| wmtk::AttributeCollection< ElementAttributes > | element_attrs |
| |
| const State & | state |
| | Reference to the simulation state.
|
| |
| int | max_op_attempts = 1 |
| |
| static constexpr int | DIM |
| |
| static constexpr int | VERTICES_PER_ELEMENT |
| |
| static constexpr int | EDGES_PER_ELEMENT |
| |
| static constexpr int | FACETS_PER_ELEMENT |
| |
| static constexpr wmtk::ExecutionPolicy | EXECUTION_POLICY = wmtk::ExecutionPolicy::kSeq |
| | Current execuation policy (sequencial or parallel)
|
| |
| static std::unordered_map< std::string, utils::Timing > | timings |
| | Timings for the remeshing operations.
|
| |
| static double | total_time = 0 |
| |
| static size_t | num_solves = 0 |
| |
| static size_t | total_ndofs = 0 |
| |
| using | Operations = std::vector< std::pair< std::string, Tuple > > |
| |
| wmtk::ExecutePass< WildRemesher, EXECUTION_POLICY > | executor |
| |
| wmtk::ExecutePass< WildRemesher, EXECUTION_POLICY > | executor |
| |
| int | m_n_quantities |
| |
| double | total_volume |
| |
| std::conditional< std::is_same< WMTKMesh, wmtk::TriMesh >::value, std::shared_ptr< TriOperationCache >, std::shared_ptr< TetOperationCache > >::type | op_cache |
| |
| GlobalProjectionCache | global_projection_cache |
| |
| const json | args |
| | Copy of remesh args.
|
| |
| const Eigen::MatrixXd | m_obstacle_displacements |
| | Collision obstacles' displacements.
|
| |
| Eigen::MatrixXd | m_obstacle_quantities |
| | Collision obstacles' extra quantities.
|
| |
| const double | current_time |
| | Current time.
|
| |
| const double | starting_energy |
| | Starting energy.
|
| |