|
[Sponsors] |
How to get a non-const referento to fvBoundaryMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 30, 2022, 13:45 |
How to get a non-const referento to fvBoundaryMesh
|
#1 |
Member
Martin
Join Date: Dec 2011
Posts: 40
Rep Power: 14 |
Hi guys, we are trying to change the fvPatch type of a boundary mesh at runtime (changing from wall type to empty type); therefore, we need a non-const reference to the fvBoundaryMesh, so we can assign a new patch using something like
Code:
fvBoundaryMesh& bmesh = mesh.boundary(); emptyFvPatch newPatch ( bmesh["front"].patch(), bmesh ); bmesh.set(0, newPatch); Last edited by msaravia; September 30, 2022 at 15:05. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 07:49 |
Fatal error: invalid wall function specification | kcc49 | OpenFOAM Running, Solving & CFD | 13 | September 26, 2018 04:07 |
[mesh manipulation] RefineMesh Error and Foam warning | jiahui_93 | OpenFOAM Meshing & Mesh Conversion | 4 | March 3, 2018 11:32 |
[mesh manipulation] refineMesh Error | mohsen.boojari | OpenFOAM Meshing & Mesh Conversion | 3 | March 1, 2018 22:07 |
chtMultiRegionSimpleFoam: crash on parallel run | student666 | OpenFOAM Running, Solving & CFD | 3 | April 20, 2017 11:05 |