22 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 9, 1>
42 const Eigen::MatrixXd &local_pts,
43 const Eigen::MatrixXd &displacement,
44 Eigen::MatrixXd &tensor)
const override;
47 const Eigen::MatrixXd &mat,
48 Eigen::MatrixXd &stress,
49 Eigen::MatrixXd &result)
const override;
52 Eigen::MatrixXd &stress,
53 Eigen::MatrixXd &result)
const override;
56 Eigen::MatrixXd &dstress_dmu,
57 Eigen::MatrixXd &dstress_dlambda)
const override;
72 virtual bool is_linear()
const override {
return true; }
74 std::string
name()
const override {
return "LinearElasticity"; }
75 std::map<std::string, ParamFunc>
parameters()
const override;
81 const std::function<Eigen::MatrixXd(
const Eigen::MatrixXd &)> &fun)
const override;
ElementAssemblyValues vals
stores per element basis values at given quadrature points and geometric mapping
Eigen::MatrixXd lambda_mat_
assemble matrix based on the local assembler local assembler is eg Laplace, LinearElasticity etc
void assemble(const bool is_volume, const int n_basis, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const AssemblyValsCache &cache, const double t, StiffnessMatrix &stiffness, const bool is_mass=false) const override
assembles the stiffness matrix for the given basis the bilinear form (local assembler) is encoded by ...
void compute_stress_grad_multiply_stress(const OptAssemblerData &data, Eigen::MatrixXd &stress, Eigen::MatrixXd &result) const override
Eigen::Matrix< AutodiffScalarGrad, Eigen::Dynamic, 1, 0, 3, 1 > kernel(const int dim, const AutodiffGradPt &r, const AutodiffScalarGrad &) const override
std::map< std::string, ParamFunc > parameters() const override
void update_lame_params(const Eigen::MatrixXd &lambdas, const Eigen::MatrixXd &mus) override
VectorNd compute_rhs(const AutodiffHessianPt &pt) const override
void add_multimaterial(const int index, const json ¶ms, const Units &units) override
void compute_dstress_dmu_dlambda(const OptAssemblerData &data, Eigen::MatrixXd &dstress_dmu, Eigen::MatrixXd &dstress_dlambda) const override
virtual bool is_linear() const override
Eigen::VectorXd assemble_gradient(const NonLinearAssemblerData &data) const override
void set_params(const LameParameters ¶ms)
void assign_stress_tensor(const OutputData &data, const int all_size, const ElasticityTensorType &type, Eigen::MatrixXd &all, const std::function< Eigen::MatrixXd(const Eigen::MatrixXd &)> &fun) const override
const LameParameters & lame_params() const
Eigen::MatrixXd assemble_hessian(const NonLinearAssemblerData &data) const override
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 9, 1 > assemble(const LinearAssemblerData &data) const override
computes local stiffness matrix is R^{dimĀ²} for bases i,j
std::string name() const override
double compute_energy(const NonLinearAssemblerData &data) const override
T compute_energy_aux(const NonLinearAssemblerData &data) const
void compute_stress_grad_multiply_mat(const OptAssemblerData &data, const Eigen::MatrixXd &mat, Eigen::MatrixXd &stress, Eigen::MatrixXd &result) const override
void compute_stiffness_value(const double t, const assembler::ElementAssemblyValues &vals, const Eigen::MatrixXd &local_pts, const Eigen::MatrixXd &displacement, Eigen::MatrixXd &tensor) const override
double assemble_energy(const bool is_volume, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const AssemblyValsCache &cache, const double t, const double dt, const Eigen::MatrixXd &displacement, const Eigen::MatrixXd &displacement_prev) const override
void assemble_gradient(const bool is_volume, const int n_basis, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const AssemblyValsCache &cache, const double t, const double dt, const Eigen::MatrixXd &displacement, const Eigen::MatrixXd &displacement_prev, Eigen::MatrixXd &rhs) const override
void assemble_hessian(const bool is_volume, const int n_basis, const bool project_to_psd, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const AssemblyValsCache &cache, const double t, const double dt, const Eigen::MatrixXd &displacement, const Eigen::MatrixXd &displacement_prev, utils::MatrixCache &mat_cache, StiffnessMatrix &grad) const override
Eigen::Matrix< AutodiffScalarHessian, Eigen::Dynamic, 1, 0, 3, 1 > AutodiffHessianPt
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 3, 1 > VectorNd
Eigen::Matrix< AutodiffScalarGrad, Eigen::Dynamic, 1, 0, 3, 1 > AutodiffGradPt
Automatic differentiation scalar with first-order derivatives.