CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to assess velocity at boundary?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2014, 23:14
Question 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
gxy200992243 is on a distinguished road
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
gxy200992243 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:18.