CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to access to cellSets in the mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2018, 12:09
Default How to access to cellSets in the mesh
  #1
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
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

)

);
Suppose I have mesh object could I access the available cellSet, I mean something like this:


Code:
// Does it exist some method as this pseudocode that returns cellSet?

mesh.cellSets().byName("myCellSet");
anon_q is offline   Reply With Quote

Old   October 15, 2018, 10:23
Default
  #2
Member
 
Martin
Join Date: Dec 2011
Posts: 40
Rep Power: 14
msaravia is on a distinguished road
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.
msaravia is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:52.