**process GB_distance#

Description#

This post-processing calculates, for each Gauss point within a grain, the distance to the nearest grain boundary and, optionally, to the free surface. These distances are output along with selected additional variables if specified.

Syntax#

**process GB_distance \(~\,\) *file file-name \(~\,\) *elset elset-name [ *free_surface_plane free-surf-normal free-surf-offset ] [ *free_surface_nset free-surf-nset-name ] [ *list_var list-var ] [ *output_coord ] [ *precision precision ] [ *optimizer ] [ *store ]

*file file-name

name of the output file

*elset elset-name

name of the elset defining the grain

*free_surface_plane
free-surf-normal

vector defining the free surface normal

free-surf-offset

distance from the origin to the free surface plane

*free_surface_nset free-surf-nset-name

name of the nset defining the free surface

*list_var list-var

list of desired output variables

*output_coord

output also the XYZ coordinates of the Gauss points

*precision precision

number of significant digits in the output file. By default 6.

*optimizer

do not print the header in the output file

*store

store the distances in the post-processor result file

Example#

****post_processing
 ***global_post_processing
  **file integ
  **process GB_distance
****return