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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: ybapat
Forum: OpenFOAM August 24, 2012, 00:00
Replies: 14
Views: 7,636
Posted By ybapat
Hello Wei, const volVectorField& Uc =...

Hello Wei,

const volVectorField& Uc = db().lookupObject<volVectorField>("U") would give you velocity field over entire domain. To get at boundary you need to do as Arne suggested in his post
...
Forum: OpenFOAM August 23, 2012, 00:16
Replies: 14
Views: 7,636
Posted By ybapat
Hello Wei, You need to loop over cellList to...

Hello Wei,

You need to loop over cellList to access value of individual cell.
forAll(cells,celli)
{
vector Ui = U[celli]
}

If you need directly field of boundary velocities, better option...
Forum: OpenFOAM August 22, 2012, 00:21
Replies: 14
Views: 7,636
Posted By ybapat
Hello, patch.faceCells() will give you list...

Hello,

patch.faceCells() will give you list of cells adjecent to boundary. To get adjecent cell for a face, do patch.faceCells()[facei]. Using this cell id and volVectorField U you can access...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 12:47.