feat: aliases for old function versions wih apt warnings/errors
@@ -24,6 +24,7 @@ from elastica._linalg import (
_batch_matrix_transpose,
_batch_vec_oneD_vec_cross,
)
+import warnings
@njit(cache=True)
@@ -105,6 +106,16 @@ def node_to_element_mass_or_force(input):
return output
+def nodes_to_elements(input):
+ warnings.warn(
+ "This function is now deprecated, please use "
+ "elastica.interaction.node_to_element_mass_or_force() "
+ "instead for node-to-element interpolation of mass/forces.",
+ DeprecationWarning,
+ )
+ return node_to_element_mass_or_force(input)
+
+
@njit(cache=True)
def elements_to_nodes_inplace(vector_in_element_frame, vector_in_node_frame):
"""
@@ -755,6 +766,14 @@ def node_to_element_velocity(mass, node_velocity_collection):
return element_velocity_collection
+def node_to_element_pos_or_vel(vector_in_node_frame):
+ raise NotImplementedError(
+ "This function is not implemented. For node-to-element interpolation please use: \n"
+ "elastica.interaction.node_to_element_position() for rod position \n"
+ "elastica.interaction.node_to_element_velocity() for rod velocity"
+ )
+
+
@njit(cache=True)
def slender_body_forces(
tangents, velocity_collection, dynamic_viscosity, lengths, radius, mass
