https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CostSensitivity.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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#pragma once
11
12#include "Material.h"
14#include "MathUtils.h"
15
21{
22public:
24
25 CostSensitivity(const InputParameters & parameters);
26
27 virtual void computeQpProperties() override;
28
29protected:
31 const std::string _base_name;
37 const MaterialPropertyName _design_density_name;
42};
Computes the cost sensitivity for SIMP optimization algorithms that consider a cost constraint,...
const std::string _base_name
Base name of the material system.
MaterialProperty< Real > & _sensitivity
The cost sensitivity material generated by this object.
const MaterialPropertyName _design_density_name
Pseudo-density variable name.
const MaterialProperty< Real > & _cost
Cost material property.
virtual void computeQpProperties() override
static InputParameters validParams()
const MaterialProperty< Real > & _dcostdrho
Derivative of the cost with respect to the pseudo-density variable.
const VariableValue & _design_density
Pseudo-density variable.
VariableValueTempl< false > VariableValue