CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

elemenst of surface scalerfield

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2012, 16:23
Default elemenst of surface scalerfield
  #1
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14
hawkeye321 is an unknown quantity at this point
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!
hawkeye321 is offline   Reply With Quote

Old   October 22, 2012, 03:06
Default
  #2
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17
kathrin_kissling is on a distinguished road
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
kathrin_kissling is offline   Reply With Quote

Old   October 24, 2012, 09:30
Default Thanks
  #3
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14
hawkeye321 is an unknown quantity at this point
kathrin, thanks for the comment!
hawkeye321 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 11:05
import solids Alessio85 STAR-CCM+ 5 November 11, 2011 13:16
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43
Patran Volume Meshing Deb CFX 19 April 17, 2003 10:56
free convection heat transfer from a heated horizontal surface through a liquid to a thin cooled fin Kaushik FLUENT 1 May 8, 2000 06:47


All times are GMT -4. The time now is 11:08.