Skip to content
Snippets Groups Projects

FIX: functions objects in optimisation

Merged Vaggelis Papoutsis requested to merge fix-function-objects-in-optimisation into develop

In steadyOptimisation mode, each time-step corresponds to an optimisation cycle and is sub-cycled, to allow for iterating the flow and adjoint equations. This sub-cycling does not allow the execution of function objects. This was circumvented in 8947735b, by explicitly calling the execution of the function objects in the simple solver of adjointOptimisationFoam.

However, each sub-cycled iteration is a writeTime, if the current optimisation cycle corresponds to a writeTime. This means that function objects with a

writeControl write;

will be executed in each iteration of the flow equations, within this specific optimisation cycle, leading to a lot of disc space and file clutter, if the function object outputs fields (e.g. yPlus).

8947735b is partially rolled back, by protecting the call to the execution of the function objects with a bool that defaults to false, restoring the default behavior to that prior to 8947735b.

Merge request reports

Approval is optional

Merged by Andrew HeatherAndrew Heather 1 year ago (Dec 21, 2023 9:50am UTC)

Merge details

  • Changes merged into develop with f88e06ca.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply