mech2d.calculation package
Submodules
mech2d.calculation.calculator module
- class mech2d.calculation.calculator.Calculator[source]
Bases:
objectMethods
This method must be implemented by child classes, it parse of output data.
This method must be implemented by child classes, it should write all the input files and prepare environment for execution
mech2d.calculation.runtask module
mech2d.calculation.vasp module
- class mech2d.calculation.vasp.VASP(inputdir, structure, incar=None, kpoints=None, potcar=None, structure_fmt='POSCAR', outputdir=None, params=None)[source]
Bases:
mech2d.calculation.calculator.Calculator,monty.json.MSONableMethods
as_dict()A JSON serializable dict representation of an object.
from_dict(d)- param d
Dict representation.
get_energy(outputdir)This method must be implemented by child classes, it parse of output data.
This method must be implemented by child classes, it should write all the input files and prepare environment for execution
to_json()Returns a json string representation of the MSONable object.
unsafe_hash()Returns an hash of the current object.
validate_monty(v)pydantic Validator for MSONable pattern
get_stress
- static get_energy(outputdir)[source]
This method must be implemented by child classes, it parse of output data.
- Returns
None
- name = 'VASP'