[docs]@dataclasses.dataclassclassLJSinglePoint:"""This is a testing Node! It uses ASE'S Lennard-Jones calculator with default arguments. The calculator accept all elements and implements energy, forces and stress, making it very useful for creating dummy data. """epsilon:float=1.0sigma:float=1.0rc:float=10.0
[docs]defget_calculator(self,**kwargs):"""Get an LJ ase calculator."""calc=LennardJones(epsilon=self.epsilon,sigma=self.sigma,rc=self.rc,)returncalc
[docs]@dataclasses.dataclassclassEMTSinglePoint:"""This is a testing Node! It uses ASE'S EMT calculator with default arguments. The calculator accept all elements and implements energy, forces, making it very useful for creating dummy data. """
[docs]defget_calculator(self,**kwargs):"""Get an EMT ase calculator."""returnEMTCalculator()