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/)
-   -   upwind scheme for grad and div (https://www.cfd-online.com/Forums/openfoam-solving/228292-upwind-scheme-grad-div.html)

Yujuan June 26, 2020 04:55

upwind scheme for grad and div
 
Hi all,


I want to use upwind scheme for gradient of a volScalarField X and also for the divergence for a volVectorField Y. However, when I set grad(X) Gauss upwind, I just get the error attempt to read beyond EOF, and it is the same with div(Y).


So I want to know how to set upwind scheme for grad(volScalarField) and div(volVectorField) properly? Thanks a lot!


All times are GMT -4. The time now is 09:50.