apply

apply(odb_or_odb_name=None, request_F=False, request_P=False, request_CS=False, request_CF=False, CS_name='CONF_STRESS', CF_name='CONF_FORCE', method='mbf', e_expression='SENER+PENER')[source]

Apply the configurational force computation to an odb. Additionally, this function prints a log summary after the computation.

See also

The computation is done by conforce_abq.field_output_util.add_field_outputs()

Parameters:
  • odb_or_odb_name (Union[None, str, Odb]) – If None, use current odb. If a string, lookup the name of the odb in the list of opened odb and use this odb. If an Odb, use the given Odb object

  • request_F (bool) – True, to create a FieldOutput for the deformation gradient

  • request_P (bool) – True, to create a FieldOutput for the First Piola-Kirchhoff stresses

  • request_CS (bool) – True, to create a FieldOutput for the configurational stresses

  • request_CF (bool) – True, to create a FieldOutput for the configurational forces

  • CS_name (str) – name-prefix of the configurational stress FieldOutput (only considered if request_CS == True)

  • CF_name (str) – name of the configurational force FieldOutput (only considered if request_CF == True)

  • method (str) – see conforce.cf_c.compute_CS()

  • e_expression (str) – see conforce_abq.field_output_util.eval_field_output_expression()

Returns:

Odb with new requested FieldOutputs

Return type:

Odb