- 31 May, 2022 1 commit
-
-
Mark OLESEN authored
- this allows more flexibility when defining the location or intensity of sources. For example, { type scalarSemiImplicitSource; volumeMode specific; selectionMode all; sources { tracer0 { explicit { type exprField; functions<scalar> { square { type square; scale 0.0025; level 0.0025; frequency 10; } } expression #{ (hypot(pos().x() + 0.025, pos().y()) < 0.01) ? fn:square(time()) : 0 #}; } } } } ENH: SemiImplicitSource: handle "sources" with explicit/implicit entries - essentially the same as injectionRateSuSp with Su/Sp, but potentially clearer in purpose. ENH: add Function1 good() method to define if function can be evaluated - for example, provides a programmatic means of avoiding the 'none' function
-
- 27 May, 2022 1 commit
-
-
Mark OLESEN authored
-
- 17 May, 2022 1 commit
-
-
Mark OLESEN authored
-
- 17 Jan, 2022 1 commit
-
-
mattijs authored
-
- 13 Jan, 2022 1 commit
-
-
Mark OLESEN authored
-
- 03 Dec, 2021 2 commits
-
-
Mark OLESEN authored
- update coded templates with qualified names GIT: add in missing PatchFunction1 constant() method - was missed in a previous commit
-
Mark OLESEN authored
- marks if the value is considered to be independent of 'x'. Propagate into PatchFunction1 instead ad hoc checks there. - adjust method name in PatchFunction1 to 'whichDb()' to reflect final changes in Function1 method names. ENH: add a Function1 'none' placeholder function - This is principally useful for interfaces that expect a Function1 but where it is not necessarily used by a particular submodel. TUT: update Function1 creation to use objectRegistry
-
- 26 Nov, 2021 2 commits
-
-
-
- extend handling of uniform PatchFunction1 to include new Function1 types and pass through the objectRegistry information
-
- 09 Nov, 2021 1 commit
-
-
Mark OLESEN authored
STYLE: declaration order of topoSet, resize_nocopy for sortedOrder STYLE: remove cstring dependency from SHA1 STYLE: use Ostream endEntry()
-
- 05 Nov, 2021 1 commit
-
-
Mark OLESEN authored
STYLE: use alias to mark partialFaceAreaWeightAMI deprecation after v2012
-
- 28 Jul, 2021 1 commit
-
-
Mark OLESEN authored
- previously had a patch-size check, which caused a zero-sized patch to be "sticky" as uniform Zero regardless of what the original input stated (eg, "constant 0.5") This was caused by short-circuiting logic that circumvented reading on zero-size patches.
-
- 15 Jul, 2021 1 commit
-
-
Mark OLESEN authored
-
- 09 Jun, 2021 1 commit
-
-
BUG: MappedFile: ensure rmap() and automap() consistent
-
- 07 Jun, 2021 2 commits
-
-
Mark OLESEN authored
- 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
-
Mark OLESEN authored
- meshTools include/library for many (most) coded items - add PatchFunction1 include for coded BCs to provide ready access to Function1 and PatchFunction1
-
- 26 Apr, 2021 1 commit
-
-
Mark OLESEN authored
- additional debug information - improve support for dictionary specification of constant, polynomial and table entries. These previously only worked properly for primitiveEntry, which causes confusion. - extend table Function1 to include TableFile functionality. Simplifies switching and modifying content.
-
- 19 Apr, 2021 1 commit
-
-
- refactor and provision for additional code context
-
- 09 Mar, 2021 1 commit
-
-
Mark OLESEN authored
- direct check of punctuation. For example, while (!tok.isPunctuation(token::BEGIN_LIST)) .. instead of while (!(tok.isPunctuation() && tok.pToken() == token::BEGIN_LIST)) .. Using direct comparison (tok != token::BEGIN_LIST) can be fragile when comparing int values: int c = readChar(is); while (tok != c) .. // Danger, uses LABEL comparison! - direct check of word. For example, if (tok.isWord("uniform")) .. instead of if (tok.isWord() && tok.wordToken() == "uniform") .. - make token lineNumber() a setter method ENH: adjust internal compound method empty() -> moved() - support named compound tokens STYLE: setter method for stream indentation
-
- 26 Nov, 2020 1 commit
-
-
Mark OLESEN authored
-
- 19 Nov, 2020 2 commits
-
-
Mark OLESEN authored
- For slow oscillations it can be more intuitive to specify the period. ENH: separate mark/space for Square - makes it easier to tailor the desired intervals. BUG: incorrect square wave fraction with negative phase shifts ENH: additional cosine Function1 STYLE: avoid code duplication by inheriting Cosine/Square from Sine.
-
Mark OLESEN authored
- easier support for non-mandatory functions. In some boundary conditions it can be desirable to support additional functions, but not necessarily require them. Make this easier to support with a Function1, PatchFunction1 NewIfPresent() selector. - support for compatibility lookups - harmonize branching logic and error handling between Function1 and PatchFunction1. ENH: refactor a base class for Function1, PatchFunction1 - includes base characteristics, patch or scalar information ENH: additional creation macros - makeConcreteFunction1, makeConcretePatchFunction1Type for adding a non-templated function into the correct templated selection table. makeScalarPatchFunction1 for similarity with makeScalarFunction1
-
- 15 Oct, 2020 1 commit
-
-
Mark OLESEN authored
-
- 25 Sep, 2020 1 commit
-
-
Mark OLESEN authored
-
- 14 Jul, 2020 1 commit
-
-
Mark OLESEN authored
- This reflects the pre-existing coding situation where const_cast was used throughout to effect the same. STYLE: fix private/protected access - CodedField, codedMixedFvPatchField
-
- 25 Jun, 2020 1 commit
-
-
Mark OLESEN authored
-
- 11 Jun, 2020 1 commit
-
-
mattijs authored
This change abstracts out the reading of "boundaryData". It should now support OpenFOAM headers and with that also binary input.
-
- 02 Jun, 2020 1 commit
-
-
Mark OLESEN authored
- previously introduced `getOrDefault` as a dictionary _get_ method, now complete the transition and use it everywhere instead of `lookupOrDefault`. This avoids mixed usage of the two methods that are identical in behaviour, makes for shorter names, and promotes the distinction between "lookup" access (ie, return a token stream, locate and return an entry) and "get" access (ie, the above with conversion to concrete types such as scalar, label etc).
-
- 23 May, 2020 1 commit
-
-
Mark OLESEN authored
-
- 20 May, 2020 1 commit
-
-
mattijs authored
-
- 16 May, 2020 1 commit
-
-
mattijs authored
This makes coded versions easier.
-
- 18 Mar, 2020 1 commit
-
-
mattijs authored
-
- 20 Feb, 2020 1 commit
-
-
Mark OLESEN authored
- emit "constant " and "uniform " as separate word/space combination
-
- 18 Nov, 2019 1 commit
-
-
Mark OLESEN authored
- now indicate that the dictionary entry is missing, not that it is an unknown function type. STYLE: adjust PatchFunction1New.C to have logic structure look similar
-
- 31 Oct, 2019 1 commit
-
-
OpenFOAM bot authored
-
- 09 Nov, 2019 1 commit
-
-
Mark OLESEN authored
- now indicate that the dictionary entry is missing, not that it is an unknown function type.
-
- 12 Jul, 2019 1 commit
-
-
Mark OLESEN authored
-
- 06 Jun, 2019 1 commit
-
-
Andrew Heather authored
-
- 04 Apr, 2019 1 commit
-
-
Mark OLESEN authored
- this improves overall consistency and makes re-reading as a generic patch field behave properly when the underlying patch has zero size.
-
- 07 Jan, 2019 1 commit
-
-
Mark OLESEN authored
- reduced clutter when iterating over containers
-