pyopensn.response.ResponseEvaluator
- class pyopensn.response.ResponseEvaluator
Response evaluator by folding sources against adjoint solutions.
Wrapper of
opensn::ResponseEvaluator
.The workflow for this utility is constructed to minimize the file reading necessary for evaluations. To begin, one should add all adjoint solutions that are desired for response computations into the buffer. Then, one should define the different forward source configurations of interest. With this, the user can now iterate over the source configurations and convolve them against all available adjoint solutions in the buffer.
- ClearForwardSources(self: pyopensn.response.ResponseEvaluator) None
Clear the existing forward sources from the response evaluator.
- EvaluateResponse(self: pyopensn.response.ResponseEvaluator, buffer_name: str) float
Evaluate a response using the specified adjoint buffer with the currently defined sources in the solver.
- Parameters:
buffer_name (str) –
???
- SetBufferOptions(self: pyopensn.response.ResponseEvaluator, **kwargs) None
???
- SetOptions(self: pyopensn.response.ResponseEvaluator, **kwargs) None
Set options for the response evaluator for adding adjoint buffers and defining forward sources.
- Parameters:
buffers (List[Dict], default=[]) – A list of dictionaries containing adjoint buffer specifications.
clear_sources (bool, default=False) – A flag to clear existing sources.
sources (List[Dict], default=[]) – A list of dictionaries containing source specification information.
- SetSourceOptions(self: pyopensn.response.ResponseEvaluator, **kwargs) None
???
- __init__(self: pyopensn.response.ResponseEvaluator, **kwargs) None
Construct a response evaluator object.
- Parameters:
lbs_problem (pyopensn.solver.Solver) – A handle to an existing LBS problem.
options (Dict) – The specification of adjoint buffers and forward to use.