Development issueshttps://develop.openfoam.com/groups/Development/-/issues2020-03-13T13:43:00Zhttps://develop.openfoam.com/Development/openfoam/-/issues/1051fvOption for pressure2020-03-13T13:43:00ZMark OLESENfvOption for pressure- currently not possible, but could be useful for misc things like debugging matrix coefficients- currently not possible, but could be useful for misc things like debugging matrix coefficientsAndrew HeatherAndrew Heatherhttps://develop.openfoam.com/Development/openfoam/-/issues/1007source bashrc in WSL causes bash: eval: line 38: syntax error near unexpected...2018-12-21T18:09:34ZAdminsource bashrc in WSL causes bash: eval: line 38: syntax error near unexpected token `('I tried to load the bashrc in WSL but I get the error:
> bash: eval: line 38: syntax error near unexpected token `('
similar problem [here](https://stackoverflow.com/questions/51345463/syntax-error-near-unexpected-token-when-sourcing-b...I tried to load the bashrc in WSL but I get the error:
> bash: eval: line 38: syntax error near unexpected token `('
similar problem [here](https://stackoverflow.com/questions/51345463/syntax-error-near-unexpected-token-when-sourcing-bashrc-to-setup-openfoam-e).Mark OLESENMark OLESENhttps://develop.openfoam.com/Development/openfoam/-/issues/1013extraction operations2018-12-21T18:07:38ZMark OLESENextraction operationsAs just discussed with @Mattijs, there are several places where we wish to do a list reduction of particular object quantities. For example, to obtain a list of names/types/sizes from the objects. The ListOps::create function will do som...As just discussed with @Mattijs, there are several places where we wish to do a list reduction of particular object quantities. For example, to obtain a list of names/types/sizes from the objects. The ListOps::create function will do some of that, but would benefit from some predefined functors.
Eg,
```
template<class T> struct nameOp
{
word operator()(const T& obj) const { return obj.name(); }
};
```
And later
```
ListOps::create<word>(patches, nameOp<polyPatch>());
```
Or
```
ListOps::create<word>(readDir(dirName), nameOp<fileName>());
```Mark OLESENMark OLESENhttps://develop.openfoam.com/Development/openfoam/-/issues/213Following the build guide page with v1606+ on Ubuntu 16.04 will fail with foa...2019-12-09T22:04:11ZAdminFollowing the build guide page with v1606+ on Ubuntu 16.04 will fail with foamDebugSwitchesFollowing the instructions at http://openfoam.com/code/build-guide.php will result in not having a complete build, when building on Ubuntu, because `dash` is the default `sh`.
This is already fixed in the Development/ThirdParty-plus/#...Following the instructions at http://openfoam.com/code/build-guide.php will result in not having a complete build, when building on Ubuntu, because `dash` is the default `sh`.
This is already fixed in the Development/ThirdParty-plus/#2, but the ThirdParty-v1606+ tarball package still has a bug that will not allow building the FFTW library.
And due to that bug, the `foamDebugSwitches` utility will not build due to the dependency on the `randomProcesses` library, which will in turn block the remaining run of `make`, unless the `-k` option is used in the call to the main `Allwmake`.
### Short term fix
The user-side fix is to run the following commands, before running `Allwmake` (as documented [here](https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM%2B-v1606%2B/Ubuntu#Ubuntu_16.04)):
```
cd $WM_THIRD_PARTY_DIR
sed -i -e 's=unset _foamAddPath=unset -f _foamAddPath=' makeFFTW
cd $WM_PROJECT_DIR
```
### Long term fix
1. Reminder: `foamDebugSwitches` was deprecated in the OpenFOAM Foundation repositories, in favour of a general `foamList`.
2. Add a `Allwmake` script which sets optional library dependencies, as done in `$FOAM_UTILITIES/surface/surfaceBooleanFeatures/Allwmake` and update `Make/options` accordingly.
https://develop.openfoam.com/Development/openfoam/-/issues/1000icoReactingMultiPhaseInterFoam multicomponent gas phase with vapour condensation2021-07-06T13:17:13ZAdminicoReactingMultiPhaseInterFoam multicomponent gas phase with vapour condensationThe kinetic gas description says the parameter C if set less than 0 will model condensation. I am trying to have such a case. I take the tutorial evaporationMultiComponent and initialize the gas phase with half vapour and half air. I set...The kinetic gas description says the parameter C if set less than 0 will model condensation. I am trying to have such a case. I take the tutorial evaporationMultiComponent and initialize the gas phase with half vapour and half air. I set the temperature a boundary quite low to have condensation. I cannot see the transfer of vapour to liquid. I have attached the test case as well.[evaporationAndCondensationMultiComponent.tar](/uploads/cac71b3fd7f0ce3f47038eed87c4c386/evaporationAndCondensationMultiComponent.tar)
\## Reattaching the author to the issue ticket: @aqeelahmed ##https://develop.openfoam.com/Development/openfoam/-/issues/178BUG: wrmo couldn't trace the location of Make directory2017-03-16T08:22:44ZPrashant SonakarBUG: wrmo couldn't trace the location of Make directoryIf we have soft-link to installation directory in $HOME/OpenFOAM (i.e. we don't change FOAM_INST_DIR and keep it to default)
src/Allwmake fails in finding Make directory.
e.g. Moved installation files within directory 'innerPath' a...If we have soft-link to installation directory in $HOME/OpenFOAM (i.e. we don't change FOAM_INST_DIR and keep it to default)
src/Allwmake fails in finding Make directory.
e.g. Moved installation files within directory 'innerPath' and added on line 66 of wmake/scripts/wmakeFunctions
```
echo "path is $1"
echo "exp path is $exPath"
```
we get output of Allwmake
```
+ wmakePrintBuild -check
no git description found
+ wrmo OpenFOAM/global/global.o
path is .
exp path is /hosts/pnq073/home/sonakar/OpenFOAM/innerPath/OpenFOAM-v1606+/src
path is ./..
exp path is /hosts/pnq073/home/sonakar/OpenFOAM/innerPath/OpenFOAM-v1606+
path is ./../..
exp path is /hosts/pnq073/home/sonakar/OpenFOAM/innerPath
path is ./../../..
exp path is /hosts/pnq073/home/sonakar/OpenFOAM
path is ./../../../..
exp path is /hosts/pnq073/home/sonakar
wrmo error: could not find Make directory
```
@mark @andy @Anshul Mattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comMattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comhttps://develop.openfoam.com/Development/openfoam/-/issues/144surfaceAdd -mergeRegions2016-11-18T05:58:11ZMattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comsurfaceAdd -mergeRegionsThe mergeRegions option does not detect regions with same name. Instead it assumes regions have the same order.The mergeRegions option does not detect regions with same name. Instead it assumes regions have the same order.https://develop.openfoam.com/Development/openfoam/-/issues/818regionToCell (in topoSet) does not operate correctly in parallel2019-12-09T22:18:10ZMattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comregionToCell (in topoSet) does not operate correctly in parallelregionToCell uses neighbour information incorrectly
```
!= selectedCell[nbrSelected[bFacei]]
```regionToCell uses neighbour information incorrectly
```
!= selectedCell[nbrSelected[bFacei]]
```https://develop.openfoam.com/Development/openfoam/-/issues/935Lagrangian tracking can hang for particle exactly on cell centre2019-12-09T22:22:46ZMattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comLagrangian tracking can hang for particle exactly on cell centreIf a particle gets seeded on exactly the cell centre (e.g. in particle::locate) the tracking might get stuck in a loop since all constituent tets all say the particle is outside.If a particle gets seeded on exactly the cell centre (e.g. in particle::locate) the tracking might get stuck in a loop since all constituent tets all say the particle is outside.Mattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comMattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comhttps://develop.openfoam.com/Development/openfoam/-/issues/840BUG: ConeInjection/ConeNozzleInjection injectionPosition in parallel2019-12-09T22:18:11ZAdminBUG: ConeInjection/ConeNozzleInjection injectionPosition in parallelThe use of rndGen.sample01 instead of rndGen.globalSample01 for calculating the
tanVec1_, tanVec2_ and beta angle leads to every processor having a different reference frame and
thus the injection position will be different on every pro...The use of rndGen.sample01 instead of rndGen.globalSample01 for calculating the
tanVec1_, tanVec2_ and beta angle leads to every processor having a different reference frame and
thus the injection position will be different on every processor.
In the .C files, just change these snippets to using globalSample
===================
while(magTangent < SMALL)
{
vector v = rndGen.globalSample01<vector>();
tangent = v - (v & direction_)*direction_;
magTangent = mag(tangent);
}
===================
and
===================
scalar beta = mathematical::twoPi*rndGen.globalSample01<scalar>();
===================https://develop.openfoam.com/Development/openfoam/-/issues/1181DOCU: correct the angle input to deg2019-01-24T23:07:55ZPrashant SonakarDOCU: correct the angle input to degsrc/mesh/extrudeModel/sector/sector.H lists the angle in rad.
Please correct this to deg
@marksrc/mesh/extrudeModel/sector/sector.H lists the angle in rad.
Please correct this to deg
@markMark OLESENMark OLESENhttps://develop.openfoam.com/Development/openfoam/-/issues/92BUG: foamToEnsight failed with epsilon field from applyBL2016-05-30T06:01:01ZPrashant SonakarBUG: foamToEnsight failed with epsilon field from applyBLAttached case replicating the behavior with new applyBoundaryLayer code from 92ae4fbe
Should the fields be written only corresponding to turbulence model being used?
[case_ofplus_foamToEnsight_failure.tgz](/uploads/dccead1228870cbd...Attached case replicating the behavior with new applyBoundaryLayer code from 92ae4fbe
Should the fields be written only corresponding to turbulence model being used?
[case_ofplus_foamToEnsight_failure.tgz](/uploads/dccead1228870cbdb91a557de5c6fe9f/case_ofplus_foamToEnsight_failure.tgz)
@Sergio AdminAdminhttps://develop.openfoam.com/Development/openfoam/-/issues/1244no reconstruct script in Allrun (tut/multiphase/interIsoFoam/iobasin)2019-03-22T20:06:24ZAdminno reconstruct script in Allrun (tut/multiphase/interIsoFoam/iobasin)<!--
*** Please read this first! ***
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "bug" label and check to see if it has already been reported
-->
<!--
All text between these marker...<!--
*** Please read this first! ***
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "bug" label and check to see if it has already been reported
-->
<!--
All text between these markers are comments and will not be present in the
report
-->
### Summary
In tut/multiphase/interIsoFoam/iobasin/Allrun, there is no script for reconstruct after mpi-run.
### Steps to reproduce
<!-- How one can reproduce the issue - this is very important -->
### Example case
tut/multiphase/interIsoFoam/iobasin
### What is the current *bug* behaviour?
<!-- What actually happens -->
### What is the expected *correct* behavior?
<!-- What you should see instead -->
### Relevant logs and/or images
<!--
Paste any relevant logs - please use code blocks (```) to format console
output, logs, and code as it's very hard to read otherwise.
-->
### Environment information
<!--
Providing details of your set-up can help us identify any issues, e.g.
OpenFOAM version : v1806|v1812|v1906 etc
Operating system : ubuntu|openSUSE|centos etc
Hardware info : any info that may help?
Compiler : gcc|intel|clang etc
-->
OpenFOAM version :v1812
Operating system :ubuntu18.04
Compiler :gcc-7.3.0
### Possible fixes
Add the following line to the last of Allrun.
runApplication reconstructParhttps://develop.openfoam.com/Development/openfoam/-/issues/302Possible documentation mismatch for IDDESdelta2016-11-17T16:42:25ZRoger AlmenarPossible documentation mismatch for IDDESdeltaIn the file OpenFOAM-plus/.../IDDESDelta/IDDESDelta.C , the IDDESdelta seems to be calculated based on face2face distance, in the direction normal to the wall.
However, in the H file it is mentioned: IDDESDelta used by the IDDES (im...In the file OpenFOAM-plus/.../IDDESDelta/IDDESDelta.C , the IDDESdelta seems to be calculated based on face2face distance, in the direction normal to the wall.
However, in the H file it is mentioned: IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model) The min and max delta are calculated using the double distance of the min or max from the face centre to the cell centre.
Could we check if there is a mismatch between the documentation and the code?https://develop.openfoam.com/Development/openfoam/-/issues/959noise detection of time step2024-01-05T17:09:20ZMattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comnoise detection of time stepnoise utility tries to detect uniform time step by comparing to previous time directories:
```At time 0.277259999999 previous time:0.277255 difference:4.999998999999367e-06 deltaT:5.000000000005e-06 relative difference:2.000011267710988...noise utility tries to detect uniform time step by comparing to previous time directories:
```At time 0.277259999999 previous time:0.277255 difference:4.999998999999367e-06 deltaT:5.000000000005e-06 relative difference:2.000011267710988e-07```
This goes wrong when there are not enough timePrecision or the start time is late so we loose precision.AdminAdminhttps://develop.openfoam.com/Development/openfoam/-/issues/264foamCleanPath performs strangely if username/path has @ and . characters2019-12-09T22:04:13ZAdminfoamCleanPath performs strangely if username/path has @ and . charactersDear all,
I'm trying to compile the v1606+ with standard GNU tools, on a CentOS 7 based cluster. When I source etc/bashrc, i receive a strange error, like
```
[lcarvalheiro@argus etc]$ source bashrc
sed: -e expressão #1, cará...Dear all,
I'm trying to compile the v1606+ with standard GNU tools, on a CentOS 7 based cluster. When I source etc/bashrc, i receive a strange error, like
```
[lcarvalheiro@argus etc]$ source bashrc
sed: -e expressão #1, carácter 43: opção desconhecida para 's'
sed: -e expressão #1, carácter 56: opção desconhecida para 's'
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
-bash: uname: No such file or directory
Your "" operating system is not supported by this release
of OpenFOAM. For further assistance, please contact www.OpenFOAM.com
-bash: sed: command not found
-bash: mpicc: command not found
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: command not found
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: command not found
-bash: sed: No such file or directory
```
(obviously, I get an empty PATH and LD_PATH)
If I comment the if condition in lines 108-111 on the file foamCleanPath, sourcing etc/bashrc executes without errors, but Allwmake ends with
```
========================================
Done ThirdParty Allwmake
========================================
+ wmakePrintBuild -check
no git description found
+ wrmo OpenFOAM/global/global.o
wrmo error: could not find Make directory
[lcarvalheiro@argus OpenFOAM-v1606+]$
```
Is there any way to tackle this issue?
Thanks in advancehttps://develop.openfoam.com/Development/openfoam/-/issues/245uniform/time dictionary searched for in all time directories2021-07-06T10:45:44ZMattijs Janssens4-Mattijs@users.noreply.develop.openfoam.comuniform/time dictionary searched for in all time directoriesAll the IOdictionaries will be searched for in all previous time instances. This is fine for e.g. polyMesh files (points, faces, etc) but wrong for e.g. uniform/time. Also it is very expensive when there are lots of time directories.
At...All the IOdictionaries will be searched for in all previous time instances. This is fine for e.g. polyMesh files (points, faces, etc) but wrong for e.g. uniform/time. Also it is very expensive when there are lots of time directories.
Attached files add some debug printing to see when it is happening (e.g. with foamToEnsight)
[IOobject.C](/uploads/e181e7fb456c4690b208304dffe67704/IOobject.C)[log.foamToEnsight](/uploads/48c62a1d1845d236c894853038e83ef7/log.foamToEnsight)https://develop.openfoam.com/Development/openfoam/-/issues/142BUG: no geometry written for foamToEnsightParts with moving mesh2023-12-07T19:01:58ZMark OLESENBUG: no geometry written for foamToEnsightParts with moving meshMoving geometries should be written to data/NNNNNN/geometry but are not.Moving geometries should be written to data/NNNNNN/geometry but are not.Mark OLESENMark OLESENhttps://develop.openfoam.com/Development/openfoam/-/issues/1162Error in "k" equation in Smagorinsky Turbulence LES Model2019-01-08T17:12:38ZAdminError in "k" equation in Smagorinsky Turbulence LES ModelAs i understand, the "k" value in Smagorinsky Turbulence LES Model is calculated by solving the quadratic equation ( a*sqr(k) + b*k + c = 0 ), so the solution of it is (-b+sqrt(sqr(b)-4*a*c))/(2*a), but what is published is (+) instead o...As i understand, the "k" value in Smagorinsky Turbulence LES Model is calculated by solving the quadratic equation ( a*sqr(k) + b*k + c = 0 ), so the solution of it is (-b+sqrt(sqr(b)-4*a*c))/(2*a), but what is published is (+) instead of (-) in the descriminent term.![received_308218969827643](/uploads/0e0c7a2adde220d27f029464afc10ef8/received_308218969827643.jpeg)https://develop.openfoam.com/Development/openfoam/-/issues/1003incorrect kahip resolution with absolute paths2019-12-09T22:22:46ZMark OLESENincorrect kahip resolution with absolute paths- affects installations using a central (non-ThirdParty) location for KAHIP.
- reported https://github.com/spack/spack/pull/8982- affects installations using a central (non-ThirdParty) location for KAHIP.
- reported https://github.com/spack/spack/pull/8982Mark OLESENMark OLESEN