CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   OpenFOAM 9 rhophi (https://www.cfd-online.com/Forums/openfoam-solving/242105-openfoam-9-rhophi.html)

Mechie April 5, 2022 17:45

OpenFOAM 9 rhophi
 
Hello, I am modeling a hydraulic structure where calculating water diversion is important, when I add Inletflux functions I get the following error:

surfaceFieldValue inletFlux write:
--> FOAM Warning :
From function virtual bool Foam::functionObjects::fieldValues::surfaceFieldVa lue::write()
in file fieldValues/surfaceFieldValue/surfaceFieldValue.C at line 809
Requested field rhoPhi not found in database and not processed

In the OpenFOAM 9 issues page it is listed as resolved by:

Resolved in OpenFOAM-9 by commit 1b6d2212992cd67409b49bebad8961a9bb120994

Silly question: but how do I upgrade my current OF9 version to fix the bug.
? I have Ubuntu 20.04.

I also found a patch, how can I add the patch to my current OF code?

Thanks.


All times are GMT -4. The time now is 12:49.