Simulation Results (simulation.cfg)#
The results to write are selected with one print line per variable:
print <variable>
print <variable>
...
They are written in the simulation directory simulation.sim (see
Simulation Directory (simulation.sim)) at the initial state (step 0) and at the end of every step whose
print_results is 1, one file per variable and step. Face forces are written at every
increment. With output_format hdf5 they are written to one HDF5 file instead, or as well
(see Output Formats).
- print#
A result variable to write (one
printline per variable; the variables are described below).print restartwrites restart points instead (Simulation Restart).- Values:
one of
coo,disp,vel,stress,strain_el,ori,forces,crss,slip,sliprate,rss,strain_pl,strain_pl_eq,defrate_pl,spinrate,rotrate,work,strain,strain_eq,strain_el_eq,stress_eq,defrate,defrate_eq,defrate_pl_eq,velgrad,rotrate_spin,rotrate_slip,work_pl,workrate,workrate_pl,strain_pl_sample,strain_pl_sample_eq,convergence,km_rho,km_k2,km_rhorate,dmg,dmgrate,restart; the line may be repeated- Given:
once, for the whole run
Note
print km_rho,print km_k2andprint km_rhorateare used only with a phase withhardening kocks_mecking.print dmgandprint dmgrateare used only with a phase withirradiation on.print forcesis ignored withboundary_conditions periodic(no face forces file; the macroscopic stress is written to results/macro).
Elemental quantities are computed at every quadrature point of an element, and written once per element, at the quadrature point at the element centroid.
Values are written unrounded, with 17 significant digits (an exact copy of the double-precision
value), in the format es24.16.
Components are written as follows:
vector \(v\): \(v_1, v_2, v_3\), in the sample frame;
symmetric tensor \(t\): \(t_{11}, t_{22}, t_{33}, t_{23}, t_{13}, t_{12}\) (tensor components, not engineering shears), in the sample frame;
the rates of rotation:
spinrateas the skew-tensor components \(w_{12}, w_{13}, w_{23}\),rotrate,rotrate_spinandrotrate_slipas rotation vectors (see below);the velocity gradient \(\mathbf L\) (
velgrad): its nine components \(L_{11}, L_{12}, L_{13}, L_{21}, \ldots, L_{33}\), \(L_{ij} = \partial v_i / \partial x_j\), in the sample frame;equivalent values (
*_eq): \(\sqrt{2/3\; \mathbf a' : \mathbf a'}\) of the deviatoric part \(\mathbf a'\) of a strain or rate, \(\sqrt{3/2\; \boldsymbol\sigma' : \boldsymbol\sigma'}\) (von Mises) of the stress;slip-system values: one per slip system of the element’s phase.
Nodal Results#
cooCoordinates [mm].
dispDisplacements from the initial coordinates [mm].
velVelocities [mm/s].
Elemental Results#
stressCauchy stress [MPa].
strain_elElastic strain [-].
oriCrystal orientation, written with the descriptor and convention of the input (e.g. Rodrigues vector, Euler–Bunge angles in degrees, quaternion).
stress_eqEquivalent (von Mises) stress [MPa].
strainTotal strain [-], symmetric tensor: \(\sum \mathbf d \, \Delta t\), the deformation rate of each increment times its time increment, summed in the sample frame.
strain_eq,strain_el_eqEquivalent total and elastic strain [-].
defrateDeformation rate \(\mathbf d = \mathrm{sym}(\mathbf L)\) [1/s], symmetric tensor (volumetric part included).
defrate_eqEquivalent deformation rate [1/s] (of the deviatoric part).
velgradVelocity gradient \(\mathbf L\) [1/s] (nine components, see above).
workrateWork rate \(\boldsymbol\sigma : \mathbf d\) [MPa/s].
workWork per unit volume [MPa = mJ/mm³]: the time integral of the work rate \(\boldsymbol\sigma : \mathbf d\) (Cauchy stress, deformation rate), by the trapezoidal rule over each increment, \(W_n = W_{n-1} + \tfrac{\Delta t}{2}(\dot W_{n-1} + \dot W_n)\).
rotrateLattice rotation rate [1/s]: the rotation of the crystal lattice over the last increment, divided by its time increment, as the rotation vector \(\boldsymbol\omega\) (axis times rate of the angle, \(\mathbf W \mathbf v = \boldsymbol\omega \times \mathbf v\)), sample frame, components \(\omega_1, \omega_2, \omega_3\). With orientations \(\mathbf R_{n-1}\) and \(\mathbf R_n\) (crystal to sample) at the start and end of the increment, it is the rotation vector of \(\mathbf R_n \mathbf R_{n-1}^T\) divided by \(\Delta t\). Zero at step 0.
Crystal Plasticity Results#
The following are written for elements of crystal_plasticity phases; for elements of
elastic phases the slip-system results are empty lines and the plastic results zero.
Slip-system results have one value per slip system of the element’s phase, in the slip-system
order of Crystal Plasticity.
crssSlip-system strengths \(\tau_{\mathrm{crit}}^\alpha\) [MPa] (the initial strengths at step 0).
rssResolved shear stresses \(\tau^\alpha = \mathbf s^\alpha \cdot \boldsymbol\tau \, \mathbf m^\alpha\) [MPa] of the Kirchhoff stress \(\boldsymbol\tau\) (the stress of the slip kinetics; \(\boldsymbol\tau = \beta \boldsymbol\sigma\), \(\beta\) the elastic volume ratio).
sliprateSlip rates \(\dot\gamma^\alpha\) [1/s], signed, from
rssandcrssby the slip law.slipAccumulated slip \(\gamma^\alpha = \sum \dot\gamma^\alpha \Delta t\) [-] (signed; the end-of-increment rates).
defrate_plPlastic deformation rate \(\mathbf d^p = \sum_\alpha \dot\gamma^\alpha \,\mathrm{sym}(\mathbf s^\alpha \otimes \mathbf m^\alpha)\) [1/s], symmetric tensor, sample frame.
strain_plPlastic strain [-], symmetric tensor: \(\sum \mathbf d^p \Delta t\) accumulated in the crystal frame and written in the sample frame of the current orientation: the plastic strain of the lattice, which rotates with it.
strain_pl_eqEquivalent plastic strain \(\sqrt{2/3\; \boldsymbol\varepsilon^p : \boldsymbol\varepsilon^p}\) [-] of
strain_pl(which is deviatoric).strain_pl_samplePlastic strain [-], symmetric tensor: \(\sum \mathbf d^p \Delta t\) accumulated in the sample frame: the plastic strain of the material in the specimen axes. It equals
strain_plas long as the lattice does not rotate, and differs from it once it does (a few percent of the value at a few percent strain).strain_pl_sample_eqEquivalent plastic strain [-] of
strain_pl_sample.defrate_pl_eqEquivalent plastic deformation rate \(\sqrt{2/3\; \mathbf d^p : \mathbf d^p}\) [1/s].
workrate_plPlastic work rate \(\boldsymbol\sigma : \mathbf d^p\) [MPa/s].
work_plPlastic work per unit volume [MPa]: the time integral of
workrate_plby the trapezoidal rule, aswork.spinratePlastic spin rate \(\mathbf w^p = \sum_\alpha \dot\gamma^\alpha \,\mathrm{skw}(\mathbf s^\alpha \otimes \mathbf m^\alpha)\) [1/s], skew tensor, sample frame, written as its components \(w^p_{12}, w^p_{13}, w^p_{23}\). Note that
rotrateis written as a rotation vector, whose components are \((-w_{23}, w_{13}, -w_{12})\) of its skew tensor.rotrate_spin,rotrate_slipThe two parts of the lattice rotation rate [1/s], rotation vectors in the form of
rotrate, of the two spins that rotated the lattice over the increment:rotrate_spinof the spin \(\hat{\mathbf w}^p\) of the stress solve (the continuum spin with the elastic-strain corrections of the recoupled kinematics),rotrate_slipof the slip spin \(\sum_\alpha \dot\gamma^\alpha \,\mathrm{skw}(\mathbf s^\alpha \otimes \mathbf m^\alpha)\), so thatrotrate=rotrate_spin−rotrate_slip.rotrate_slipis the tensor ofspinrate, to the tolerance of the material point solve (its slip rates are those of the orientation update, before the last strength update;sliprateandspinrateare those of the final strengths).km_rhoNetwork dislocation density \(\rho_n\) [1/mm²] of
hardening kocks_mecking(Crystal Plasticity), one value per element; 0 for elements of phases with another law. Requires a Kocks–Mecking phase.km_k2The dynamic-recovery coefficient \(k_2 = k_{20} (\dot\gamma_{k0}/\dot\Gamma)^{1/n}\) [-] of
hardening kocks_meckingat the slip rates of the element’s final stress (new in FEPX); withkm_rhoandkm_k1it gives the balance of dislocation storage \(k_1 \sqrt{\rho_n}\) and recovery \(k_2 \rho_n\). 0 where no slip occurs (\(\dot\Gamma = 0\), \(k_2\) undefined) and for elements of phases with another law. Requires a Kocks–Mecking phase.km_rhorateRate of the network dislocation density, \(\dot\rho_n = \dot\Gamma (k_1 \sqrt{\rho_n} - k_2 \rho_n)\) [1/(mm² s)], at the slip rates of the converged stress; one value per element. 0 where no slip occurs and for elements of phases with another hardening law.
dmgDamage tensor \(\mathbf H\) [1/mm²] of irradiation softening (Crystal Plasticity, new in FEPX), symmetric tensor, in the crystal frame, one per element; 0 for elements of phases without irradiation. Requires a phase with
irradiation on. It may become indefinite (a negative contact density \(\mathbf N^\alpha : \mathbf H\), see Crystal Plasticity).dmgrateRate \(\dot{\mathbf H}\) [1/(mm² s)] at the converged slip rates and \(\mathbf H\), same layout as
dmg; 0 for elements of phases without irradiation. Requires a phase withirradiation on.
Face Results#
forcesFor each face set of the mesh (for a cubic domain
x0,x1,y0,y1,z0,z1), a fileresults/forces/<faset>with a header and one row per increment:<step> <incr> <force_x> <force_y> <force_z> <area> <time>
where the forces [N] are integrated over the face,
<area>[mm²] is the current face area, and<time>[s] the time at the end of the increment. Step 0 is the initial state.
With periodic conditions (Periodic Conditions) the face forces file is not written.
Run Results#
macro(periodic conditions; written without aprintline)The macroscopic quantities, in
results/macro: a header, then one row at step 0 and one per increment:<step> <incr> <time> <Fbar_11> <Fbar_12> ... <Fbar_33> <Fdot_11> ... <Fdot_33> <s_11> <s_22> <s_33> <s_23> <s_13> <s_12>
with \(\bar{\mathbf F}\) the macroscopic deformation gradient from the drive pairs’ current separations (row by row, 11 12 13 21 … 33), \(\dot{\bar{\mathbf F}}\) its rate from their velocities [1/s], and the volume average of the Cauchy stress over the current configuration [MPa] (0 at step 0).
convergenceThe global (velocity) iterations of every increment, in the file
results/convergence, with a header and one row per iteration:<incr> <iter> <SA|NR> <r_norm> <rx_norm> <f_norm> <delu_norm> <delux_norm> <u_norm> <cg_iter>
where
<incr>is the increment (0: the initialization increment, see Solver Parameters (simulation.cfg)),<iter>the iteration within it,SAorNRits method (successive approximation or Newton–Raphson),<r_norm>and<rx_norm>the 2-norm and the largest absolute value of the residual [N],<f_norm>the 2-norm of the force vector [N],<delu_norm>and<delux_norm>the 2-norm and the largest absolute value of the velocity change divided by<u_norm>, the 2-norm of the velocities before the change [mm/s], and<cg_iter>the conjugate-gradient iterations of the linear solve. The iteration has converged when<delu_norm>falls belowglobal_tol(see Solver Parameters (simulation.cfg)). Rows are written as the run goes, so a run that stops on a failed increment shows its iterations.With
subincrementation on(Solver Parameters (simulation.cfg)), the rows of every attempt of an increment, accepted or rejected, are written under the increment’s number, with two more columns (named in the header):... <cg_iter> <attempt> <A|R>
where
<attempt>numbers the attempts of the increment in the order they were solved (1, 2, …) andAorRsays whether it was accepted or rejected. A subdivided increment thus shows its rejected attempt, then the attempts of its parts. A run with a load or stress target (Loading (simulation.cfg)) has the same two columns: an increment that passed its target by more than the tolerance and was solved again (landing) shows the discarded attempt (markedA: its solve converged; the log names it), then the next attempts, the last being the increment written. A run with load-controlled components (triaxial load control, Loading (simulation.cfg)) writes every solve of the boundary-velocity iteration, with two more columns after these:... <attempt> <A|R> <bc_iter> <solve>
where
<bc_iter>is the iteration (1, 2, …) and<solve>is 0 for the solve at the iteration’s face velocities and 11, 22 or 33 for the solve with that component’s face velocity perturbed. At a load or stress rate (two loops) the iterations of the scaling loop come first and those of the Newton loop are numbered on; the solve at zero velocity at the start of a reload is iteration 0. Otherwise the file has only the ten columns of the first row form.
Output Formats#
The format of the results is chosen with:
output_format <format> [ <format> ]
where <format> is ascii (the default) or hdf5; output_format ascii hdf5 writes
both.
ascii writes the text files described above, which Neper reads.
hdf5 writes the same results to the HDF5 file simulation.sim/simulation.h5, with the
XDMF file simulation.sim/simulation.xdmf that lets ParaView open them; with hdf5
alone no text result file is written (the directory holds
inputs/, restart/ and these two files). The HDF5 output needs a build with it
(-DFEPX_ENABLE_HDF5, see Installation); in a build without it, output_format
hdf5 is an error. Neper does not read the HDF5 file: to visualize with neper -V, use
output_format ascii (or both). On a restart (Simulation Restart) output_format must be
the same as in the run that is continued.
- output_format#
The output formats:
ascii(the text files ofsimulation.sim),hdf5(simulation.h5and its XDMF file), or both.- Values:
one of
ascii,hdf5, one or more values- Default:
ascii- Given:
once, for the whole run
The HDF5 file holds the values of the text files, unrounded (64-bit floats), with the same names, component orders, frames and units. Every dataset is a table of rows, as the HDF5 tools and Python show it: one row per node or element (in global id order) or per increment, one column per value:
Dataset |
Shape |
Content |
|---|---|---|
|
(nodes, 3) |
a node variable at step N |
|
(elements, k) |
an element variable at step N: the k values of its text file’s lines |
|
(elements, 1) |
slip-system variables: the number of values of each element (its phase’s slip systems); the table has the largest number of columns, the values after an element’s own number are NaN |
|
(rows, 7) |
|
|
(rows, 14) |
|
|
(rows, 27) |
the columns of |
|
(rows, 2) |
|
|
(nodes, 3) |
the initial coordinates [mm] |
|
(elements, 10 or 20) |
the nodes of each element (1-based ids, the mesh file’s order) |
|
(elements, 10 or 20) |
the same, 0-based, in the node order of XDMF and VTK (used by the XDMF file) |
|
(elements, 1) |
the elset id (of the mesh file) and the phase of each element |
Each table of rows has an attribute columns (the column names). The root group has the
attributes format (fepx-hdf5 1), num_nodes, num_elts, num_elsets,
num_ranks, element_type (tet10 or hex20), orientation (the orientation
descriptor and convention of ori), inputs, node_results, elt_results and
num_steps (the completed steps).
The XDMF file has one grid per step written, at the step’s time: the elements, the step’s
coordinates (coo if printed, otherwise the initial ones), and as fields elset,
phase and every variable printed. Node variables are vectors; element variables are
scalars, vectors (rotrate, rotrate_spin, rotrate_slip) or tables of k components
in the order of the text files (for a symmetric tensor 11 22 33 23 13 12: ParaView numbers
them 0 to 5). The file is rewritten at every step, so the results of a run that stopped can be
opened.
Reading the file in Python, for example with h5py:
import h5py
with h5py.File("simulation.sim/simulation.h5", "r") as h5:
steps = h5["/results/steps"][:] # (step, time) rows
stress = h5["/results/elts/stress/stress.step3"][:] # (elements, 6)
force = h5["/results/forces/z1"][:] # step incr Fx Fy Fz area time
print(h5.attrs["element_type"], stress[:, 2].mean(), force[-1, 4])
Restart Points#
print restart writes restart points (see Simulation Restart), not a result.