mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- can be used to check the validity of input values.
Example:
dict.getCheck<label>("nIters", greaterOp1<label>(0));
dict.getCheck<scalar>("relax", scalarMinMax::zero_one());
- use 'get' prefix for more regular dictionary methods.
Eg, getOrDefault() as alternative to lookupOrDefault()
- additional ops for convenient construction of predicates
ENH: make dictionary writeOptionalEntries integer
- allow triggering of Fatal if default values are used
ENH: additional scalarRange static methods: ge0, gt0, zero_one
- use GREAT instead of VGREAT for internal placeholders
- additional MinMax static methods: gt, le
OpenFOAM Configuration
The main OpenFOAM settings are located in the parent etc/ directory.
Both POSIX (bash, dash,...) and csh shells are supported.
To configure OpenFOAM, source either the etc/bashrc or the
etc/cshrc file, as appropriate for your shell.
These source the following files in the config.sh/ or
config.csh/ directories:
setup: finalize setup of OpenFOAM environment (called by bashrc,cshrc)settings: core settingsaliases: aliases for interactive shellsunset: sourced to clear as many OpenFOAM environment settings as possiblempi: MPI communications library settingsparaview: application settings for ParaViewscotch: application settings for compiling against scotchmetis: application settings for compiling against metis
The config.*/example directories contain additional example configuration
files for the corresponding shell:
compiler: an example of fine tuning ThirdParty compiler settingsopenmpi: an example of fine tuning openmpi settings for OpenFOAMparaview: an example of chaining to the standard config/paraview with a different ParaView_VERSIONprefs: an example of supplying alternative site-defined settings