openfoam/etc/codeTemplates/dynamicCode
Mark Olesen b59ae32d68 ENH: provide dictionary access for coded BCs etc (#1922)
- in some cases, additional dictionary inputs are useful for extending
  the input parameters or functionality of dynamic coded conditions.

  Typically this can be used to provide a simple set of dictionary
  inputs that are used to drive specific code, but allows changing the
  inputs without causing a recompilation.

  Accessed with this type of code:
  ```
  const dictionary& dict = this->codeContext();
  ```

boundary conditions and function objects:

* specify an additional codeContext dictionary entry:
  ```
  codeContext
  {
      ...
  }
  ```

PatchFunction1:

* The code context dictionary is simply the dictionary used to specify
  the PatchFunction1 coefficients.

  To replicated persistant data, use local member static data.
  Eg,
  ```
  code
  #{
      // Persistent (Member) Data
      static autoPtr<Function1<scalar>> baseVel;
      static autoPtr<Function1<vector>> baseDir;
      ...
  #}
  ```

fvOptions:

* currently not applicable
2021-06-07 10:28:15 +02:00
..
codedFvOptionTemplate.C ENH: improve codeTemplates 2021-06-07 09:48:21 +02:00
codedFvOptionTemplate.H ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
codedPatchFunction1Template.C ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
codedPatchFunction1Template.H ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
codedPoints0MotionSolverTemplate.C ENH: improve codeTemplates 2021-06-07 09:48:21 +02:00
codedPoints0MotionSolverTemplate.H ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
codeStreamTemplate.C ENH: support use of 'vector' in #calc directive (fixes #2039) 2021-03-29 16:00:11 +02:00
fixedValueFvPatchFieldTemplate.C ENH: improve codeTemplates 2021-06-07 09:48:21 +02:00
fixedValueFvPatchFieldTemplate.H ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
fixedValuePointPatchFieldTemplate.C ENH: improve codeTemplates 2021-06-07 09:48:21 +02:00
fixedValuePointPatchFieldTemplate.H ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
functionObjectTemplate.C ENH: improve codeTemplates 2021-06-07 09:48:21 +02:00
functionObjectTemplate.H ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
mixedFvPatchFieldTemplate.C ENH: improve codeTemplates 2021-06-07 09:48:21 +02:00
mixedFvPatchFieldTemplate.H ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00