Skip to content

Commit

Permalink
Addressing Ben and Stephanie's comments for p91 material model pr
Browse files Browse the repository at this point in the history
 added another p91 test that runs a creep simulation reproducing results from the milestone report
  • Loading branch information
lynnmunday committed Nov 24, 2020
1 parent 11db9ab commit cf536b4
Show file tree
Hide file tree
Showing 12 changed files with 757 additions and 229 deletions.
16 changes: 8 additions & 8 deletions doc/content/source/materials/P91LAROMANCEStressUpdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

## Description

`P91LAROMANCEStressUpdate` implements the necessary coefficients to compute a creep rate for HT9
stainless steel by sampling a Los Alamos Reduced Order Model Applied to Nonlinear Constitutive
`P91LAROMANCEStressUpdate` implements the necessary coefficients to compute a creep rate for Grade 91
chrome moly alloy steel by sampling a Los Alamos Reduced Order Model Applied to Nonlinear Constitutive
Equations (LAROMANCE) model. `P91LAROMANCEStressUpdate` implements the coefficients required by
[ADLAROMANCEStressUpdateBase](ADLAROMANCEStressUpdateBase.md), which in turn utilizes the radial
[ADLAROMANCEStressUpdateBase](LAROMANCE.md), which in turn utilizes the radial
return method implemented in [ADRadialReturnStressUpdate](/ADRadialReturnStressUpdate.md) to
compute a creep rate. The coefficients are formulated by many precomputed lower-length scale
simulations, and calibrated to Legendre polynomials. See
ADLAROMANCEStressUpdateBase](ADLAROMANCEStressUpdateBase.md) for a more extensive review of the
[ADLAROMANCEStressUpdateBase](LAROMANCE.md) for a more extensive review of the
model.

## Example Input Syntax

!listing test/tests/tensor_mechanics/ht9_rom/2drz.i block=Materials/rom_stress_prediction
!listing test/tests/p91_rom/verification.i block=Materials/rom_stress_prediction

!syntax parameters /Materials/tensor_mechanics/P91LAROMANCEStressUpdate
!syntax parameters /Materials/P91LAROMANCEStressUpdate

!syntax inputs /Materials/tensor_mechanics/P91LAROMANCEStressUpdate
!syntax inputs /Materials/P91LAROMANCEStressUpdate

!syntax children /Materials/tensor_mechanics/P91LAROMANCEStressUpdate
!syntax children /Materials/P91LAROMANCEStressUpdate

!bibtex bibliography
1 change: 1 addition & 0 deletions include/materials/P91LAROMANCEStressUpdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ class P91LAROMANCEStressUpdate : public ADLAROMANCEStressUpdateBase
virtual std::vector<std::vector<std::vector<Real>>> getInputLimits() override;
virtual std::vector<std::vector<std::vector<Real>>> getCoefs() override;
virtual std::vector<unsigned int> getTilings() override;
virtual Real romStrainCutoff() override { return 1.0e-9; }
};
196 changes: 31 additions & 165 deletions src/materials/P91LAROMANCEStressUpdate.C
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ P91LAROMANCEStressUpdate::validParams()
"Maximum increment of density of cell (glissile) dislocations.");
params.addRangeCheckedParam<Real>(
"initial_wall_dislocation_density",
6.0e12,
10.0e12,
"initial_wall_dislocation_density >= 6.0e12 & "
"initial_wall_dislocation_density <= 6.0e12",
"initial_wall_dislocation_density <= 18.0e12",
"Cell wall (locked) dislocation density initial value (1/m^2).");
params.addRangeCheckedParam<Real>(
"max_relative_wall_dislocation_increment",
Expand All @@ -55,175 +55,41 @@ P91LAROMANCEStressUpdate::P91LAROMANCEStressUpdate(const InputParameters & param
std::vector<unsigned int>
P91LAROMANCEStressUpdate::getTilings()
{
// indicies are [input]
return {1, 1, 3, 1, 3, 1};
}

std::vector<std::vector<std::vector<ROMInputTransform>>>
P91LAROMANCEStressUpdate::getTransform()
{
return {{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}},
{{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG},
{ROMInputTransform::LINEAR,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG,
ROMInputTransform::LOG,
ROMInputTransform::LINEAR,
ROMInputTransform::LOG}}};
// clang-format off
return {{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}},
{{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG},
{ROMInputTransform::LINEAR, ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::LOG, ROMInputTransform::LINEAR, ROMInputTransform::LOG}}};
// clang-format on
}

std::vector<std::vector<std::vector<Real>>>
Expand Down
12 changes: 0 additions & 12 deletions test/tests/d91_rom/gold/verification_out.csv

This file was deleted.

28 changes: 0 additions & 28 deletions test/tests/d91_rom/tests

This file was deleted.

Loading

0 comments on commit cf536b4

Please sign in to comment.