Extract dielectric tensor from local DB

Hello!

I am running atomate on a single test node and was experimenting with submitting elastic and dielectric workflows to compare the tensorial values obtained to self performed VASP calculations. My workflows have run and completed properly and I have been able to extract the elastic tensor info from a run via the bit of code following this message. My question is how can I extract the dielectric tensor and derived properties in a similar way?

My mongo instance does not have a ‘dielectric’ collection in the main collection, i.e.

$mongo

use fireworks
show collections
bandstructure_fs.chunks
bandstructure_fs.files
counter
dos_fs.chunks
dos_fs.files
elasticity
fireworks
fw_gridfs.files
fw_id_assigner
gibbs_tasks
launches
tasks
workflows

#code I used for extracting elastic properties.

import numpy as np
from pymatgen import Structure
from atomate.vasp.database import VaspCalcDb
from atomate.utils.utils import get_database
from pymatgen.analysis.elasticity.elastic import ElasticTensor

# create the atomate db from your db.json
PATH_TO_MY_DB_JSON = '/home/dennis/atomate/config/db.json'
atomate_db = VaspCalcDb.from_db_file(PATH_TO_MY_DB_JSON,admin=True)
elasticity_collection=atomate_db.db['elasticity']
elasticity_entry=elasticity_collection.find_one({'formula_pretty':'SrTiO3'})

#for item in elasticity_entry['derived_properties']:
# print(item)

Cij = elasticity_entry['elastic_tensor']['ieee_format'] # convert to pymatgen object
Sij = np.linalg.inv(Cij)
Sij = Sij * 1e3

print("Cij [GPa]")
for item in Cij:
print(item)
print()

print("Sij [1e-12 Pa]")
for item in Sij:
print(item)

Also it does look like the workflows completed properly and did not fizzle:

$lpad get_wflows
{
“created_on”: “2020-01-22T04:00:12.700000”,
“name”: “SrTiO3–1”,
“states_list”: “C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C”,
“state”: “COMPLETED”
},
{
“created_on”: “2020-01-28T21:01:14.398000”,
“state”: “COMPLETED”,
“states_list”: “C-C”,
“name”: “SrTiO3–27”
}