openfoam/etc/codeTemplates
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
..
app CONFIG: incorrect BC code templates (fixes #1885) 2020-10-20 14:23:40 +02:00
BC CONFIG: incorrect BC code templates (fixes #1885) 2020-10-20 14:23:40 +02:00
dynamicCode ENH: provide dictionary access for coded BCs etc (#1922) 2021-06-07 10:28:15 +02:00
functionObject COMP: bad template for foamNewFunctionObject (closes #1987) 2021-01-22 12:46:31 +01:00
source CONFIG: incorrect BC code templates (fixes #1885) 2020-10-20 14:23:40 +02:00
template CONFIG: incorrect BC code templates (fixes #1885) 2020-10-20 14:23:40 +02:00
foamCommentStyles STYLE: additional divisions for code templates 2017-07-11 08:48:10 +02:00
foamScript REL: Release preparations 2019-12-23 09:49:23 +00:00
removed-file GIT: remove old "removed-file" dependency stubs, version file (#1994) 2021-02-10 12:43:07 +01:00