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

kaifu

Register Blogs Members List Search Today's Posts Mark Forums Read

Old

Accessing internal field and mesh from within boundary condition

Posted August 6, 2016 at 08:00 by kaifu

very useful.
Quote:
Originally Posted by mchurchf View Post
Thank you all for your help,

I was able to implement my boundary condition as well. I used the following code to access the internal velocity field and the mesh two layers of cells inward from the boundary:

Code:
//  Set up access to the internal velocity field and mesh
    const volVectorField& U =
        db().objectRegistry::lookupObject<volVectorField>(UName_);
    const fvMesh& mesh = patch().boundaryMesh().mesh();
...
Member
Posted in Uncategorized
Views 718 Comments 0 kaifu is offline Edit Tags

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