PolyFEM
Loading...
Searching...
No Matches
elasticity_rhs.py File Reference

Go to the source code of this file.

Namespaces

namespace  elasticity_rhs
 

Functions

 elasticity_rhs.Det (mat)
 
 elasticity_rhs.sigma_fun (j, ee, C, dim)
 
 elasticity_rhs.linear_elasticity (disp_grad, def_grad)
 
 elasticity_rhs.hooke (disp_grad, def_grad)
 
 elasticity_rhs.saint_venant (disp_grad, def_grad)
 
 elasticity_rhs.neo_hookean (disp_grad, def_grad)
 
 elasticity_rhs.divergence (sigma)
 
 elasticity_rhs.parse_args ()
 

Variables

 elasticity_rhs.args = parse_args()
 
list elasticity_rhs.dims = [2, 3]
 
list elasticity_rhs.names = ["linear_elasticity", "hooke", "saint_venant", "neo_hookean"]
 
str elasticity_rhs.cpp = "#include <polyfem/autogen/auto_elasticity_rhs.hpp>\n\n\n"
 
str elasticity_rhs.hpp = "#pragma once\n\n#include <polyfem/utils/ElasticityUtils.hpp>\n#include <polyfem/utils/AutodiffTypes.hpp>\n#include <Eigen/Dense>\n\n"
 
 elasticity_rhs.x = Symbol('x')
 
 elasticity_rhs.y = Symbol('y')
 
 elasticity_rhs.z = Symbol('z')
 
 elasticity_rhs.X = Matrix([x, y])
 
 elasticity_rhs.f = Matrix([Function('f0')(x, y), Function('f1')(x, y)])
 
 elasticity_rhs.disp_grad = f.jacobian(X)
 
tuple elasticity_rhs.def_grad = (eye(dim) + disp_grad)
 
 elasticity_rhs.sigma = hooke(disp_grad, def_grad)
 
 elasticity_rhs.div = divergence(sigma)
 
 elasticity_rhs.c99 = pretty_print.C99_print(div)
 
str elasticity_rhs.signature = "void " + name + "_" + str(dim) + "d_function(const AutodiffHessianPt &pt"
 
 elasticity_rhs.path = os.path.abspath(args.output)