- Feb 24, 2020
-
-
Mark OLESEN authored
- use point::uniform in more places
-
Mark OLESEN authored
- continuation of commit 57d2eabc (2019-02-22)
-
Mark OLESEN authored
- missed detection of system libraries when installed with multiarch paths like /usr/lib/x86_64-linux-gnu CONFIG: improve handling of group/user config files (#928) - changed bashrc handling of FOAM_CONFIG_NOUSER to use FOAM_CONFIG_MODE instead. Propagate into foamEtcFile to make this a stickier control. This change allows better control, but also enables cluster installations to define their own value within the OpenFOAM prefs.sh file to prevent users accidentally mis-configuring things if necessary. - remove undocumented handling of an (a)ll mode in foamEtcFile to avoid potential pitfalls. - add support for FOAM_CONFIG_ETC handling. This allows injection of an extra search layer when finding project etc files ENH: improvements to foamConfigurePaths (#928) - handle FOAM_CONFIG_ETC implicitly, or explicitly with the new -etc option. STYLE: more explicit wording in foamConfigurePaths usage (#1602) - document that an...
-
- Feb 21, 2020
-
-
Mark OLESEN authored
- string expansions have supported "${var:-default}" syntax for several versions, but this did not apply plain dictionary expansions. Eg, the following did not parse massFlow ${entry1:-100}; ENH: remove content and length restriction on '${..}' quoted variables - allows this type of content: velocity2 ${velocity1:- ( 0 -100 10) }; - accept empty parameter strings for entries. This allows the following expansion to work as expected: hex (n1 n2..) ${inletBlock:-} (10 10 10) simpleGrading (1 1 1) ie, optionally define the cellZone name for a given block ENH: add single parameter dictionary writeEntry method. - the dictionary knows its own name (dictName), which can be used when writing content
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- Feb 20, 2020
-
-
sergio authored
-
Mark OLESEN authored
- allows custom tuning of compilation parameters
-
Mark OLESEN authored
- emit "constant " and "uniform " as separate word/space combination
-
- Feb 19, 2020
-
-
Mark OLESEN authored
- changes in IOstreamOption, Switch, writeObject
-
Mark OLESEN authored
Style changes: - use std algorithm for some stringOps internals - pass SubStrings iterators by const reference ENH: special nullptr handling for ISstream getLine - pass through to istream::ignore to support read and discard
-
Mark OLESEN authored
- additional boundaryData options (header, binary, compression) - remove vtkSurfaceWriter "writePrecision" keyword (1806 compatibilty) and use "precision" in format option sub-dictionary.
-
sergio authored
-
Mattijs Janssens authored
Feature.interPCFoam See merge request !338
-
-
-
-
1) Adding interfaceHeight FO 2) Adding interfaceHeatResistance mass transfer model to interCondensatingEvaporatingFoam with spread source approach 3) Reworking framework for icoReactingMultiphaseInterFoam
-
Mattijs Janssens authored
Feature write object See merge request !341
-
- more consistent handling of file format (#1587)
-
- reduces the number of parameters that are being passed around and allows future additions into the IOstreamOption with mininal effort.
-
- was missing cast to symmTensor
-
- Feb 18, 2020
-
-
Mark OLESEN authored
- can be convenient to bundle IO options as a single parameter
-
Mark OLESEN authored
STYLE: change return type of NewOFstream from Ostream to OSstream
-
Mark OLESEN authored
- expose the write IOstreamOption in Time
-
Mark OLESEN authored
* Support default values for format/compress enum lookups. - Avoids situations where the preferred default format is not ASCII. For example, with dictionary input: format binar; The typing mistake would previously have caused formatEnum to default to ASCII. We can now properly control its behaviour. IOstream::formatEnum ( dict.get<word>("format"), IOstream::BINARY ); Allowing us to switch ascii/binary, using BINARY by default even in the case of spelling mistakes. The mistakes are flagged, but the return value can be non-ASCII. * The format/compression lookup behave as pass-through if the lookup string is empty. - Allows the following to work without complaint IOstream::formatEnum ( dict.getOrDefault("format", word::null), IOstream::BINARY ); - Or use constructor-like failsafe method IOstream::formatEnum("format", dict, IOstream::BINARY); - Apply the same behaviour with setting stream format/compression from a word. is.format("binar"); will emit a warning, but leave the stream format UNCHANGED * Rationalize versionNumber construction - constexpr constructors where possible. Default construct is the "currentVersion" - Construct from token to shift the burden to versionNumber. Support token as argument to version(). Now: is.version(headerDict.get<token>("version")); or failsafe constructor method is.version ( IOstreamOption::versionNumber("version", headerDict) ); Before (controlled input): is.version ( IOstreamOption::versionNumber ( headerDict.get<float>("version") ) ); Old, uncontrolled input - has been removed: is.version(headerDict.lookup("version")); * improve consistency, default behaviour for IOstreamOption construct - constexpr constructors where possible - add copy construct with change of format. - construct IOstreamOption from streamFormat is now non-explicit. This is a commonly expected result with no ill-effects
-
Mark OLESEN authored
- align Switch more with Enum. Now have find(), found() static methods. Constructors with failsafe option. The find() method makes for clearer coding: OLD Switch sw(some_string, true); // NB: true = allowBad if (sw.valid()) ... NOW Switch sw = Switch::find(some_string); if (sw.good()) ... or if (Switch::found(some_string)) ... - improve construct from dictionary to handle all valid token types. Previously just read in a word. - Remove asText() method - replaced by c_str() and str() several versions ago.
-
Mark OLESEN authored
- allows reuse as base implementation for IOstream::check()
-
Mark OLESEN authored
- The warning in Field.C has been emitted since 2005. - The warning in mappedPatchBase.C has been emitted since 2012.
-
Mark OLESEN authored
- an old pre-OpenFOAM transitional feature (prior to 2004) for named faces.
-
Mark OLESEN authored
-
Mark OLESEN authored
- underflow/overflow handling for type narrowing. Eg, double -> float, int64 -> int32
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- renamed 'core/' -> 'base/' to avoid gitignore masking when re-adding files - rename 'nas/' to 'nastran/' for more clarity - relocated OBJstream from surfMesh to fileFormats STYLE: remove unused parseNASCoord. Was deprecated 2017-09
-
Mark OLESEN authored
-
Andrew Heather authored
ENH: Improve polynomial equations and analytical eigendecompositions See merge request !340
-