PolyFEM
Loading...
Searching...
No Matches
polyfem::assembler::MooneyRivlin3ParamElasticity Class Reference

#include <MooneyRivlin3ParamElasticity.hpp>

Inheritance diagram for polyfem::assembler::MooneyRivlin3ParamElasticity:
[legend]
Collaboration diagram for polyfem::assembler::MooneyRivlin3ParamElasticity:
[legend]

Public Member Functions

 MooneyRivlin3ParamElasticity ()
 
void add_multimaterial (const int index, const json &params, const Units &units) override
 
const GenericMatParamc1 () const
 
const GenericMatParamc2 () const
 
const GenericMatParamc3 () const
 
const GenericMatParamd1 () const
 
std::string name () const override
 
std::map< std::string, ParamFuncparameters () const override
 
template<typename T >
elastic_energy (const RowVectorNd &p, const double t, const int el_id, const DefGradMatrix< T > &def_grad) const
 
- Public Member Functions inherited from polyfem::assembler::GenericElastic< MooneyRivlin3ParamElasticity >
 GenericElastic ()
 
virtual ~GenericElastic ()=default
 
double compute_energy (const NonLinearAssemblerData &data) const override
 
Eigen::MatrixXd assemble_hessian (const NonLinearAssemblerData &data) 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
 
virtual Eigen::MatrixXd assemble_hessian (const NonLinearAssemblerData &data) const =0
 
Eigen::VectorXd assemble_gradient (const NonLinearAssemblerData &data) 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
 
virtual Eigen::VectorXd assemble_gradient (const NonLinearAssemblerData &data) const =0
 
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
 
void compute_stress_grad_multiply_mat (const OptAssemblerData &data, const Eigen::MatrixXd &mat, Eigen::MatrixXd &stress, Eigen::MatrixXd &result) const override
 
void compute_stress_grad_multiply_stress (const OptAssemblerData &data, Eigen::MatrixXd &stress, Eigen::MatrixXd &result) const override
 
void compute_stress_grad_multiply_vect (const OptAssemblerData &data, const Eigen::MatrixXd &vect, Eigen::MatrixXd &stress, Eigen::MatrixXd &result) const override
 
MooneyRivlin3ParamElasticityderived ()
 Returns this as a reference to derived class.
 
const MooneyRivlin3ParamElasticityderived () const
 Returns this as a const reference to derived class.
 
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
 
- Public Member Functions inherited from polyfem::assembler::NLAssembler
virtual ~NLAssembler ()=default
 
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
 
Eigen::VectorXd assemble_energy_per_element (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
 
virtual bool is_linear () const override
 
- Public Member Functions inherited from polyfem::assembler::Assembler
virtual ~Assembler ()=default
 
int size () const
 
virtual void set_size (const int size)
 
virtual 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
 
virtual void compute_stiffness_value (const double t, const assembler::ElementAssemblyValues &vals, const Eigen::MatrixXd &local_pts, const Eigen::MatrixXd &displacement, Eigen::MatrixXd &tensor) const
 
virtual void compute_dstress_dmu_dlambda (const OptAssemblerData &data, Eigen::MatrixXd &dstress_dmu, Eigen::MatrixXd &dstress_dlambda) const
 
virtual void compute_stress_grad (const OptAssemblerData &data, const Eigen::MatrixXd &prev_grad_u_i, Eigen::MatrixXd &stress, Eigen::MatrixXd &result) const
 
virtual void compute_stress_prev_grad (const OptAssemblerData &data, const Eigen::MatrixXd &prev_grad_u_i, Eigen::MatrixXd &result) const
 
virtual VectorNd compute_rhs (const AutodiffHessianPt &pt) const
 
virtual Eigen::Matrix< AutodiffScalarGrad, Eigen::Dynamic, 1, 0, 3, 1 > kernel (const int dim, const AutodiffGradPt &rvect, const AutodiffScalarGrad &r) const
 
void set_materials (const std::vector< int > &body_ids, const json &body_params, const Units &units)
 
virtual void update_lame_params (const Eigen::MatrixXd &lambdas, const Eigen::MatrixXd &mus)
 
virtual bool is_fluid () const
 
- Public Member Functions inherited from polyfem::assembler::ElasticityAssembler
 ElasticityAssembler ()
 
virtual ~ElasticityAssembler ()=default
 
void compute_scalar_value (const OutputData &data, std::vector< NamedMatrix > &result) const override
 
void compute_tensor_value (const OutputData &data, std::vector< NamedMatrix > &result) const override
 
void compute_stress_tensor (const OutputData &data, const ElasticityTensorType &type, Eigen::MatrixXd &stresses) const
 
void compute_von_mises_stresses (const OutputData &data, Eigen::MatrixXd &stresses) const
 
bool is_solution_displacement () const override
 
bool is_tensor () const override
 

Private Attributes

GenericMatParam c1_
 
GenericMatParam c2_
 
GenericMatParam c3_
 
GenericMatParam d1_
 

Additional Inherited Members

- Public Types inherited from polyfem::assembler::Assembler
typedef std::pair< std::string, Eigen::MatrixXd > NamedMatrix
 
typedef std::function< double(const RowVectorNd &, const RowVectorNd &, double, int)> ParamFunc
 
- Protected Attributes inherited from polyfem::assembler::Assembler
int size_ = -1
 

Detailed Description

Definition at line 9 of file MooneyRivlin3ParamElasticity.hpp.

Constructor & Destructor Documentation

◆ MooneyRivlin3ParamElasticity()

polyfem::assembler::MooneyRivlin3ParamElasticity::MooneyRivlin3ParamElasticity ( )

Definition at line 5 of file MooneyRivlin3ParamElasticity.cpp.

Member Function Documentation

◆ add_multimaterial()

void polyfem::assembler::MooneyRivlin3ParamElasticity::add_multimaterial ( const int  index,
const json params,
const Units units 
)
overridevirtual

Implements polyfem::assembler::GenericElastic< MooneyRivlin3ParamElasticity >.

Definition at line 10 of file MooneyRivlin3ParamElasticity.cpp.

References polyfem::assembler::GenericMatParam::add_multimaterial(), c1_, c2_, c3_, d1_, and polyfem::Units::stress().

Here is the call graph for this function:

◆ c1()

const GenericMatParam & polyfem::assembler::MooneyRivlin3ParamElasticity::c1 ( ) const
inline

Definition at line 17 of file MooneyRivlin3ParamElasticity.hpp.

References c1_.

Referenced by elastic_energy(), and parameters().

Here is the caller graph for this function:

◆ c2()

const GenericMatParam & polyfem::assembler::MooneyRivlin3ParamElasticity::c2 ( ) const
inline

Definition at line 18 of file MooneyRivlin3ParamElasticity.hpp.

References c2_.

Referenced by elastic_energy(), and parameters().

Here is the caller graph for this function:

◆ c3()

const GenericMatParam & polyfem::assembler::MooneyRivlin3ParamElasticity::c3 ( ) const
inline

Definition at line 19 of file MooneyRivlin3ParamElasticity.hpp.

References c3_.

Referenced by elastic_energy(), and parameters().

Here is the caller graph for this function:

◆ d1()

const GenericMatParam & polyfem::assembler::MooneyRivlin3ParamElasticity::d1 ( ) const
inline

Definition at line 20 of file MooneyRivlin3ParamElasticity.hpp.

References d1_.

Referenced by elastic_energy(), and parameters().

Here is the caller graph for this function:

◆ elastic_energy()

template<typename T >
T polyfem::assembler::MooneyRivlin3ParamElasticity::elastic_energy ( const RowVectorNd p,
const double  t,
const int  el_id,
const DefGradMatrix< T > &  def_grad 
) const
inline

Definition at line 26 of file MooneyRivlin3ParamElasticity.hpp.

References c1(), c1_, c2(), c2_, c3(), c3_, d1(), d1_, polyfem::utils::determinant(), polyfem::assembler::Assembler::size(), and val.

Here is the call graph for this function:

◆ name()

std::string polyfem::assembler::MooneyRivlin3ParamElasticity::name ( ) const
inlineoverridevirtual

Implements polyfem::assembler::Assembler.

Definition at line 22 of file MooneyRivlin3ParamElasticity.hpp.

◆ parameters()

std::map< std::string, Assembler::ParamFunc > polyfem::assembler::MooneyRivlin3ParamElasticity::parameters ( ) const
overridevirtual

Implements polyfem::assembler::Assembler.

Definition at line 18 of file MooneyRivlin3ParamElasticity.cpp.

References c1(), c2(), c3(), and d1().

Here is the call graph for this function:

Member Data Documentation

◆ c1_

GenericMatParam polyfem::assembler::MooneyRivlin3ParamElasticity::c1_
private

Definition at line 52 of file MooneyRivlin3ParamElasticity.hpp.

Referenced by add_multimaterial(), c1(), and elastic_energy().

◆ c2_

GenericMatParam polyfem::assembler::MooneyRivlin3ParamElasticity::c2_
private

Definition at line 53 of file MooneyRivlin3ParamElasticity.hpp.

Referenced by add_multimaterial(), c2(), and elastic_energy().

◆ c3_

GenericMatParam polyfem::assembler::MooneyRivlin3ParamElasticity::c3_
private

Definition at line 54 of file MooneyRivlin3ParamElasticity.hpp.

Referenced by add_multimaterial(), c3(), and elastic_energy().

◆ d1_

GenericMatParam polyfem::assembler::MooneyRivlin3ParamElasticity::d1_
private

Definition at line 55 of file MooneyRivlin3ParamElasticity.hpp.

Referenced by add_multimaterial(), d1(), and elastic_energy().


The documentation for this class was generated from the following files: