@@ -32,7 +32,7 @@ void define_tangential_potential(py::module_& m)
32
32
py::overload_cast<
33
33
const TangentialCollisions&, const CollisionMesh&,
34
34
const Eigen::MatrixXd&, const Eigen::MatrixXd&,
35
- const Eigen::MatrixXd&, const BarrierPotential &, const double ,
35
+ const Eigen::MatrixXd&, const NormalPotential &, const double ,
36
36
const double , const bool >(
37
37
&TangentialPotential::force, py::const_),
38
38
R"ipc_Qu8mg5v7(
@@ -44,8 +44,8 @@ void define_tangential_potential(py::module_& m)
44
44
rest_positions: Rest positions of the vertices (rowwise).
45
45
lagged_displacements: Previous displacements of the vertices (rowwise).
46
46
velocities: Current displacements of the vertices (rowwise).
47
- barrier_potential: Barrier potential (used for normal force magnitude).
48
- barrier_stiffness: Barrier stiffness (used for normal force magnitude).
47
+ normal_potential: Normal potential (used for normal force magnitude).
48
+ normal_stiffness: Normal stiffness (used for normal force magnitude).
49
49
dmin: Minimum distance (used for normal force magnitude).
50
50
no_mu: whether to not multiply by mu
51
51
@@ -54,14 +54,14 @@ void define_tangential_potential(py::module_& m)
54
54
)ipc_Qu8mg5v7" ,
55
55
py::arg (" collisions" ), py::arg (" mesh" ), py::arg (" rest_positions" ),
56
56
py::arg (" lagged_displacements" ), py::arg (" velocities" ),
57
- py::arg (" barrier_potential " ), py::arg (" barrier_stiffness " ),
57
+ py::arg (" normal_potential " ), py::arg (" normal_stiffness " ),
58
58
py::arg (" dmin" ) = 0 , py::arg (" no_mu" ) = false )
59
59
.def (
60
60
" force_jacobian" ,
61
61
py::overload_cast<
62
62
const TangentialCollisions&, const CollisionMesh&,
63
63
const Eigen::MatrixXd&, const Eigen::MatrixXd&,
64
- const Eigen::MatrixXd&, const BarrierPotential &, const double ,
64
+ const Eigen::MatrixXd&, const NormalPotential &, const double ,
65
65
const TangentialPotential::DiffWRT, const double >(
66
66
&TangentialPotential::force_jacobian, py::const_),
67
67
R"ipc_Qu8mg5v7(
@@ -73,8 +73,8 @@ void define_tangential_potential(py::module_& m)
73
73
rest_positions: Rest positions of the vertices (rowwise).
74
74
lagged_displacements: Previous displacements of the vertices (rowwise).
75
75
velocities: Current displacements of the vertices (rowwise).
76
- barrier_potential: Barrier potential (used for normal force magnitude).
77
- barrier_stiffness: Barrier stiffness (used for normal force magnitude).
76
+ normal_potential: Normal potential (used for normal force magnitude).
77
+ normal_stiffness: Normal stiffness (used for normal force magnitude).
78
78
wrt: The variable to take the derivative with respect to.
79
79
dmin: Minimum distance (used for normal force magnitude).
80
80
@@ -83,14 +83,14 @@ void define_tangential_potential(py::module_& m)
83
83
)ipc_Qu8mg5v7" ,
84
84
py::arg (" collisions" ), py::arg (" mesh" ), py::arg (" rest_positions" ),
85
85
py::arg (" lagged_displacements" ), py::arg (" velocities" ),
86
- py::arg (" barrier_potential " ), py::arg (" barrier_stiffness " ),
86
+ py::arg (" normal_potential " ), py::arg (" normal_stiffness " ),
87
87
py::arg (" wrt" ), py::arg (" dmin" ) = 0 )
88
88
.def (
89
89
" force" ,
90
90
py::overload_cast<
91
91
const TangentialCollision&, const VectorMax12d&,
92
92
const VectorMax12d&, const VectorMax12d&,
93
- const BarrierPotential &, const double , const double ,
93
+ const NormalPotential &, const double , const double ,
94
94
const bool >(&TangentialPotential::force, py::const_),
95
95
R"ipc_Qu8mg5v7(
96
96
Compute the friction force.
@@ -100,8 +100,8 @@ void define_tangential_potential(py::module_& m)
100
100
rest_positions: Rest positions of the vertices (rowwise).
101
101
lagged_displacements: Previous displacements of the vertices (rowwise).
102
102
velocities: Current displacements of the vertices (rowwise).
103
- barrier_potential: Barrier potential (used for normal force magnitude).
104
- barrier_stiffness: Barrier stiffness (used for normal force magnitude).
103
+ normal_potential: Normal potential (used for normal force magnitude).
104
+ normal_stiffness: Normal stiffness (used for normal force magnitude).
105
105
dmin: Minimum distance (used for normal force magnitude).
106
106
no_mu: Whether to not multiply by mu
107
107
@@ -110,14 +110,14 @@ void define_tangential_potential(py::module_& m)
110
110
)ipc_Qu8mg5v7" ,
111
111
py::arg (" collision" ), py::arg (" rest_positions" ),
112
112
py::arg (" lagged_displacements" ), py::arg (" velocities" ),
113
- py::arg (" barrier_potential " ), py::arg (" barrier_stiffness " ),
113
+ py::arg (" normal_potential " ), py::arg (" normal_stiffness " ),
114
114
py::arg (" dmin" ) = 0 , py::arg (" no_mu" ) = false )
115
115
.def (
116
116
" force_jacobian" ,
117
117
py::overload_cast<
118
118
const TangentialCollision&, const VectorMax12d&,
119
119
const VectorMax12d&, const VectorMax12d&,
120
- const BarrierPotential &, const double ,
120
+ const NormalPotential &, const double ,
121
121
const TangentialPotential::DiffWRT, const double >(
122
122
&TangentialPotential::force_jacobian, py::const_),
123
123
R"ipc_Qu8mg5v7(
@@ -128,8 +128,8 @@ void define_tangential_potential(py::module_& m)
128
128
rest_positions: Rest positions of the vertices (rowwise).
129
129
lagged_displacements: Previous displacements of the vertices (rowwise).
130
130
velocities: Current displacements of the vertices (rowwise).
131
- barrier_potential: Barrier potential (used for normal force magnitude).
132
- barrier_stiffness: Barrier stiffness (used for normal force magnitude).
131
+ normal_potential: Normal potential (used for normal force magnitude).
132
+ normal_stiffness: Normal stiffness (used for normal force magnitude).
133
133
wrt: Variable to differentiate the friction force with respect to.
134
134
dmin: Minimum distance (used for normal force magnitude).
135
135
@@ -138,6 +138,6 @@ void define_tangential_potential(py::module_& m)
138
138
)ipc_Qu8mg5v7" ,
139
139
py::arg (" collision" ), py::arg (" rest_positions" ),
140
140
py::arg (" lagged_displacements" ), py::arg (" velocities" ),
141
- py::arg (" barrier_potential " ), py::arg (" barrier_stiffness " ),
141
+ py::arg (" normal_potential " ), py::arg (" normal_stiffness " ),
142
142
py::arg (" wrt" ), py::arg (" dmin" ) = 0 );
143
143
}
0 commit comments