How to get a BC's primitive type and motified it in the programm?
Dear Foamers~!
Here I met a problem: I want to get the primitive type of BC for a field, for example the field "v". Code:
const & fvBoundaryMesh & thisBoundary = mesh.boundary(); // here i get the boundary mesh |
there is a easy method to indicate the primitive type of the BC:
Code:
Foam::word nameSpecial = v.boundaryField()[fvPatchID].type(); |
All times are GMT -4. The time now is 03:55. |