DDD-XRD Matlab implementation and validation: Difference between revisions

From Micro and Nano Mechanics Group
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
== Analytical non-singular displacement gradient formulation ==
== Analytical non-singular displacement gradient formulation ==


It can be shown that the deformation gradient <math>G_{ml} = u_{m,l}</math> produced by a dislocation loop <math>C</math> with Burgers vector <math>\vec{b}</math> can be written as (see Bertin and Cai, CMS, 2018):
It can be shown that the displacement gradient <math>G_{ml} = u_{m,l}</math> produced by a dislocation loop <math>C</math> with Burgers vector <math>\vec{b}</math> can be written as (see Bertin and Cai, CMS, 2018):


{|border="0" align="center"
{|border="0" align="center"
Line 88: Line 88:
</math>
</math>
|}
|}



== Matlab implementation ==
== Matlab implementation ==
Line 96: Line 95:
The computation of the non-singular displacement gradient based on the expressions provided in the above (Bertin and Cai, CMS, 2018) is implemented in a Matlab code available here:
The computation of the non-singular displacement gradient based on the expressions provided in the above (Bertin and Cai, CMS, 2018) is implemented in a Matlab code available here:


[[File:ddd_xrd_matlab.tar]]
[[Media:ddd_xrd_matlab.tar | ddd_xrd_matlab.tar]]


Function <tt>displacement_gradient_seg.m</tt> readily implements the displacement gradient for a straight dislocation segment as presented in the above. An optimized version (faster) is provided in <tt>displacement_gradient_seg_opt.m</tt>. The calculation of the displacement gradient field for a set of dislocation segments can be performed using function <tt>displacement_gradient_structure.m</tt>. Note that this implementation uses the [http://micro.stanford.edu/~caiwei/Forum/2005-12-05-DDLab/ DDLab] data structure to represent the dislocations.
Function <tt>displacement_gradient_seg.m</tt> readily implements the displacement gradient for a straight dislocation segment using the expressions presented in the above. An optimized version (faster) is provided in <tt>displacement_gradient_seg_opt.m</tt>. The calculation of the displacement gradient field for a set of dislocation segments can be performed using function <tt>displacement_gradient_structure.m</tt>. Note that this implementation uses the [http://micro.stanford.edu/~caiwei/Forum/2005-12-05-DDLab/ DDLab] data structure to represent the dislocations.


=== Validation: triangular loop test case ===
=== Validation: triangular loop test case ===

Latest revision as of 18:25, 24 May 2018

DDD-XRD approach

DDD-XRD: Matlab implementation and validation

Nicolas Bertin and Wei Cai

January 2018


This page provides Matlab functions to compute the displacement gradient associated with discrete dislocation segments based on the non-singular formulation presented in Bertin and Cai, CMS, 2018.


Analytical non-singular displacement gradient formulation

It can be shown that the displacement gradient produced by a dislocation loop with Burgers vector can be written as (see Bertin and Cai, CMS, 2018):

where is the norm of the distance vector linking the field point and the coordinate spanning the dislocation line, is the permutation tensor, and is Poisson's ratio of the medium. denotes the third derivative of the radius vector wrt. the field coordinate.

Following the isotropic Burgers distribution proposed in Cai et al., JMPS, 2006, the singularity in the above expression can be eliminated by employing the modified radius vector defined as:

where denotes the dislocation core radius. With this, the displacement gradient produced by a straight dislocation segment with end points and can be analytically expressed as:

where line integrals and are given by:

where denotes the unit dislocation line tangent, and is the vector linking field point to its orthogonal projection on the dislocation line.

When adopting the following segment parametric representation

an analytical expression for the line integrals is obtained as follows:

Matlab implementation

Code

The computation of the non-singular displacement gradient based on the expressions provided in the above (Bertin and Cai, CMS, 2018) is implemented in a Matlab code available here:

ddd_xrd_matlab.tar

Function displacement_gradient_seg.m readily implements the displacement gradient for a straight dislocation segment using the expressions presented in the above. An optimized version (faster) is provided in displacement_gradient_seg_opt.m. The calculation of the displacement gradient field for a set of dislocation segments can be performed using function displacement_gradient_structure.m. Note that this implementation uses the DDLab data structure to represent the dislocations.

Validation: triangular loop test case

The code includes a test case (test_triangular_loop.m) that (i) provides an example of how to use the calculation functions, and (ii) performs calculations that validate the non-singular displacement gradient formulation.

This test case does the following:

  • generates a random triangular dislocation loop
  • computes the displacement gradient field along a line using the non-singular expression provided in Bertin and Cai, CMS, 2018.
  • compares it with the displacement gradient field obtained by numerically differentiating the displacement field
  • compares the stress obtained from the displacement gradient field with the non-singular stress expression provided in Cai et al., JMPS, 2006