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

elemenst of surface scalerfield

Register Blogs Members List Search Today's Posts Mark Forums Read

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

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan Open Source Meshers: Gmsh, Netgen, CGNS, ... 1 July 14, 2015 05:54
import solids Alessio85 STAR-CCM+ 5 November 11, 2011 14:16
boundaries with gmshToFoam‏ ouafa Open Source Meshers: Gmsh, Netgen, CGNS, ... 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 18:57.