|
[Sponsors] |
October 13, 2018, 12:09 |
How to access to cellSets in the mesh
|
#1 |
Senior Member
Join Date: Mar 2018
Posts: 115
Rep Power: 8 |
If I create a cellSet as an instance object of cellSet class (I am not talking about those created using setSet or topoSet utilities...). Could I access the cellSets I create given a mesh instance?
Example: if I create a cellSet: Code:
cellSet myCellSet ( IOobject ( "myCellSet", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::AUTO_WRITE ) ); Code:
// Does it exist some method as this pseudocode that returns cellSet? mesh.cellSets().byName("myCellSet"); |
|
October 15, 2018, 10:23 |
|
#2 |
Member
Martin
Join Date: Dec 2011
Posts: 40
Rep Power: 14 |
I am not sure, but i think that if you construct the cellSet object from a dictionary you cannot access it later through a mesh instante since it is not passed to the constructor. Check the available constructors in cellSet.H (https://github.com/OpenFOAM/OpenFOAM...Sets/cellSet.H) and choose the one that suits your needs.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
y+ = 1 boundary layer mesh with snappyHexMesh | Arzed23 | OpenFOAM Running, Solving & CFD | 6 | November 23, 2022 15:15 |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 07:34 |
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) | shubham jain | ANSYS Meshing & Geometry | 1 | April 10, 2017 05:03 |
[snappyHexMesh] Snappyhex mesh: poor inlet mesh | Swagga5aur | OpenFOAM Meshing & Mesh Conversion | 1 | December 3, 2016 16:59 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 09:03 |