Skip to content

ENH: Moving electric sources mapped from external meshes

Kutalmış Berçin requested to merge feature-map-constraint into develop

Problem

As of the current state of OpenFOAM, the following capabilities are not available:

  • The ability to dynamically update cell selections in fvOptions through input dictionary updates.
  • The absence of support in fvOptions for handling moving selections, such as moving points.
  • The inability to map static fields from external sources for further processing, for instance, when dealing with moving static electric-source fields within an electric field being simulated.

Solution

  • The cellSetOption (hence, all fvOptions derived from the cellSetOption) received three new optional input:
    • movingPoints: Use cells containing a given set of moving points.
    • mesh: Select cells based on a given secondary mesh.
    • updateSelection: Flag to enable selection updates.
  • New templated fvOption to constrain values of given fields with a source field from an external mesh: <Type>MapFieldConstraint.
  • A new hook to electricPotential function object to accomodate internal fvOption constraints.

Verification

Risks

  • No change in existing input/output.

Metadata

  • linux64ClangDPInt32Opt (clang13)
  • linux64GccDPInt32Opt
  • linux64GccSPDPInt64Debug
  • Alltest: No new error/No change in existing output
Edited by Kutalmış Berçin

Merge request reports