CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   elemenst of surface scalerfield (https://www.cfd-online.com/Forums/openfoam/108371-elemenst-surface-scalerfield.html)

hawkeye321 October 21, 2012 16:23

elemenst of surface scalerfield
 
HI FOAMERS
I have a surface scaler field named glS which is equal to
surfaceScalarField gLS = fvc::interpolate(gL);
wher gL in volscalerfield.

The loop for all (celli,gl) can check all the element of gL, is there a similar command to check the elements of surfacesclar field, gLS?

TNX for your help!

kathrin_kissling October 22, 2012 03:06

Hey,

it works absolutely the same:

forAll(mySurfaceScalarField, faceI)

forAll(list, i) is just a function wrapping for (Foam::label i=0; i<(list).size(); i++)

its defined in UList.H

it works for all containers having a .size() function!

Best

Kathrin

hawkeye321 October 24, 2012 09:30

Thanks
 
kathrin, thanks for the comment!


All times are GMT -4. The time now is 04:06.