FunctionExpansion
A class for handling expansions of an internal coordinate potential up to 4th order Uses Cartesian derivative matrices and the Cartesian <-> Internal normal mode Jacobian
Properties and Methods
expand_function: method
CoordinateTransforms: type
FunctionDerivatives: type
__init__(self, derivatives, transforms=None, center=None, ref=0, weight_coefficients=True):
derivatives:Iterable[np.ndarray | Tensor]Derivatives of the function being expanded
transforms:Iterable[np.ndarray | Tensor] | NoneJacobian and higher order derivatives in the coordinates
center:np.ndarray | Nonethe reference point for expanding aobut
ref:float | np.ndarraythe reference point value for shifting the expansion
weight_coefficients:boolwhether the derivative terms need to be weighted or not
@property
tensors(self):
get_expansions(self, coords, squeeze=True):
coords:np.ndarray | CoordinateSetCoordinates to evaluate the expansion at
:returns:_No description…
expand(self, coords, squeeze=True):
Returns a numerical value for the expanded coordinates
coords:np.ndarrayNo description…
:returns:float | np.ndarrayNo description…
__call__(self, coords, **kw):
get_tensor(self, i):
Defines the overall tensors of derivatives
i:order of derivative tensor to provideNo description…
:returns:TensorNo description…
Examples
FunctionExpansion
A class for handling expansions of an internal coordinate potential up to 4th order Uses Cartesian derivative matrices and the Cartesian <-> Internal normal mode Jacobian
Properties and Methods
expand_function: method
CoordinateTransforms: type
FunctionDerivatives: type
__init__(self, derivatives, transforms=None, center=None, ref=0, weight_coefficients=True):
derivatives:Iterable[np.ndarray | Tensor]Derivatives of the function being expanded
transforms:Iterable[np.ndarray | Tensor] | NoneJacobian and higher order derivatives in the coordinates
center:np.ndarray | Nonethe reference point for expanding aobut
ref:float | np.ndarraythe reference point value for shifting the expansion
weight_coefficients:boolwhether the derivative terms need to be weighted or not
@property
tensors(self):
get_expansions(self, coords, squeeze=True):
coords:np.ndarray | CoordinateSetCoordinates to evaluate the expansion at
:returns:_No description…
expand(self, coords, squeeze=True):
Returns a numerical value for the expanded coordinates
coords:np.ndarrayNo description…
:returns:float | np.ndarrayNo description…
__call__(self, coords, **kw):
get_tensor(self, i):
Defines the overall tensors of derivatives
i:order of derivative tensor to provideNo description…
:returns:TensorNo description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings