|
[Sponsors] |
May 11, 2016, 12:06 |
who to find the cells with certain isoValue?
|
#1 |
New Member
jaming
Join Date: Dec 2010
Location: Berlin
Posts: 9
Rep Power: 16 |
Hi Foamers,
how to find the cells with certain isoValue? Thanks |
|
May 11, 2016, 18:33 |
|
#2 |
New Member
Clara
Join Date: Sep 2010
Location: Bruxelles
Posts: 16
Rep Power: 16 |
Hi jaming,
You could loop over the cells if that's what you want, is this for post-processing? or for run time calculation, could you be more specific? There might be a smarter way to do it depending on the scope. Cheers |
|
May 12, 2016, 03:46 |
|
#3 |
New Member
jaming
Join Date: Dec 2010
Location: Berlin
Posts: 9
Rep Power: 16 |
Hi risku9
many thanks for your post! I' m looking for cells containing the isoSurface while runTime. For serial run I do it with : after interpolating the alpha1 to the cellPoints in code (pValues) Code:
Foam::List<int> IsoSurface50; forAll(alpha1, celli){ int a=0; b=0; labelList CellPoints = mesh.cellPoints()[celli]; for (Foam::List<int>::iterator it = CellPoints.begin(); it != CellPoints.end(); it++){ if (pValues[*it]<0.5 and a == 0){a++ ;} else if (pValues[*it]>=0.5 and b == 0){b++ ;} if (a==1 and b==1){count++; IsoSurface50.append(celli) ; break ;} } } Many thanks |
|
Tags |
cell, isosurface, isovalue, mesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with divergence | TDK | FLUENT | 13 | December 14, 2018 07:00 |
find the cell(s) related to maximum continuity residual | enayath | FLUENT | 4 | July 25, 2016 10:48 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
How to find adjacent cells | evgenii | OpenFOAM Running, Solving & CFD | 3 | September 27, 2008 03:03 |
a way to find out wall-neighboring cells? | Christian | FLUENT | 4 | May 10, 2002 09:30 |