CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Mapping Fields (https://www.cfd-online.com/Forums/openfoam-programming-development/202503-mapping-fields.html)

kk415 June 2, 2018 02:04

Mapping Fields
 
I want to check out all the objectlist that come as the output of the given line below like objects.size(),objects.names() something like that. How can I check it?

IOobjectList objects(meshSource, meshSource.time().timeName());

This line is from MapMeshes.H from the mapping utility of openFoam.

simrego June 5, 2018 04:35

Hi!

If you check the class reference of the IOobjectList:
https://cpp.openfoam.org/v5/classFoa...bjectList.html
You wrote the answer, it has the member functions called names and size:
names(): "Return the list of names of the IOobjects."
size(): "Return number of elements in table."


All times are GMT -4. The time now is 23:13.