PolyFEM
Loading...
Searching...
No Matches
diff_elastic_energy Namespace Reference

Classes

class  AMIPSEnergy
 
class  VolumePenaltyEnergy
 

Functions

 compute_energy (energy)
 
 parse_args ()
 

Variables

dict energies
 
 args = parse_args()
 
 path = Path(os.path.abspath(args.output))
 
 E
 
 grad
 
 hess
 
 dim = energy.dim
 
str file = path / f"{name}.hpp"
 
str fparams = "(const RowVectorNd &p, const double t, const int el_id, const Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3>& F"
 
 idx = i * dim + j
 

Function Documentation

◆ compute_energy()

diff_elastic_energy.compute_energy (   energy)

Definition at line 77 of file diff_elastic_energy.py.

◆ parse_args()

diff_elastic_energy.parse_args ( )

Definition at line 104 of file diff_elastic_energy.py.

Variable Documentation

◆ args

diff_elastic_energy.args = parse_args()

Definition at line 113 of file diff_elastic_energy.py.

◆ dim

diff_elastic_energy.dim = energy.dim

Definition at line 118 of file diff_elastic_energy.py.

◆ E

diff_elastic_energy.E

Definition at line 117 of file diff_elastic_energy.py.

◆ energies

dict diff_elastic_energy.energies
Initial value:
1= {
2 "VolumePenalty2d": VolumePenaltyEnergy(dim=2),
3 "VolumePenalty3d": VolumePenaltyEnergy(dim=3),
4 "AMIPS2d": AMIPSEnergy(use_rest_pose=False, dim=2),
5 "AMIPS2drest": AMIPSEnergy(use_rest_pose=True, dim=2),
6 "AMIPS3d": AMIPSEnergy(use_rest_pose=False, dim=3),
7 "AMIPS3drest": AMIPSEnergy(use_rest_pose=True, dim=3),
8}

Definition at line 94 of file diff_elastic_energy.py.

◆ file

str diff_elastic_energy.file = path / f"{name}.hpp"

Definition at line 120 of file diff_elastic_energy.py.

◆ fparams

str diff_elastic_energy.fparams = "(const RowVectorNd &p, const double t, const int el_id, const Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3>& F"

Definition at line 122 of file diff_elastic_energy.py.

◆ grad

diff_elastic_energy.grad

Definition at line 117 of file diff_elastic_energy.py.

◆ hess

diff_elastic_energy.hess

Definition at line 117 of file diff_elastic_energy.py.

◆ idx

diff_elastic_energy.idx = i * dim + j

Definition at line 155 of file diff_elastic_energy.py.

◆ path

diff_elastic_energy.path = Path(os.path.abspath(args.output))

Definition at line 114 of file diff_elastic_energy.py.