PolyFEM
Loading...
Searching...
No Matches
polyfem::assembler::detail::GrowthElasticityModel Class Reference

Public Member Functions

void set_size (const int size)
 
void add_multimaterial (const int index, const json &params, const Units &units, const io::ResourceIO &resources)
 
std::map< std::string, Assembler::ParamFunc > parameters () const
 
template<typename T >
T compute_energy_aux (const MixedNonLinearAssemblerData &data) const
 
double driving_force (const int el_id, const RowVectorNd &pos, const double t, const Eigen::Matrix3d &Ce) const
 
Eigen::Vector3d wall_normal (const int el_id) const
 
void grown_stresses (const int el_id, const RowVectorNd &pos, const double t, const Eigen::Matrix3d &F, const double theta, Eigen::Matrix3d &cauchy, Eigen::Matrix3d &pk1, Eigen::Matrix3d &pk2, double &energy) const
 

Private Member Functions

template<typename Child >
void add_child (std::vector< std::unique_ptr< Child > > &list, const int index, const json &child, const Units &units, const io::ResourceIO &resources)
 
template<typename T >
T sum_energy (const RowVectorNd &p, const double t, const int el_id, const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3 > &F) const
 
Eigen::Vector3d n0 (const int el_id) const
 
double vn (const int el_id) const
 

Private Attributes

int size_ = -1
 
std::vector< std::unique_ptr< IsochoricNeoHookean > > iso_
 
std::vector< std::unique_ptr< HGODispersion > > fiber_
 
std::vector< std::unique_ptr< VolumePenalty > > vol_
 
Eigen::MatrixXd normals_
 
Eigen::Vector3d constant_n0_ {0.0, 0.0, 1.0}
 
Eigen::MatrixXd vn_
 
double constant_vn_ = 1.0
 

Detailed Description

Definition at line 210 of file GrowthElasticity.cpp.

Member Function Documentation

◆ add_child()

template<typename Child >
void polyfem::assembler::detail::GrowthElasticityModel::add_child ( std::vector< std::unique_ptr< Child > > &  list,
const int  index,
const json &  child,
const Units &  units,
const io::ResourceIO &  resources 
)
inlineprivate

Definition at line 458 of file GrowthElasticity.cpp.

References size_.

Referenced by add_multimaterial().

Here is the caller graph for this function:

◆ add_multimaterial()

void polyfem::assembler::detail::GrowthElasticityModel::add_multimaterial ( const int  index,
const json &  params,
const Units &  units,
const io::ResourceIO &  resources 
)
inline

Definition at line 224 of file GrowthElasticity.cpp.

References add_child(), constant_n0_, constant_vn_, fiber_, iso_, polyfem::log_and_throw_error(), polyfem::assembler::MATERIAL_ELEMENT_INDEX, normals_, polyfem::assembler::read_growth_cell_array(), vn_, and vol_.

Referenced by polyfem::assembler::GrowthElasticity::add_multimaterial().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_energy_aux()

template<typename T >
T polyfem::assembler::detail::GrowthElasticityModel::compute_energy_aux ( const MixedNonLinearAssemblerData &  data) const
inline

◆ driving_force()

double polyfem::assembler::detail::GrowthElasticityModel::driving_force ( const int  el_id,
const RowVectorNd &  pos,
const double  t,
const Eigen::Matrix3d &  Ce 
) const
inline

Definition at line 377 of file GrowthElasticity.cpp.

References polyfem::log_and_throw_error(), n0(), DiffScalarBase::setVariableCount(), and size_.

Referenced by polyfem::assembler::GrowthElasticity::driving_force().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ grown_stresses()

void polyfem::assembler::detail::GrowthElasticityModel::grown_stresses ( const int  el_id,
const RowVectorNd &  pos,
const double  t,
const Eigen::Matrix3d &  F,
const double  theta,
Eigen::Matrix3d &  cauchy,
Eigen::Matrix3d &  pk1,
Eigen::Matrix3d &  pk2,
double &  energy 
) const
inline

Definition at line 413 of file GrowthElasticity.cpp.

References polyfem::F, J, polyfem::log_and_throw_error(), n0(), DiffScalarBase::setVariableCount(), size_, and vn().

Referenced by polyfem::assembler::GrowthElasticity::grown_stresses().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ n0()

Eigen::Vector3d polyfem::assembler::detail::GrowthElasticityModel::n0 ( const int  el_id) const
inlineprivate

Definition at line 487 of file GrowthElasticity.cpp.

References constant_n0_, polyfem::log_and_throw_error(), and normals_.

Referenced by compute_energy_aux(), driving_force(), grown_stresses(), and wall_normal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parameters()

std::map< std::string, Assembler::ParamFunc > polyfem::assembler::detail::GrowthElasticityModel::parameters ( ) const
inline

Definition at line 299 of file GrowthElasticity.cpp.

References vn().

Referenced by polyfem::assembler::GrowthElasticity::parameters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_size()

void polyfem::assembler::detail::GrowthElasticityModel::set_size ( const int  size)
inline

Definition at line 213 of file GrowthElasticity.cpp.

References fiber_, iso_, size_, and vol_.

Referenced by polyfem::assembler::GrowthElasticity::set_size().

Here is the caller graph for this function:

◆ sum_energy()

template<typename T >
T polyfem::assembler::detail::GrowthElasticityModel::sum_energy ( const RowVectorNd &  p,
const double  t,
const int  el_id,
const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3 > &  F 
) const
inlineprivate

Definition at line 474 of file GrowthElasticity.cpp.

References polyfem::F, fiber_, iso_, and vol_.

◆ vn()

double polyfem::assembler::detail::GrowthElasticityModel::vn ( const int  el_id) const
inlineprivate

Definition at line 500 of file GrowthElasticity.cpp.

References constant_vn_, polyfem::log_and_throw_error(), and vn_.

Referenced by compute_energy_aux(), grown_stresses(), and parameters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wall_normal()

Eigen::Vector3d polyfem::assembler::detail::GrowthElasticityModel::wall_normal ( const int  el_id) const
inline

Definition at line 411 of file GrowthElasticity.cpp.

References n0().

Referenced by polyfem::assembler::GrowthElasticity::wall_normal().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ constant_n0_

Eigen::Vector3d polyfem::assembler::detail::GrowthElasticityModel::constant_n0_ {0.0, 0.0, 1.0}
private

Definition at line 522 of file GrowthElasticity.cpp.

Referenced by add_multimaterial(), and n0().

◆ constant_vn_

double polyfem::assembler::detail::GrowthElasticityModel::constant_vn_ = 1.0
private

Definition at line 524 of file GrowthElasticity.cpp.

Referenced by add_multimaterial(), and vn().

◆ fiber_

std::vector<std::unique_ptr<HGODispersion> > polyfem::assembler::detail::GrowthElasticityModel::fiber_
private

Definition at line 518 of file GrowthElasticity.cpp.

Referenced by add_multimaterial(), set_size(), and sum_energy().

◆ iso_

std::vector<std::unique_ptr<IsochoricNeoHookean> > polyfem::assembler::detail::GrowthElasticityModel::iso_
private

Definition at line 517 of file GrowthElasticity.cpp.

Referenced by add_multimaterial(), set_size(), and sum_energy().

◆ normals_

Eigen::MatrixXd polyfem::assembler::detail::GrowthElasticityModel::normals_
private

Definition at line 521 of file GrowthElasticity.cpp.

Referenced by add_multimaterial(), and n0().

◆ size_

int polyfem::assembler::detail::GrowthElasticityModel::size_ = -1
private

◆ vn_

Eigen::MatrixXd polyfem::assembler::detail::GrowthElasticityModel::vn_
private

Definition at line 523 of file GrowthElasticity.cpp.

Referenced by add_multimaterial(), and vn().

◆ vol_

std::vector<std::unique_ptr<VolumePenalty> > polyfem::assembler::detail::GrowthElasticityModel::vol_
private

Definition at line 519 of file GrowthElasticity.cpp.

Referenced by add_multimaterial(), set_size(), and sum_energy().


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