63 const std::vector<basis::ElementBases> &bases,
64 const std::vector<basis::ElementBases> &geom_bases,
70 const int n_pressure_bases,
71 const std::vector<int> &boundary_nodes,
72 const std::vector<mesh::LocalBoundary> &local_boundary,
73 const std::vector<mesh::LocalBoundary> &local_neumann_boundary,
74 const int n_boundary_samples,
75 const Eigen::MatrixXd &rhs,
76 const Eigen::MatrixXd &sol,
80 const std::vector<mesh::LocalBoundary> &local_pressure_boundary,
81 const std::unordered_map<
int, std::vector<mesh::LocalBoundary>> &local_pressure_cavity,
85 const bool ignore_inertia,
87 const std::shared_ptr<assembler::ViscousDamping> damping_assembler,
90 const double lagged_regularization_weight,
91 const int lagged_regularization_iterations,
99 const size_t obstacle_ndof,
102 const bool contact_enabled,
103 const ipc::CollisionMesh &collision_mesh,
105 const double avg_mass,
106 const bool use_convergent_contact_formulation,
107 const json &barrier_stiffness,
108 const ipc::BroadPhaseMethod broad_phase,
109 const double ccd_tolerance,
110 const long ccd_max_iterations,
111 const bool enable_shape_derivatives,
117 const bool periodic_contact,
118 const Eigen::VectorXi &tiled_to_single,
121 const double friction_coefficient,
123 const int friction_iterations,
126 const json &rayleigh_damping);
135 std::vector<std::pair<std::string, std::shared_ptr<solver::Form>>>
named_forms()
const;
std::vector< std::shared_ptr< Form > > init_forms(const Units &units, const int dim, const double t, const int n_bases, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &geom_bases, const assembler::Assembler &assembler, const assembler::AssemblyValsCache &ass_vals_cache, const assembler::AssemblyValsCache &mass_ass_vals_cache, const int n_pressure_bases, const std::vector< int > &boundary_nodes, const std::vector< mesh::LocalBoundary > &local_boundary, const std::vector< mesh::LocalBoundary > &local_neumann_boundary, const int n_boundary_samples, const Eigen::MatrixXd &rhs, const Eigen::MatrixXd &sol, const assembler::Density &density, const std::vector< mesh::LocalBoundary > &local_pressure_boundary, const std::unordered_map< int, std::vector< mesh::LocalBoundary > > &local_pressure_cavity, const std::shared_ptr< assembler::PressureAssembler > pressure_assembler, const bool ignore_inertia, const StiffnessMatrix &mass, const std::shared_ptr< assembler::ViscousDamping > damping_assembler, const double lagged_regularization_weight, const int lagged_regularization_iterations, const size_t obstacle_ndof, const bool contact_enabled, const ipc::CollisionMesh &collision_mesh, const double dhat, const double avg_mass, const bool use_convergent_contact_formulation, const json &barrier_stiffness, const ipc::BroadPhaseMethod broad_phase, const double ccd_tolerance, const long ccd_max_iterations, const bool enable_shape_derivatives, const assembler::MacroStrainValue ¯o_strain_constraint, const bool periodic_contact, const Eigen::VectorXi &tiled_to_single, const double friction_coefficient, const double epsv, const int friction_iterations, const json &rayleigh_damping)
Initialize the forms and return a vector of pointers to them.