KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This response function interface provides a unique interface for all possible ways to calculate the value and gradient of a response. More...
Public Member Functions | |
def | RunCalculation (self, calculate_gradient) |
def | Initialize (self) |
def | UpdateDesign (self, updated_model_part, variable) |
def | InitializeSolutionStep (self) |
def | CalculateValue (self) |
def | CalculateGradient (self) |
def | FinalizeSolutionStep (self) |
def | Finalize (self) |
def | GetValue (self) |
def | GetNodalGradient (self, variable) |
def | GetElementalGradient (self, variable) |
def | GetConditionalGradient (self, variable) |
def | IsEvaluatedInFolder (self) |
This response function interface provides a unique interface for all possible ways to calculate the value and gradient of a response.
The interface is designed to be used in e.g. optimization, where the value and gradient of a response is required, however the exact method of gradient calculation is of secondary importance.
This might be done using e.g. adjoint sensitivity analysis capabilities of Kratos, or even a simple finite differencing method.
(Do not confuse this class with the kratos/response_functions/adjoint_response_function.h, which is an implementation detail for the adjoint sensitivity analysis in Kratos)
def response_functions.response_function_interface.ResponseFunctionInterface.CalculateGradient | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.CalculateValue | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.Finalize | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.FinalizeSolutionStep | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.GetConditionalGradient | ( | self, | |
variable | |||
) |
def response_functions.response_function_interface.ResponseFunctionInterface.GetElementalGradient | ( | self, | |
variable | |||
) |
def response_functions.response_function_interface.ResponseFunctionInterface.GetNodalGradient | ( | self, | |
variable | |||
) |
def response_functions.response_function_interface.ResponseFunctionInterface.GetValue | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.Initialize | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.InitializeSolutionStep | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.IsEvaluatedInFolder | ( | self | ) |
def response_functions.response_function_interface.ResponseFunctionInterface.RunCalculation | ( | self, | |
calculate_gradient | |||
) |
def response_functions.response_function_interface.ResponseFunctionInterface.UpdateDesign | ( | self, | |
updated_model_part, | |||
variable | |||
) |