|
3 | 3 | class GaussianTests(InputTests):
|
4 | 4 |
|
5 | 5 | def test_sp_SE(self):
|
6 |
| - params = { |
7 |
| - 'nproc': 8, |
| 6 | + params = { 'nproc': 8, |
8 | 7 | 'mem': '10000MB',
|
9 | 8 | 'type': 'Single-Point Energy',
|
10 | 9 | 'in_file': 'Cl.xyz',
|
@@ -2331,3 +2330,206 @@ def test_mem_GB(self):
|
2331 | 2330 |
|
2332 | 2331 | self.assertTrue(self.is_equivalent(REF, inp.input_file))
|
2333 | 2332 |
|
| 2333 | + def test_exchange_correlation_functional(self): |
| 2334 | + params = { |
| 2335 | + 'nproc': 8, |
| 2336 | + 'mem': '10GB', |
| 2337 | + 'type': 'Single-Point Energy', |
| 2338 | + 'in_file': 'Cl.xyz', |
| 2339 | + 'software': 'Gaussian', |
| 2340 | + 'method': 'pkzbpkzb', |
| 2341 | + 'basis_set': '3-21G', |
| 2342 | + 'charge': '-1', |
| 2343 | + } |
| 2344 | + |
| 2345 | + inp = self.generate_calculation(**params) |
| 2346 | + |
| 2347 | + REF = """ |
| 2348 | + %chk=calc.chk |
| 2349 | + %nproc=8 |
| 2350 | + %mem=10000MB |
| 2351 | + #p sp PKZBPKZB/3-21G |
| 2352 | +
|
| 2353 | + File created by ccinput |
| 2354 | +
|
| 2355 | + -1 1 |
| 2356 | + Cl 0.0 0.0 0.0 |
| 2357 | +
|
| 2358 | + """ |
| 2359 | + |
| 2360 | + self.assertTrue(self.is_equivalent(REF, inp.input_file)) |
| 2361 | + |
| 2362 | + def test_exchange_correlation_functional2(self): |
| 2363 | + params = { |
| 2364 | + 'nproc': 8, |
| 2365 | + 'mem': '10GB', |
| 2366 | + 'type': 'Single-Point Energy', |
| 2367 | + 'in_file': 'Cl.xyz', |
| 2368 | + 'software': 'Gaussian', |
| 2369 | + 'method': 'pBeHpkzb', |
| 2370 | + 'basis_set': '3-21G', |
| 2371 | + 'charge': '-1', |
| 2372 | + } |
| 2373 | + |
| 2374 | + inp = self.generate_calculation(**params) |
| 2375 | + |
| 2376 | + REF = """ |
| 2377 | + %chk=calc.chk |
| 2378 | + %nproc=8 |
| 2379 | + %mem=10000MB |
| 2380 | + #p sp PBEhPKZB/3-21G |
| 2381 | +
|
| 2382 | + File created by ccinput |
| 2383 | +
|
| 2384 | + -1 1 |
| 2385 | + Cl 0.0 0.0 0.0 |
| 2386 | +
|
| 2387 | + """ |
| 2388 | + |
| 2389 | + self.assertTrue(self.is_equivalent(REF, inp.input_file)) |
| 2390 | + |
| 2391 | + def test_restricted_HF(self): |
| 2392 | + params = { |
| 2393 | + 'nproc': 8, |
| 2394 | + 'mem': '10GB', |
| 2395 | + 'type': 'Single-Point Energy', |
| 2396 | + 'in_file': 'Cl.xyz', |
| 2397 | + 'software': 'Gaussian', |
| 2398 | + 'method': 'rHF', |
| 2399 | + 'basis_set': '3-21G', |
| 2400 | + 'charge': '-1', |
| 2401 | + } |
| 2402 | + |
| 2403 | + inp = self.generate_calculation(**params) |
| 2404 | + |
| 2405 | + REF = """ |
| 2406 | + %chk=calc.chk |
| 2407 | + %nproc=8 |
| 2408 | + %mem=10000MB |
| 2409 | + #p sp RHF/3-21G |
| 2410 | +
|
| 2411 | + File created by ccinput |
| 2412 | +
|
| 2413 | + -1 1 |
| 2414 | + Cl 0.0 0.0 0.0 |
| 2415 | +
|
| 2416 | + """ |
| 2417 | + |
| 2418 | + self.assertTrue(self.is_equivalent(REF, inp.input_file)) |
| 2419 | + |
| 2420 | + def test_unrestricted_HF(self): |
| 2421 | + params = { |
| 2422 | + 'nproc': 8, |
| 2423 | + 'mem': '10GB', |
| 2424 | + 'type': 'Single-Point Energy', |
| 2425 | + 'in_file': 'Cl.xyz', |
| 2426 | + 'software': 'Gaussian', |
| 2427 | + 'method': 'uHF', |
| 2428 | + 'basis_set': '3-21G', |
| 2429 | + 'charge': '-1', |
| 2430 | + } |
| 2431 | + |
| 2432 | + inp = self.generate_calculation(**params) |
| 2433 | + |
| 2434 | + REF = """ |
| 2435 | + %chk=calc.chk |
| 2436 | + %nproc=8 |
| 2437 | + %mem=10000MB |
| 2438 | + #p sp UHF/3-21G |
| 2439 | +
|
| 2440 | + File created by ccinput |
| 2441 | +
|
| 2442 | + -1 1 |
| 2443 | + Cl 0.0 0.0 0.0 |
| 2444 | +
|
| 2445 | + """ |
| 2446 | + |
| 2447 | + self.assertTrue(self.is_equivalent(REF, inp.input_file)) |
| 2448 | + |
| 2449 | + def test_unknown_HF(self): |
| 2450 | + params = { |
| 2451 | + 'nproc': 8, |
| 2452 | + 'mem': '10GB', |
| 2453 | + 'type': 'Single-Point Energy', |
| 2454 | + 'in_file': 'Cl.xyz', |
| 2455 | + 'software': 'Gaussian', |
| 2456 | + 'method': 'iHF', |
| 2457 | + 'basis_set': '3-21G', |
| 2458 | + 'charge': '-1', |
| 2459 | + } |
| 2460 | + |
| 2461 | + inp = self.generate_calculation(**params) |
| 2462 | + |
| 2463 | + REF = """ |
| 2464 | + %chk=calc.chk |
| 2465 | + %nproc=8 |
| 2466 | + %mem=10000MB |
| 2467 | + #p sp iHF/3-21G |
| 2468 | +
|
| 2469 | + File created by ccinput |
| 2470 | +
|
| 2471 | + -1 1 |
| 2472 | + Cl 0.0 0.0 0.0 |
| 2473 | +
|
| 2474 | + """ |
| 2475 | + |
| 2476 | + self.assertTrue(self.is_equivalent(REF, inp.input_file)) |
| 2477 | + |
| 2478 | + def test_unrestricted_DFT(self): |
| 2479 | + params = { |
| 2480 | + 'nproc': 8, |
| 2481 | + 'mem': '10GB', |
| 2482 | + 'type': 'Single-Point Energy', |
| 2483 | + 'in_file': 'Cl.xyz', |
| 2484 | + 'software': 'Gaussian', |
| 2485 | + 'method': 'uM062x', |
| 2486 | + 'basis_set': '3-21G', |
| 2487 | + 'charge': '-1', |
| 2488 | + } |
| 2489 | + |
| 2490 | + inp = self.generate_calculation(**params) |
| 2491 | + |
| 2492 | + REF = """ |
| 2493 | + %chk=calc.chk |
| 2494 | + %nproc=8 |
| 2495 | + %mem=10000MB |
| 2496 | + #p sp UM062X/3-21G |
| 2497 | +
|
| 2498 | + File created by ccinput |
| 2499 | +
|
| 2500 | + -1 1 |
| 2501 | + Cl 0.0 0.0 0.0 |
| 2502 | +
|
| 2503 | + """ |
| 2504 | + |
| 2505 | + self.assertTrue(self.is_equivalent(REF, inp.input_file)) |
| 2506 | + |
| 2507 | + def test_restricted_DFT(self): |
| 2508 | + params = { |
| 2509 | + 'nproc': 8, |
| 2510 | + 'mem': '10GB', |
| 2511 | + 'type': 'Single-Point Energy', |
| 2512 | + 'in_file': 'Cl.xyz', |
| 2513 | + 'software': 'Gaussian', |
| 2514 | + 'method': 'rPBE0', |
| 2515 | + 'basis_set': '3-21G', |
| 2516 | + 'charge': '-1', |
| 2517 | + } |
| 2518 | + |
| 2519 | + inp = self.generate_calculation(**params) |
| 2520 | + |
| 2521 | + REF = """ |
| 2522 | + %chk=calc.chk |
| 2523 | + %nproc=8 |
| 2524 | + %mem=10000MB |
| 2525 | + #p sp RPBE1PBE/3-21G |
| 2526 | +
|
| 2527 | + File created by ccinput |
| 2528 | +
|
| 2529 | + -1 1 |
| 2530 | + Cl 0.0 0.0 0.0 |
| 2531 | +
|
| 2532 | + """ |
| 2533 | + |
| 2534 | + self.assertTrue(self.is_equivalent(REF, inp.input_file)) |
| 2535 | + |
0 commit comments