View Issue Details

IDProjectCategoryView StatusLast Update
0004146OpenFOAMBugpublic2024-09-06 14:52
Reportermichael.mueller-wrd Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Version12 
Summary0004146: foamPostProcess with solver not reading all available fields
DescriptionUsually we run several functions in 1 post-processing step from CLI, e.g. for a multi-region CHT case:
`foamPostProcess -solver fluid -region AIR -funcs '(yPlus surfaces)' -latestTime`
For some of the functions we need to specify the solver (here: yPlus).
But with solver specified, apparently not all available fields are read or extra fields seem to be ignored...

For example, suggest we write fields like wallHeatFlux, total(p) in addition during run, then they will not be found when executing w/ solver: `foamPostProcess -solver xxx -func surfaces`
However, these fields are found when executing w/o solver: `foamPostProcess -func surfaces`

From my understanding of User Guide ( https://doc.cfd.direct/openfoam/user-guide-v12/post-processing-cli ), I would assume that specification of solver shall just lead to an additional information -- also written as 3rd method: "The foamPostProcess utility is run with a -solver which provides additional access to data available on the database for the particular solver."
Steps To Reproduce1) take any tutorial case, eg. shellAndTubeHeatExchanger, and add some extra field output (e.g. wallHeatFlux functionObject to be written for all of the regions in this case, or any other additional field);
2) run case;

3) create e.g. a surfaces or cutPlaneSurface input file in system/ and include the extra field in fields () entry;

4.1) foamPostProcess -solver fluid -region shell -func surfaces
=> will throw warning: --> FOAM Warning : functionObjects::surfaces surfaces cannot find required object wallHeatFlux
=> vtk output will not include wallHeatFlux field

4.2) foamPostProcess -region shell -func surfaces
=> vtk output will include wallHeatFlux field
TagsNo tags attached.

Activities

henry

2024-09-06 14:52

manager   ~0013395

User support request.

Issue History

Date Modified Username Field Change
2024-09-06 14:49 michael.mueller-wrd New Issue
2024-09-06 14:52 henry Assigned To => henry
2024-09-06 14:52 henry Status new => closed
2024-09-06 14:52 henry Resolution open => no change required
2024-09-06 14:52 henry Note Added: 0013395