#include <OptimizationFunctionInnerProductHelper.h>
Public Member Functions | |
OptimizationFunctionInnerProductHelper (const InputParameters ¶meters) | |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Member Functions | |
void | setCurrentTime (Real time, Real dt) |
This function sets up member variables for the inner product accumulation at certain time. More... | |
void | update (const Point &q_point, Real q_inner_product) |
Accumulates integration for inner product by multiplying the given value by the function's parameterGradient. More... | |
void | add (const OptimizationFunctionInnerProductHelper &other) |
Accumulates inner product integration in _curr_time_ip vector from another object. More... | |
void | getVector (std::vector< Real > &result) |
Gathers _curr_time_ip from other processors and performs time integration. More... | |
Private Attributes | |
FEProblemBase & | _ip_problem |
FEProblem used for getting system quantities. More... | |
const OptimizationFunction *const | _function |
Function used in optimization. More... | |
const Real & | _reverse_time_end |
The final time when we want to reverse the time index in function evaluation. More... | |
Real | _simulation_time |
Time the simulation is at. More... | |
Real | _actual_time |
Time the actual problem is at, defined by _reverse_time_end. More... | |
std::vector< std::pair< Real, std::vector< Real > > > | _time_ip |
Vector holding data for each time. More... | |
std::vector< Real > * | _curr_time_ip = nullptr |
Vector for current time. More... | |
Definition at line 24 of file OptimizationFunctionInnerProductHelper.h.
OptimizationFunctionInnerProductHelper::OptimizationFunctionInnerProductHelper | ( | const InputParameters & | parameters | ) |
Definition at line 32 of file OptimizationFunctionInnerProductHelper.C.
|
protected |
Accumulates inner product integration in _curr_time_ip vector from another object.
This is used for thread joining.
Definition at line 79 of file OptimizationFunctionInnerProductHelper.C.
Referenced by ElementOptimizationFunctionInnerProduct::threadJoin(), and SideOptimizationFunctionInnerProduct::threadJoin().
Gathers _curr_time_ip from other processors and performs time integration.
result | Return vector of inner products |
Definition at line 87 of file OptimizationFunctionInnerProductHelper.C.
Referenced by ElementOptimizationFunctionInnerProduct::finalize(), and SideOptimizationFunctionInnerProduct::finalize().
This function sets up member variables for the inner product accumulation at certain time.
The time step size is needed in order to calculate the actual simulation time (for adjoint calculations)
time | Current simulation time, the actual time is computed via _reverse_time_end |
dt | The current time step size |
Definition at line 47 of file OptimizationFunctionInnerProductHelper.C.
Referenced by ElementOptimizationFunctionInnerProduct::initialize(), and SideOptimizationFunctionInnerProduct::initialize().
|
protected |
Accumulates integration for inner product by multiplying the given value by the function's parameterGradient.
q_point | The quadrature point location |
q_inner_product | The inner product value for the current quadrature point, which is multiplied by the function parameter gradient. |
Definition at line 67 of file OptimizationFunctionInnerProductHelper.C.
Referenced by ElementOptimizationFunctionInnerProduct::execute(), and SideOptimizationFunctionInnerProduct::execute().
|
static |
Definition at line 21 of file OptimizationFunctionInnerProductHelper.C.
Referenced by ElementOptimizationFunctionInnerProduct::validParams(), and SideOptimizationFunctionInnerProduct::validParams().
|
private |
Time the actual problem is at, defined by _reverse_time_end.
Definition at line 75 of file OptimizationFunctionInnerProductHelper.h.
Referenced by setCurrentTime(), and update().
|
private |
Vector for current time.
Definition at line 80 of file OptimizationFunctionInnerProductHelper.h.
Referenced by add(), getVector(), setCurrentTime(), and update().
|
private |
Function used in optimization.
Definition at line 68 of file OptimizationFunctionInnerProductHelper.h.
Referenced by OptimizationFunctionInnerProductHelper(), and update().
|
private |
FEProblem used for getting system quantities.
Definition at line 65 of file OptimizationFunctionInnerProductHelper.h.
Referenced by getVector().
|
private |
The final time when we want to reverse the time index in function evaluation.
Definition at line 71 of file OptimizationFunctionInnerProductHelper.h.
Referenced by setCurrentTime().
|
private |
Time the simulation is at.
Definition at line 73 of file OptimizationFunctionInnerProductHelper.h.
|
private |
Vector holding data for each time.
Definition at line 78 of file OptimizationFunctionInnerProductHelper.h.
Referenced by getVector(), and setCurrentTime().