Beispiel #1
0
 def test_pcm_init(self):
     test_molecule = QCInput.from_file(os.path.join(test_dir, "new_qchem_files/pcm.qin")).molecule
     test_TSSet = TransitionStateSet(molecule=test_molecule, pcm_dielectric=10.0)
     self.assertEqual(
         test_TSSet.rem,
         {
             "job_type": "ts",
             "gen_scfman": "true",
             "basis": "def2-tzvppd",
             "max_scf_cycles": "200",
             "method": "wb97xd",
             "geom_opt_max_cycles": "200",
             "scf_algorithm": "diis",
             "xc_grid": "3",
             "solvent_method": "pcm",
             "resp_charges": "true",
             "sym_ignore": "true",
             "symmetry": "false",
         },
     )
     self.assertEqual(
         test_TSSet.pcm,
         {"heavypoints": "194", "hpoints": "194", "radii": "uff", "theory": "cpcm", "vdwscale": "1.1"},
     )
     self.assertEqual(test_TSSet.solvent, {"dielectric": 10.0})
     self.assertEqual(test_TSSet.molecule, test_molecule)
Beispiel #2
0
 def test_smd_init(self):
     test_molecule = QCInput.from_file(
         os.path.join(test_dir, "new_qchem_files/pcm.qin")).molecule
     test_TSSet = TransitionStateSet(molecule=test_molecule,
                                     smd_solvent="water")
     self.assertEqual(
         test_TSSet.rem,
         {
             "job_type": "ts",
             "gen_scfman": "true",
             "basis": "def2-tzvppd",
             "max_scf_cycles": "100",
             "method": "wb97xd",
             "geom_opt_max_cycles": "200",
             "scf_algorithm": "diis",
             "xc_grid": "3",
             "thresh": "14",
             "s2thresh": "16",
             "solvent_method": "smd",
             "ideriv": "1",
             "resp_charges": "true",
             "sym_ignore": "true",
             "symmetry": "false",
         },
     )
     self.assertEqual(test_TSSet.smx, {"solvent": "water"})
     self.assertEqual(test_TSSet.molecule, test_molecule)