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
Showing
- etc/codeTemplates/dynamicCode/codedFvOptionTemplate.H 9 additions, 1 deletionetc/codeTemplates/dynamicCode/codedFvOptionTemplate.H
- etc/codeTemplates/dynamicCode/codedPatchFunction1Template.C 0 additions, 10 deletionsetc/codeTemplates/dynamicCode/codedPatchFunction1Template.C
- etc/codeTemplates/dynamicCode/codedPatchFunction1Template.H 4 additions, 3 deletionsetc/codeTemplates/dynamicCode/codedPatchFunction1Template.H
- etc/codeTemplates/dynamicCode/codedPoints0MotionSolverTemplate.H 9 additions, 1 deletion...eTemplates/dynamicCode/codedPoints0MotionSolverTemplate.H
- etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.H 9 additions, 1 deletion...odeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.H
- etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.H 9 additions, 1 deletion...Templates/dynamicCode/fixedValuePointPatchFieldTemplate.H
- etc/codeTemplates/dynamicCode/functionObjectTemplate.H 9 additions, 1 deletionetc/codeTemplates/dynamicCode/functionObjectTemplate.H
- etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.H 9 additions, 1 deletionetc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.H
- src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.C 25 additions, 0 deletions.../derived/codedFixedValue/codedFixedValuePointPatchField.C
- src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.H 13 additions, 0 deletions.../derived/codedFixedValue/codedFixedValuePointPatchField.H
- src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C 25 additions, 0 deletions...lds/derived/codedFixedValue/codedFixedValueFvPatchField.C
- src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.H 13 additions, 0 deletions...lds/derived/codedFixedValue/codedFixedValueFvPatchField.H
- src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.C 24 additions, 0 deletions...fvPatchFields/derived/codedMixed/codedMixedFvPatchField.C
- src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.H 8 additions, 0 deletions...fvPatchFields/derived/codedMixed/codedMixedFvPatchField.H
- src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C 24 additions, 0 deletions...jects/utilities/codedFunctionObject/codedFunctionObject.C
- src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.H 8 additions, 0 deletions...jects/utilities/codedFunctionObject/codedFunctionObject.H
- src/meshTools/PatchFunction1/CodedField/CodedField.C 28 additions, 0 deletionssrc/meshTools/PatchFunction1/CodedField/CodedField.C
- src/meshTools/PatchFunction1/CodedField/CodedField.H 7 additions, 0 deletionssrc/meshTools/PatchFunction1/CodedField/CodedField.H
Please register or sign in to comment