Commit Graph

215 Commits

Author SHA1 Message Date
a7f4147887 HookFunctions: Ensure the checkHeaderIfndefNames is applied only if the "_H" is at the end of the line 2019-05-28 15:32:52 +01:00
0a3b7a7932 Comment spelling corrections from codespell 2019-05-26 10:56:36 +01:00
deb279aa83 foamMonitor: for log plots, use exponential (%e) format for ytics 2019-05-17 17:20:31 +01:00
9bf34679bd buoyantBoussinesq[SP]impleFoam: replaced by the more general buoyant[SP]impleFoam solvers
With the selection of the Boussinesq equation of state the general buoyancy
solvers buoyantSimpleFoam and buoyantPimpleFoam can be used instead of the
specialised Boussinesq solvers avoiding the need for special implementation of
thermal and pressure boundary conditions and providing support for radiation and
fvOptions which would not have been feasible or practical in the Boussinesq
solvers.

Other incompressible equations of state are also supported; for most gaseous
problems the incompressiblePerfectGas equation of state is likely to be more
accurate than the Boussinesq equation of state.

The buoyantBoussinesq[SP]impleFoam tutorials have been updated and moved to the
corresponding buoyant[SP]impleFoam directories.
2019-03-26 21:42:14 +00:00
c1d0fa6cac hooks: Added check to ensure scripts are executable
Based on a patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2019-03-13 14:12:47 +00:00
0ce996ffd4 hooks: Refactor
The hook functions now all work in terms of local variables and argument
passing. They return error codes rather than exiting. Fixing issues
(updating copyright and correcting ifndef/define names) is now optional.
The "interactive" aspect of the pre-recieve hook has been removed and
placed into a new interactive-hook script that can be used for checking
without commiting. The pre-recieve-hook has been updated to include all
the newer checking added to pre-commit-hook.
2019-03-13 12:40:25 +00:00
008a768286 foamCloneCase: Added exit 0
Resolves patch request https://bugs.openfoam.org/view.php?id=3151
2019-01-22 13:17:31 +00:00
b9ecc29687 basicChemistryModelTemplates: Added a space in message 2019-01-08 16:44:20 +00:00
7db8e05b20 paraFoam: attempts to launch ParaView with Mesa OpenGL if system OpenGL fails
A new "-empty" option launches ParaView without opening any files.  This enables users
to run ParaView using the paraFoam script for all data (OpenFOAM or otherwise), making
use of the automatic launching with Mesa if system OpenGL fails.

To view OpenFOAM case files, run "paraFoam".
To view other data files, run "paraFoam -empty" and open the files within ParaView.
2018-12-20 18:40:56 +00:00
9c9f061990 foamGet: Corrected for POSIX sh compliance 2018-12-12 21:22:24 +00:00
8372163972 foamGet: Filter WM_PROJECT_SITE if not set 2018-11-30 15:04:59 +00:00
bcbfe542cf Rationalised WM_PROJECT_SITE and WM_PROJECT_INST_DIR in foamEtcFile and etcFiles
for consistency with WM_PROJECT.  Now "etc" files are assumed to be in etc
sub-directories of WM_PROJECT_SITE and WM_PROJECT_INST_DIR allowing other files
to be stored in those directories.  The search order is now:

Search for files from user/group/shipped directories.
The search scheme allows for version-specific and
version-independent files using the following hierarchy:
- \b user settings:
  - ~/.OpenFOAM/\<VERSION\>/
  - ~/.OpenFOAM/
- \b group (site) settings (when $WM_PROJECT_SITE is set):
  - $WM_PROJECT_SITE/\<VERSION\>/etc/
  - $WM_PROJECT_SITE/etc/
- \b group (site) settings (when $WM_PROJECT_SITE is not set):
  - $WM_PROJECT_INST_DIR/site/\<VERSION\>/etc/
  - $WM_PROJECT_INST_DIR/site/etc/
- \b other (shipped) settings:
  - $WM_PROJECT_DIR/etc/

\return The list of full paths of all the matching files or
an empty list if the name cannot be found.
Optionally abort if the file cannot be found.
Optionally stop search after the first file has been found.

This change was proposed and agreed by the sponsors of the OpenFOAM project on
the OpenFOAM Hub, see https://openfoam.org/maintenance/
2018-11-28 22:00:34 +00:00
062c956dfd foamGet: added directory target for scalar field s 2018-11-26 11:20:53 +00:00
b9f8eb8dd1 foamGet: selecting target directory based on file name 2018-11-23 19:16:27 +00:00
5a988c068e paraFoam: Added check for ".orig" variants 2018-11-08 08:38:58 +00:00
ba9f8f271f HookFunctions: Fixed check for file extensions 2018-10-29 09:34:46 +00:00
0ae01264e4 HookFunctions: Exclude markdown files from trailing whitespace check 2018-10-26 09:31:29 +01:00
5dd31a06d8 sonicFoam: Corrected banner 2018-10-03 14:20:20 +01:00
80df54208f foamMonitor: Added -ascii and -size options
These options add the ability to show the plot in the terminal, and at
any size. This is intended to facilitate monitoring on remote machines
where launching an X11 application may not be convenient or possible.

Resolves feature request https://bugs.openfoam.org/view.php?id=3080
2018-10-02 19:49:59 +01:00
7d95604f2f foamUpdateCaseFileHeader: Deleted because out of date and unmaintained 2018-08-08 15:38:49 +01:00
8662f99ac1 Corrected typos in comments
Resolves bug-report https://bugs.openfoam.org/view.php?id=3017
2018-07-31 17:11:21 +01:00
0e10376953 foamGet: check target directory exists and warn
only if controlDict does not exist.
2018-07-23 15:08:06 +01:00
c562a46a33 foamInfo: added -k | -keyword option, searches more broadly for a
case-insensitive keyword, rather than an specific model name. For
example, to search for all k-epsilon related models:

foamInfo -k kepsilon
2018-07-18 16:46:43 +01:00
9d446b9dc1 foamGet: fixed when file only exists with extension,
e.g. sampleDict.cfg
2018-07-17 19:23:58 +01:00
bc1a536c1e pimpleDyMFoam: Link to mergedDyM 2018-07-12 18:15:50 +01:00
29fc94d3e2 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev into mergeDyM 2018-07-10 20:10:01 +01:00
71a4e548df Updated git hooks to check new header format 2018-07-09 16:59:03 +01:00
fdbf3c134f Rationalized dictionary and configuration file headers 2018-07-09 15:40:05 +01:00
ca24ad75c6 pre-commit-hook: Updated 2018-07-06 23:20:15 +01:00
bf54ab67e1 Updated OpenFOAM Foundation web-link in headers 2018-07-06 21:42:54 +01:00
097e15a9db foamGet: new script to copy a configuration file into a case quickly
Uses sample configuration files in $FOAM_ETC/caseDicts, including
utility configuration files and packaged function objects.  For
example:

  foamGet decomposeParDict
  foamGet extrudeMeshDict
  foamGet createPatchDict
  foamGet surfaces

Files are copied into the system directory by default, otherwise a
different target directory can be specified with -target|-t option.

Chris Greenshields, CFD Direct
2018-07-06 15:03:32 +01:00
930f02814d foamInfo: new script that provides information on a specified subject
The subject can relate to models (including boundary conditions and
packaged function objects), applications and scripts. For example:

  foamInfo simpleFoam
  foamInfo kEpsilon
  foamInfo turbulentIntensityKineticEnergyInlet
  foamInfo fixedTemperatureConstraint
  foamInfo surfaces
  foamInfo foamNewBC

The output includes the following:
- File: the location of the relevant source code header file;
- Description details from the header file;
- Usage details from the header file;
- Examples: a list of relevant cases from the tutorials directory.

foamInfo includes the -web|-w and -browser|-b options to open relevant
HTML source code documentation at https://cpp.openfoam.org

Chris Greenshields, CFD Direct
2018-07-06 14:35:37 +01:00
0af5c9061f DPMFoam: Merged with DPMDyMFoam
DPMFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-07-05 10:25:51 +01:00
fb13414f5b Added bin/sprayDyMFoam link 2018-07-04 17:39:36 +01:00
0262ee1364 icoUncoupledKinematicParcelFoam: Merged with icoUncoupledKinematicParcelDyMFoam
icoUncoupledKinematicParcelFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-07-04 17:37:36 +01:00
648989d50c cavitatingFoam: Merged with cavitatingDyMFoam
cavitatingFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-07-04 17:03:16 +01:00
42cafa62b8 interPhaseChangeFoam: Merged with interPhaseChangeDyMFoam
interPhaseChangeFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-07-04 09:43:52 +01:00
ec87585127 icoUncoupledKinematicParcelFoam: Merged with icoUncoupledKinematicParcelDyMFoam
icoUncoupledKinematicParcelFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-07-03 10:44:07 +01:00
97309e5538 potentialFreeSurfaceFoam: Merged with potentialFreeSurfaceDyMFoam
potentialFreeSurfaceFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-07-02 21:51:58 +01:00
bbc5853e3d rhoCentralFoam: Merged with rhoCentralDyMFoam
rhoCentralFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-07-02 20:41:20 +01:00
4533260964 bin/tools/HookFunctions: Filter out gtagsrc which contains valid tabs 2018-07-02 17:23:40 +01:00
dc1f88cd20 Merge branch 'master' into mergeDyM 2018-07-02 17:22:55 +01:00
227db6deb3 Added underscores to #ifndef/#define statements with namespaces 2018-06-20 16:31:07 +01:00
28552e155d HookFunctions: Made #ifndef/#define check tolerant to namespaces 2018-06-20 16:09:40 +01:00
f29114bfb6 Removed incomplete, inconsistent, confusing and un-maintained header clutter 2018-06-20 15:55:18 +01:00
bb44438fc6 bin/tools/pre-commit-hook: Added banner check for case files
Also fixed the formatting of the banners in the tutorials
2018-06-19 14:20:57 +01:00
89f1053f82 Code style: Fixed formatting of banners 2018-06-19 12:01:50 +01:00
c68e75ac5a bin/tools/pre-commit-hook: Added banner check for source and scripts 2018-06-19 11:42:46 +01:00
91c3430acc bin/tools: Fixes to git hooks
The functions shared by pre-commit and pre-receive hooks have been
consolidated into bin/tools/HookFunctions in order to reduce
duplication. The #ifndef/#define and copyright checks have also been
fixed to operate on the staged changes, not the saved file.
2018-06-18 17:03:35 +01:00
1ba5ebef03 foamCloneCase: only list copied directories to avoid confusion 2018-06-07 10:56:01 +01:00