View Issue Details

IDProjectCategoryView StatusLast Update
0004272OpenFOAMBugpublic2025-09-09 14:22
Reportertniemi Assigned Towill  
PrioritylowSeveritytrivialReproducibilitysometimes
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Version13 
Summary0004272: surfaceFieldValue, not writing the name of the faceZone to the postProcessing file
DescriptionThis is an extremely minor issue, but following the commit
https://github.com/OpenFOAM/OpenFOAM-dev/commit/a71f4539d9b6b0051aa8891df8ef9118d4f650e3

surfaceFieldValue no longer writes the name of the faceZone to the resulting file. The selectionName_ is initialised to string::null and never reset, so the first line of the file always reads
# Selection : faceZone()

instead of
# Selection : faceZone(NAME_OF_THE_ZONE)

The issue could be fixed for example by adding
selectionName_ = faceZonePtr_->name();

after faceZonePtr_.reset in the read-function.

The other selection types don't have this issue, just faceZone.
Steps To ReproduceRun eg. tutorials/incompressibleFluid/TJunction and the faceZoneFlowRate-post processing fields have a selection "faceZone()" instead of eg. "faceZone(fz1)"
TagsNo tags attached.

Issue History

Date Modified Username Field Change
2025-09-09 12:47 tniemi New Issue
2025-09-09 14:22 will Assigned To => will
2025-09-09 14:22 will Status new => resolved
2025-09-09 14:22 will Resolution open => fixed
2025-09-09 14:22 will Fixed in Version => 13
2025-09-09 14:22 will Note Added: 0013661