|
[Sponsors] |
November 14, 2014, 23:14 |
How to assess velocity at boundary?
|
#1 |
New Member
Xiangyu Gao
Join Date: Sep 2013
Location: West Lafayette, IN, USA
Posts: 29
Rep Power: 13 |
Hi, everyone!
I need to access velocity at boundary. Here is my code: label patchID = iMesh.boundaryMesh().findPatchID("inlet"); const polyPatch& cPatch = iMesh.boundaryMesh()[patchID]; const fvPatchVectorField& patchU = U.boundaryField()[patchID] //U is a vector field forAll(cPatch,facei) { //do my things, calculate a vector u_sum patchU[facei]=patchU[facei]+u_sum; } When I tried to compile it, the compiler told me "vectorField has no member named boundaryField" Could anyone tell me how to access velocity at boundary? Thank you in advance! Best regards, Xiangyu Gao |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
GETVAR Error in Multiband Monte Carlo Radiation Simulation with Directional Source | silvan | CFX | 3 | June 16, 2014 10:49 |
help with velocity boundary condition potentialFoam | hfc | OpenFOAM Running, Solving & CFD | 2 | May 31, 2012 20:52 |
OpenFOAM Variable Velocity Boundary Conditions | NickolasPl | OpenFOAM Programming & Development | 2 | May 19, 2011 06:37 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |