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/)
-   -   Looping over faceCellZone (https://www.cfd-online.com/Forums/openfoam-programming-development/245189-looping-over-facecellzone.html)

HorstvanGrass September 20, 2022 09:32

Looping over faceCellZone
 
Hi,
I defined using topoSet at faceZone. I'm developing a custom function where I want to call the faceZone and loop over the faces.

Howeever when I call:
Code:

Foam::faceZoneSet testFS =    Foam::faceZoneSet(mesh,"test");
I recieve an function deleted error
Code:

error: use of deleted function ‘Foam::faceSet::faceSet(const Foam::faceSet&)


HorstvanGrass September 21, 2022 02:30

Found the error. Cannot predefine the function and later calling it.
Code:

        Foam::faceZoneSet testFS(mesh,"test");


All times are GMT -4. The time now is 17:24.