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

Search Results

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

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: olesen
Forum: OpenFOAM Programming & Development May 4, 2012, 06:39
Replies: 3
Views: 2,249
Posted By olesen
Two approaches. 1. if you will only ever...

Two approaches.

1. if you will only ever have a single zone:

label zoneId = mesh.cellZones().findIndex("cellTable_2");
if (zoneId != -1)
{
const labelList& cellIds =...
Forum: OpenFOAM Programming & Development May 3, 2012, 02:30
Replies: 3
Views: 2,249
Posted By olesen
To loop through the cells, you'd need something...

To loop through the cells, you'd need something like the following. Note that this will not work "as is", but is just a guide:



// cellZoneIds with the IDs of your cell zones
...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 13:48.