15 static std::shared_ptr<Assembler>
make_assembler(
const std::string &formulation);
32 const int n_bases,
const int n_pressure_bases,
const int problem_dim,
const bool add_average,
37 static int quadrature_order(
const std::string &assembler,
const int basis_degree,
const BasisType &b_type,
const int dim);
54 std::shared_ptr<assembler::NLAssembler>
get_assembler(
const std::string &name)
const;
56 std::map<std::string, Assembler::ParamFunc>
parameters()
const;
utility to create a map of all elastic materials
void add_multimaterial(const int index, const json ¶ms, const Units &units)
void set_size(const int size)
std::unordered_map< std::string, std::shared_ptr< assembler::NLAssembler > > elastic_material_map_
std::map< std::string, Assembler::ParamFunc > parameters() const
std::shared_ptr< assembler::NLAssembler > get_assembler(const std::string &name) const
static std::shared_ptr< MixedAssembler > make_mixed_assembler(const std::string &formulation)
static std::string other_assembler_name(const std::string &formulation)
static int quadrature_order(const std::string &assembler, const int basis_degree, const BasisType &b_type, const int dim)
utility for retrieving the needed quadrature order to precisely integrate the given form on the given...
static void merge_mixed_matrices(const int n_bases, const int n_pressure_bases, const int problem_dim, const bool add_average, const StiffnessMatrix &velocity_stiffness, const StiffnessMatrix &mixed_stiffness, const StiffnessMatrix &pressure_stiffness, StiffnessMatrix &stiffness)
utility to merge 3 blocks of mixed matrices, A=velocity_stiffness, B=mixed_stiffness,...
static bool is_elastic_material(const std::string &material)
utility to check if material is one of the elastic materials
static std::vector< std::string > elastic_materials()
list of all elastic materials
static std::shared_ptr< Assembler > make_assembler(const std::string &formulation)
Eigen::SparseMatrix< double, Eigen::ColMajor > StiffnessMatrix