View Issue Details

IDProjectCategoryView StatusLast Update
0003836OpenFOAMBugpublic2022-12-06 12:20
ReportertomLauriks Assigned Tochris  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformlinuxOSUbuntu 18.04 LTS and Rocky 8.5OS Version(please specify)
Summary0003836: fieldAverage: windowName not added to mean field
DescriptionIn v6 the windowName is added to the mean field name. I observed that this doesn't occur in v8.

I checked the code. I'm not entirely sure, but it seems like the code that makes available the averaging base type name, window and windowName is missing from fieldAverageItem.H.

I compiled the v6 version of fieldAverage for v8, after updating the files and options to the v8 version (see attached files). This seemed to work. The windowName is again added.
Steps To ReproduceUse fieldAverage with the options window and windowName.
TagsNo tags attached.

Activities

tomLauriks

2022-05-06 12:17

reporter  

files (146 bytes)   
fieldAverage.C
fieldAverageItem/fieldAverageItem.C
fieldAverageItem/fieldAverageItemIO.C


LIB = $(FOAM_USER_LIBBIN)/libfieldFunctionObjectsDebug
files (146 bytes)   
options (1,079 bytes)   
EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/lagrangian/basic/lnInclude \
    -I$(LIB_SRC)/fileFormats/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude \
    -I$(LIB_SRC)/surfMesh/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \
    -I$(LIB_SRC)/transportModels/lnInclude \
    -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
    -I$(LIB_SRC)/MomentumTransportModels/incompressible/lnInclude \
    -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \
    -I$(LIB_SRC)/ThermophysicalTransportModels/lnInclude

LIB_LIBS = \
    -lfiniteVolume \
    -lfluidThermophysicalModels \
    -lsolidThermo \
    -lincompressibleTransportModels \
    -lmomentumTransportModels \
    -lincompressibleMomentumTransportModels \
    -lfluidThermoMomentumTransportModels \
    -lthermophysicalTransportModels \
    -lmeshTools \
    -lsurfMesh \
    -llagrangian \
    -lfileFormats \
    -lsampling \
    -lsurfMesh
options (1,079 bytes)   

henry

2022-05-06 13:33

manager   ~0012577

Last edited: 2022-05-06 13:36

I tested the window handling in OpenFOAM-dev and it works fine. For the OpenFOAM-dev/tutorials/incompressible/pisoFoam/LES/pitzDaily case I set

    #includeFunc fieldAverage(U, p, prime2Mean = yes, window = 10, windowName = w1)

and I get fields

pMean_w1 pPrime2Mean_w1 UMean_w1 UPrime2Mean_w1

Same for OpenFOAM-8.

tomLauriks

2022-05-06 13:44

reporter   ~0012578

I performed the same test as you and indeed, window handling occurs correctly. Sorry for the false bug report.

chris

2022-12-06 12:20

manager   ~0012912

Incorrect issue report. Resolved.

Issue History

Date Modified Username Field Change
2022-05-06 12:17 tomLauriks New Issue
2022-05-06 12:17 tomLauriks File Added: files
2022-05-06 12:17 tomLauriks File Added: options
2022-05-06 13:33 henry Note Added: 0012577
2022-05-06 13:36 henry Note Edited: 0012577
2022-05-06 13:44 tomLauriks Note Added: 0012578
2022-12-06 12:20 chris Assigned To => chris
2022-12-06 12:20 chris Status new => closed
2022-12-06 12:20 chris Resolution open => fixed
2022-12-06 12:20 chris Note Added: 0012912