generate_primary_fitting_data
- emmet.core.elasticity.generate_primary_fitting_data(deforms, stresses, task_ids=None, dir_names=None)
Get the primary fitting data, i.e. data obtained from a calculation.
- Return type:
tuple[list[Strain],list[Stress],list[Union[MPID,AlphaID]] |None,list[str] |None]- Parameters:
deforms (list[Deformation])
stresses (list[Stress])
task_ids (list[Annotated[MPID | AlphaID, BeforeValidator(func=~emmet.core.types.typing._fault_tolerant_id_serde, json_schema_input_type=PydanticUndefined), PlainSerializer(func=~emmet.core.types.typing.<lambda>, return_type=PydanticUndefined, when_used=always)]] | None)
dir_names (list[str] | None)
- Args:
deforms: primary deformations stresses: primary stresses task_ids: ids of the tasks that generate the data dir_names: directories where the calculations are performed
- Returns:
strains: primary strains second_pk_stresses: primary second Piola-Kirchhoff stresses task_ids: ids of the tasks that generate the data dir_names: directories where the calculations are performed