CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to set all X variable to zero at all boundaries (http://www.cfd-online.com/Forums/openfoam-solving/60185-how-set-all-x-variable-zero-all-boundaries.html)

sampaio June 1, 2006 19:14

Dear all, I need to set som
 
Dear all,

I need to set some surfaceScalarField, lets say, "X", to zero only at boundaries, but at all boundaries.

Can I use something like:

X.boundaryField() = 0.0 * X.boundaryField();

(I dont need to loop through patches, do I?)

I know this is a simple question, but I read somewhere else that sometimes you need == instead of =, and I need to make sure X is zero at all boundaries...

Thanks a lot,
luiz


All times are GMT -4. The time now is 15:34.