|
[Sponsors] |
Random Access To Arbitrary Points In Solution Domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 8, 2007, 07:16 |
Hi everybody
I want to acce
|
#1 |
Senior Member
Marhamat Zeinali
Join Date: Mar 2009
Location: Tehran, Tehran, iran
Posts: 107
Rep Power: 17 |
Hi everybody
I want to access to given points in the solution domain randomly. Do OpenFOAM have useful libraries or functions for this goal? If not,How i can do that? Ideas are welcome. (-: With kind regards Marhamat |
|
November 8, 2007, 10:20 |
Hi Marhamat!
I want to acce
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi Marhamat!
Quote:
lable cellID=mesh.findCell(pt); if(cellID>=0) { Info << "Value: " << T[cellID] << endl; } else { Info << pt << " is outside" << endl; } Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 8, 2007, 17:11 |
Thanks alot Bernhard
Clearl
|
#3 |
Senior Member
Marhamat Zeinali
Join Date: Mar 2009
Location: Tehran, Tehran, iran
Posts: 107
Rep Power: 17 |
Thanks alot Bernhard
Clearly the coordinate of grids in some limited points is important for me. But i want to access these points randomly and in different time steps. For example in a channel that it's dimensions are(8 4 4)m , with (100*60*60)grids I want to find the coordinate of 100 points that limited in (2<x<4;1<y<2;1<z<2). And this stochatic access be reptatable in different time steps. Regards Marhamat |
|
November 8, 2007, 18:43 |
Hi Marhamat!
Look in the Do
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi Marhamat!
Look in the Doxygen for the Random-class. Use that to construct your points. Then apply the above recipie. Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Arbitrary lagrangianeulerian ALE | chegdan | OpenFOAM Running, Solving & CFD | 2 | March 12, 2008 20:29 |
Is there any functionality of OpenFOAM to solve multiblock domain without merging the domain | swlee | OpenFOAM Running, Solving & CFD | 4 | January 23, 2008 13:18 |
CEL insertion of points into domain? | Adrijana | CFX | 1 | December 7, 2006 08:48 |
Error : access : Unknown variable & Phase-domain | MKP | FLUENT | 0 | August 28, 2006 04:40 |
Random points in 3D circle | ZZ | Main CFD Forum | 1 | December 23, 2003 10:22 |