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

Uncategorized

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

Uncategorized Entries with no category
Old

Accessing internal field and mesh from within boundary condition

Posted August 6, 2016 at 07: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 1062 Comments 0 kaifu is offline Edit Tags

All times are GMT -4. The time now is 13:44.