CPFEM for Calculix

From EVOCD
(Difference between revisions)
Jump to: navigation, search
(Completed build directions)
(Building Calculix with CPFEM: Added comment out ABA include)
 
(4 intermediate revisions by one user not shown)
Line 11: Line 11:
 
  <li>[[Media:Umat main.f.txt|umat_main.f]]</li>
 
  <li>[[Media:Umat main.f.txt|umat_main.f]]</li>
 
  <li>[[Media:Makefile.inc.txt|Makefile.inc]]</li>
 
  <li>[[Media:Makefile.inc.txt|Makefile.inc]]</li>
  <li>[[Media:umat_xtal_wrapper.f.txt|umat_wrapper.f]]</li>
+
  <li>[[Media:umat_xtal_wrapper.f.txt|umat_xtal_wrapper.f]]</li>
 
  </ul>
 
  </ul>
<li>Download the crystal plasticity [[Code: ABAQUS CPFEM|UMAT]], make any necessary edits, then save in the <code>src/</code> directory as well</li>
+
<li>Download the crystal plasticity [[Code: ABAQUS CPFEM|UMAT]]. Change the subroutine name from <code>umat</code> to <code>umat_xtal</code> as shown below. Also, comment out the line <code>include 'ABA_PARAM.INC'</code> by putting a "C" at the beginning of the line. Make any other necessary edits, then save in the <code>src/</code> directory as well</li>
 +
<pre>
 +
      subroutine umat_xtal ( stress,  statev,  ddsdde,  sse,    spd,
 +
</pre>
 
<li>Additionally, copy the following parameter files to the <code>src/</code> directory</li>
 
<li>Additionally, copy the following parameter files to the <code>src/</code> directory</li>
 
  <ul>
 
  <ul>
Line 22: Line 25:
 
<pre>make</pre>
 
<pre>make</pre>
 
<li>An executable will be created, named something like <code>ccx_#.##</code>, where the <code>#.##</code> corresponds to your Calculix version</li>
 
<li>An executable will be created, named something like <code>ccx_#.##</code>, where the <code>#.##</code> corresponds to your Calculix version</li>
 +
<li>An input deck like [[Media:Single-element.inp.txt|this one]], similar to the Abaqus input deck, can then be used to run CPFEM. In particular, the first four letters of the material name must be <code>XTAL</code>.</li>
 
</ol>
 
</ol>
 +
 +
[[Category:Mesoscale]]
 +
[[Category:Metals]]
 +
[[Category:CPFEM]]
 +
[[Category:Crystal Plasticity]]

Latest revision as of 15:43, 27 April 2017

[edit] Purpose

This page provides the updates needed for Calculix to run large deformation codes, specifically the crystal plasticity UMAT designed for Abaqus found here. The process outlined here is for Linux. A similar process could be followed for Windows, though the compilation step will be different depending on the compilers used.

[edit] Building Calculix with CPFEM

  1. Download the following files and save them in the src/ directory of your Calculix distribution WITHOUT the *.txt extensions. Make sure the names are all lowercase except for Makefile.inc.
  2. Download the crystal plasticity UMAT. Change the subroutine name from umat to umat_xtal as shown below. Also, comment out the line include 'ABA_PARAM.INC' by putting a "C" at the beginning of the line. Make any other necessary edits, then save in the src/ directory as well
  3.       subroutine umat_xtal ( stress,  statev,  ddsdde,  sse,     spd,
    
  4. Additionally, copy the following parameter files to the src/ directory
    • params_xtal.inc
    • numbers.inc
  5. Open a terminal, and from the src/ directory, type
  6. make
  7. An executable will be created, named something like ccx_#.##, where the #.## corresponds to your Calculix version
  8. An input deck like this one, similar to the Abaqus input deck, can then be used to run CPFEM. In particular, the first four letters of the material name must be XTAL.
Personal tools
Namespaces

Variants
Actions
home
Materials
Material Models
Design
Resources
Projects
Education
Toolbox