October 17, 2022, 09:40
|
|
#6
|
Senior Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 100
Rep Power: 13
|
that's been very useful - thanks
Quote:
Originally Posted by CedricVH
You have the access member function const objectRegistry& db() const. Accessing for example U is done by the code:
Code:
const volVectorField& U = db().lookupObject<volVectorField>("U");
For accessing the mesh: when creating a boundary condition, you have access to the patch. You can thus access the mesh with:
Code:
const fvMesh& mesh = patch().boundaryMesh().mesh();
|
|
|
|