www.mooseframework.org
ComputeStressBase.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "ComputeStressBase.h"
12 #include "Function.h"
13 
16 {
18  params.suppressParameter<bool>("use_displaced_mesh");
19  return params;
20 }
21 
23  : ComputeGeneralStressBase(parameters)
24 {
25  if (getParam<bool>("use_displaced_mesh"))
26  mooseError("The stress calculator needs to run on the undisplaced mesh.");
27 }
ComputeGeneralStressBase is the direct base class for stress calculator materials that may leverage q...
static InputParameters validParams()
void suppressParameter(const std::string &name)
static InputParameters validParams()
ComputeStressBase(const InputParameters &parameters)
void mooseError(Args &&... args) const