mindspore.ops.BondForce
- class mindspore.ops.BondForce(bond_numbers, atom_numbers)[source]
Calculate the force exerted by the simple harmonic bond on the corresponding atoms. Assume the number of harmonic bonds is m and the number of atoms is n.
Because there is a large amount of inputs and each of them are related, there is no way to construct Examples using random methods. For details, refer the webpage SPONGE in MindSpore.
- Parameters
atom_numbers (int32) – the number of atoms n.
bond_numbers (int32) – the number of harmonic bonds m.
- Inputs:
uint_crd_f (Tensor) - The unsigned int coordinate value of each atom. The data type is uint32 and the shape is
.scaler_f (Tensor) - The 3-D scale factor (x, y, z), between the real space float coordinates and the unsigned int coordinates. The data type is float32 and the shape is
.atom_a (Tensor) - The first atom index of each bond. The data type is int32 and the shape is
.atom_b (Tensor) - The second atom index of each bond. The data type is int32 and the shape is
.bond_k (Tensor) - The force constant of each bond. The data type is float32 and the shape is
.bond_r0 (Tensor) - The equlibrium length of each bond. The data type is float32 and the shape is
.
- Outputs:
frc_f (Tensor) - The force felt by each atom. The data type is float32 and the shape is
.
- Supported Platforms:
GPU