View Issue Details

IDProjectCategoryView StatusLast Update
0003774OpenFOAMBugpublic2022-01-05 19:12
Reporterjoegi Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version9 
Summary0003774: waterChannel tutorial wrong fieldi
DescriptionWhen running the tutorial

tutorials/multiphase/interFoam/RAS/waterChannel

The solver gives the following warning,

surfaceFieldValue inletFlux write:
--> FOAM Warning :
    From function virtual bool Foam::functionObjects::fieldValues::surfaceFieldValue::write()
    in file fieldValues/surfaceFieldValue/surfaceFieldValue.C at line 809
    Requested field rhoPhi not found in database and not processed

Also, no information is saved in the output files surfaceFieldValue.dat

The right field keyword should be phi instead of rhoPhi in the definition of the function object inletFlux.
Steps To ReproduceJust run the tutorial

tutorials/multiphase/interFoam/RAS/waterChannel
TagsNo tags attached.

Activities

henry

2022-01-05 18:44

manager   ~0012359

phi is the volumetric flux and so not appropriate for this purpose, the intension is to obtain the mass flux. rhoPhi is no longer cached so either phi could be multiplied by rho in the sampling or maybe it would be better to include the phase-fraction to obtain the volumetric flux of the water.

henry

2022-01-05 19:12

manager   ~0012360

Resolved in OpenFOAM-9 by commit 1b6d2212992cd67409b49bebad8961a9bb120994
Resolved in OpenFOAM-dev by commit ef9707eaa76cb274618116790e0dc4b70fdde7c8

Issue History

Date Modified Username Field Change
2022-01-05 17:48 joegi New Issue
2022-01-05 18:44 henry Note Added: 0012359
2022-01-05 19:12 henry Assigned To => henry
2022-01-05 19:12 henry Status new => resolved
2022-01-05 19:12 henry Resolution open => fixed
2022-01-05 19:12 henry Note Added: 0012360