69 std::vector<basis::ElementBases> &bases,
70 const std::vector<basis::ElementBases> &geom_bases,
74 const double jacobian_threshold,
78 const int n_pressure_bases,
79 const std::vector<int> &boundary_nodes,
80 const std::vector<mesh::LocalBoundary> &local_boundary,
81 const std::vector<mesh::LocalBoundary> &local_neumann_boundary,
82 const int n_boundary_samples,
83 const Eigen::MatrixXd &rhs,
84 const Eigen::MatrixXd &sol,
88 const std::vector<mesh::LocalBoundary> &local_pressure_boundary,
89 const std::unordered_map<
int, std::vector<mesh::LocalBoundary>> &local_pressure_cavity,
93 const bool ignore_inertia,
95 const std::shared_ptr<assembler::ViscousDamping> damping_assembler,
98 const double lagged_regularization_weight,
99 const int lagged_regularization_iterations,
107 const size_t obstacle_ndof,
110 const bool contact_enabled,
111 const ipc::CollisionMesh &collision_mesh,
113 const double avg_mass,
114 const bool use_convergent_contact_formulation,
115 const json &barrier_stiffness,
116 const ipc::BroadPhaseMethod broad_phase,
117 const double ccd_tolerance,
118 const long ccd_max_iterations,
119 const bool enable_shape_derivatives,
125 const bool periodic_contact,
126 const Eigen::VectorXi &tiled_to_single,
127 const std::shared_ptr<utils::PeriodicBoundary> &periodic_bc,
130 const double friction_coefficient,
132 const int friction_iterations,
135 const json &rayleigh_damping);
144 std::vector<std::pair<std::string, std::shared_ptr<solver::Form>>>
named_forms()
const;
151 std::vector<std::shared_ptr<solver::AugmentedLagrangianForm>>
al_form;
std::vector< std::shared_ptr< Form > > init_forms(const Units &units, const int dim, const double t, const int n_bases, std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &geom_bases, const assembler::Assembler &assembler, assembler::AssemblyValsCache &ass_vals_cache, const assembler::AssemblyValsCache &mass_ass_vals_cache, const double jacobian_threshold, const solver::ElementInversionCheck check_inversion, 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 std::shared_ptr< utils::PeriodicBoundary > &periodic_bc, 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.