- May 29, 2017
-
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- May 26, 2017
-
-
Mark OLESEN authored
-
- May 25, 2017
-
-
mattijs authored
Some versions of lsof print the mount point (if remote) after the script path: /hosts/mymachine/OpenFOAM/OpenFOAM-plus.develop/etc/cshrc (mymachine:/home) This now gets filtered out.
-
- Apr 20, 2017
-
-
Mark Olesen authored
- suppress error messages that appear with zsh. According to unset(1p), 'unset -f' unsets a function. If the function was not previously defined, this is a no-op. This is similar for zsh, but there it emits a warning if the function was not previously defined. - avoid 'local' in functions sources from etc/bashrc. ksh does not support this. - use 'command' shell builtin instead of 'type'. Seems to be more consistent between shell flavours.
-
Henry Weller authored
except turbulence and lagrangian which will also be updated shortly. For example in the nonNewtonianIcoFoam offsetCylinder tutorial the viscosity model coefficients may be specified in the corresponding "<type>Coeffs" sub-dictionary: transportModel CrossPowerLaw; CrossPowerLawCoeffs { nu0 [0 2 -1 0 0 0 0] 0.01; nuInf [0 2 -1 0 0 0 0] 10; m [0 0 1 0 0 0 0] 0.4; n [0 0 0 0 0 0 0] 3; } BirdCarreauCoeffs { nu0 [0 2 -1 0 0 0 0] 1e-06; nuInf [0 2 -1 0 0 0 0] 1e-06; k [0 0 1 0 0 0 0] 0; n [0 0 0 0 0 0 0] 1; } which allows a quick change between models, or using the simpler transportModel CrossPowerLaw; nu0 [0 2 -1 0 0 0 0] 0.01; nuInf [0 2 -1 0 0 0 0] 10; m [0 0 1 0 0 0 0] 0.4; n [0 0 0 0 0 0 0] 3; if quick switching between models is not required. To support this more convenient parameter specification the inconsistent specification of seedSampleSet in the streamLine and wallBoundedStreamLine functionObjects had to be corrected from // Seeding method. seedSampleSet uniform; //cloud; //triSurfaceMeshPointSet; uniformCoeffs { type uniform; axis x; //distance; // Note: tracks slightly offset so as not to be on a face start (-1.001 -0.05 0.0011); end (-1.001 -0.05 1.0011); nPoints 20; } to the simpler // Seeding method. seedSampleSet { type uniform; axis x; //distance; // Note: tracks slightly offset so as not to be on a face start (-1.001 -0.05 0.0011); end (-1.001 -0.05 1.0011); nPoints 20; } which also support the "<type>Coeffs" form // Seeding method. seedSampleSet { type uniform; uniformCoeffs { axis x; //distance; // Note: tracks slightly offset so as not to be on a face start (-1.001 -0.05 0.0011); end (-1.001 -0.05 1.0011); nPoints 20; } }
-
- Apr 19, 2017
-
-
Mark Olesen authored
- use InfoSwitch to disable, or via static method. - respect the state of the argList banner when deciding to emit initialization information. Can otherwise end up with unwanted output rubbish on things like foamDictionary and foamListTimes.
-
- Apr 18, 2017
-
-
Mark Olesen authored
- patch from Bernhard Gschaider
-
Mark Olesen authored
- use similar semantics as used for dealing with metis, scotch
-
Will Bainbridge authored
-
- Apr 08, 2017
-
-
Henry Weller authored
by combining with and rationalizing functionality from turbulentHeatFluxTemperatureFvPatchScalarField. externalWallHeatFluxTemperatureFvPatchScalarField now replaces turbulentHeatFluxTemperatureFvPatchScalarField which is no longer needed and has been removed. Description This boundary condition applies a heat flux condition to temperature on an external wall in one of three modes: - fixed power: supply Q - fixed heat flux: supply q - fixed heat transfer coefficient: supply h and Ta where: \vartable Q | Power [W] q | Heat flux [W/m^2] h | Heat transfer coefficient [W/m^2/K] Ta | Ambient temperature [K] \endvartable For heat transfer coefficient mode optional thin thermal layer resistances can be specified through thicknessLayers and kappaLayers entries. The thermal conductivity \c kappa can either be retrieved from various possible sources, as detailed in the class temperatureCoupledBase. Usage \table Property | Description | Required | Default value mode | 'power', 'flux' or 'coefficient' | yes | Q | Power [W] | for mode 'power' | q | Heat flux [W/m^2] | for mode 'flux' | h | Heat transfer coefficient [W/m^2/K] | for mode 'coefficent' | Ta | Ambient temperature [K] | for mode 'coefficient' | thicknessLayers | Layer thicknesses [m] | no | kappaLayers | Layer thermal conductivities [W/m/K] | no | qr | Name of the radiative field | no | none qrRelaxation | Relaxation factor for radiative field | no | 1 kappaMethod | Inherited from temperatureCoupledBase | inherited | kappa | Inherited from temperatureCoupledBase | inherited | \endtable Example of the boundary condition specification: \verbatim <patchName> { type externalWallHeatFluxTemperature; mode coefficient; Ta uniform 300.0; h uniform 10.0; thicknessLayers (0.1 0.2 0.3 0.4); kappaLayers (1 2 3 4); kappaMethod fluidThermo; value $internalField; } \endverbatim
-
- Apr 07, 2017
-
-
Mark Olesen authored
- consistent with use of FOAM_SOLVERS, and reduces reliance on the FOAM_APP env variable
-
- Apr 04, 2017
-
-
Mark Olesen authored
- useful for builds that don't use the ThirdParty directory at all
-
Mark Olesen authored
- just check WM_PROJECT_DIR instead. - provide a fallback value when FOAM_EXT_LIBBIN might actually be needed. Only strictly need FOAM_EXT_LIBBIN for scotch/metis decomposition, and when these are actually supplied by ThirdParty. All other ThirdParty dependencies are referenced by BOOST_ARCH_PATH etc. Can therefore drop the FOAM_EXT_LIBBIN dependency for VTK-related things, which do not use scotch/metis anyhow.
-
Chris Greenshields authored
-
Chris Greenshields authored
-
Chris Greenshields authored
snappyHexMesh produces a far better quality AMI interface using a cylindrical background mesh, leading to much more robust performance, even on a relatively coarse mesh. The min/max AMI weights remain close to 1 as the mesh moves, giving better conservation. The rotating geometry template cases are configured with a blockMeshDict file for a cylindrical background mesh aligned along the z-axis. The details of use are found in the README and blockMeshDict files.
-
Chris Greenshields authored
-
Chris Greenshields authored
Uncommenting the patches provides a convenient way to use the patches in the background mesh to define the external boundary of the final mesh. Replaces previous setup with a separate blockMeshDict.extPatches file.
-
- Apr 03, 2017
-
-
Mark Olesen authored
-
Mark Olesen authored
- has different locations on different systems (eg, /usr/bin/lsof or /sbin/lsof)
-
Mark Olesen authored
- this implies that jobControl is a user-resource for OpenFOAM. It was previously located under $WM_PROJECT_INST_DIR/jobControl, but few users will have write access there. - an unset FOAM_JOB_DIR variable is treated as "~/.OpenFOAM/jobControl", which can partially reduce environment clutter. - provide argList::noJobInfo() to conveniently suppress job-info on an individual basis for short-running utilities (eg, foamListTimes) to avoid unneeded clutter.
-
- Mar 31, 2017
-
-
Andrew Heather authored
-
- Mar 29, 2017
-
-
Mark Olesen authored
- permit SYSTEMMPI user adjustments via etc/config.{csh,sh}/mpi-system This can be a convenient place for setting up SYSTEMMPI for OpenFOAM without adjusting bashrc, prefs.sh ... - add a USERMPI type. This represents any generic mpi implementation. The user is responsible for supplying an appropriate wmake/rules/General/mplibUSERMPI file and managing all settings. This type of setup can be useful in combination with specific build systems (SPACK, EASYBUILD, etc) or module systems for which the MPI variant is part of the installed configuration.
-
- Mar 24, 2017
-
-
Chris Greenshields authored
-
- Mar 23, 2017
-
-
Mark Olesen authored
- lazier evaluation of project name and version based on the directory name. Avoids heuristics based on directory names unless really needed. - cope with alternative directory locations. For example, OpenFOAM+VERSION etc. The combination of the two above appears to be sufficient to open up the directory naming possibilities. - additional -list-test option (tests for existence of directory).
-
Mark Olesen authored
- cleanup variables last in etc/bashrc for a clean exit code
-
- Mar 22, 2017
-
-
Mark Olesen authored
- this allows the sys-admin to provide base values independent of any WM_PROJECT_SITE value.
-
- Mar 20, 2017
-
-
Chris Greenshields authored
-
- Mar 14, 2017
-
-
Henry Weller authored
e.g. postProcess -time 0.001 -func dsmcFields Resolves bug-report https://bugs.openfoam.org/view.php?id=2499
-
- Mar 13, 2017
-
-
Henry Weller authored
Resolves patch request https://bugs.openfoam.org/view.php?id=2490
-
- Mar 10, 2017
-
-
Henry Weller authored
-
- Mar 20, 2017
-
-
Mark Olesen authored
- handle sourcing bashrc with a relative path (issue #383) - handle sourcing from bash and zsh. Still need manual intervention when sourcing dash, sh, or ksh. - replace grep in etc/cshrc with sed only - logical instead of physical path for WM_PROJECT_DIR (issue #431). Doesn't seem to be possible for csh/tcsh. * Continue using physical locations when comparing directories, but not for the top-level FOAM_INST_DIR, WM_PROJECT_DIR. - relocate WM_CC, WM_CXX overrides from etc/config.*/compiler to etc/config.*/settings to ensure that they are left untouched when etc/config.sh/compiler is sourced while making third-party packages (eg, gcc, llvm, CGAL). - provide fallback FOAM_TUTORIALS setting in RunFunctions STYLE: remove "~OpenFOAM" fallback as being too rare, non-obvious
-
- Mar 14, 2017
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- Mar 10, 2017
-
-
Mark Olesen authored
- easier to test or use different versions - change WM_CXXFLAGS to -std=c++11 instead of -std=c++0x
-
- Mar 07, 2017
-
-
Mark Olesen authored
-
- Feb 24, 2017
-
-
Henry Weller authored
rhoSimpleFoam now instantiates the lower-level fluidThermo which instantiates either a psiThermo or rhoThermo according to the 'type' specification in thermophysicalProperties, e.g. thermoType { type hePsiThermo; mixture pureMixture; transport sutherland; thermo janaf; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } instantiates a psiThermo for a perfect gas with JANAF thermodynamics, whereas thermoType { type heRhoThermo; mixture pureMixture; properties liquid; energy sensibleInternalEnergy; } mixture { H2O; } instantiates a rhoThermo for water, see new tutorial compressible/rhoSimpleFoam/squareBendLiq. In order to support complex equations of state the pressure can no longer be unlimited and rhoSimpleFoam now limits the pressure rather than the density to handle start-up more robus...
-
- Feb 23, 2017
-
-
Mark Olesen authored
Can now use this: _foamSourceEtc config.sh/scotch _foamSourceEtc config.csh/scotch instead of this: _foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch) _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/scotch` In the bash/sh version, leave the _foamSource function for now, since ThirdParty is still relying on it. STYLE: elminate while-loop for _foamAddPath etc since this type of construct isn't readily possible for csh and isn't being used anywhere.
-
Mark Olesen authored
-