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

Looping over faceCellZone

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2022, 10:32
Default Looping over faceCellZone
  #1
Member
 
Horst van Gras
Join Date: Oct 2018
Posts: 45
Rep Power: 8
HorstvanGrass is on a distinguished road
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 is offline   Reply With Quote

Old   September 21, 2022, 03:30
Default
  #2
Member
 
Horst van Gras
Join Date: Oct 2018
Posts: 45
Rep Power: 8
HorstvanGrass is on a distinguished road
Found the error. Cannot predefine the function and later calling it.
Code:
        Foam::faceZoneSet testFS(mesh,"test");
HorstvanGrass is offline   Reply With Quote

Reply

Tags
faceset, facezone, openfoam


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
How looping over cells works in FLUENT UDFs? Cooper24 Fluent UDF and Scheme Programming 2 August 10, 2022 06:17
Looping macro for DPM hjubaer Fluent UDF and Scheme Programming 7 July 8, 2019 23:18
Fluent UDF wrong number of cells in parallel - correct in serial dralexpe Fluent UDF and Scheme Programming 7 May 17, 2018 09:26
Looping over all faces within a boundary condition (turbulent inlet development) Sevex OpenFOAM Programming & Development 5 September 8, 2016 14:58
looping over selected / marked cells Jonathan Fluent UDF and Scheme Programming 0 November 22, 2012 05:59


All times are GMT -4. The time now is 12:35.