CPFEM for Calculix

From EVOCD
(Difference between revisions)
Jump to: navigation, search
(Purpose)
(Building Calculix with CPFEM: Added comment out ABA include)
 
(5 intermediate revisions by one user not shown)
Line 4: Line 4:
 
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.
 
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.
  
==Source Files==
+
==Building Calculix with CPFEM==
  
Download the following files and save them WITHOUT the *.txt extensions.
+
<ol>
 
+
<li>Download the following files and save them in the <code>src/</code> directory of your Calculix distribution WITHOUT the *.txt extensions. Make sure the names are all lowercase except for <code>Makefile.inc</code>.</li>
* umat_main.f
+
<ul>
* Makefile.inc
+
<li>[[Media:Umat main.f.txt|umat_main.f]]</li>
* umat_wrapper.f
+
<li>[[Media:Makefile.inc.txt|Makefile.inc]]</li>
 
+
<li>[[Media:umat_xtal_wrapper.f.txt|umat_xtal_wrapper.f]]</li>
Save these in the <code>src/</code> directory of your Calculix distribution.
+
</ul>
 
+
<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>
Also download the crystal plasticity UMAT, make any necessary edits, then save in the <code>src/</code> directory as well.
+
<pre>
 
+
      subroutine umat_xtal ( stress, statev,  ddsdde,  sse,    spd,
Finally, open a terminal, and from the <code>src/</code> directory, type:
+
</pre>
 +
<li>Additionally, copy the following parameter files to the <code>src/</code> directory</li>
 +
<ul>
 +
<li><code>params_xtal.inc</code></li>
 +
<li><code>numbers.inc</code></li>
 +
</ul>
 +
<li>Open a terminal, and from the <code>src/</code> directory, type</li>
 
<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 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>
  
An executable will be created, named something like <code>ccx_#.##</code>, where the <code>#.##</code> corresponds to your Calculix version.
+
[[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